[SOLVED] After rebuilding a Pi4 with bookworm, PiJuice events stopped working ... #1080
-
Now that RealVNC is going to pull the plug on us Home subscription users on June 17th, I made a move to install bookworm from scratch on one of my Pi4's with PiJuice HAT. Now the system events don't trigger any of the functions any longer. How can I make the system events trigger the user functions like they used to? Apart from the scripts that just log the event, two of the user functions take care of power loss and shutdown events. They're quite important to me, since I am sometimes away from this site for many months and power and/or internet outages tend to happen at this location. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 14 replies
-
System events are handled by the pijuice service. Regarding RealVnc, the RealVNC viewer works fine with the vnc server in wayland. |
Beta Was this translation helpful? Give feedback.
-
Thanks for helping, Tom! 'Long time, no see'
The OS is 64 bit and I installed it from zero, so I had to re-install the pijuice software, too. Re RealVNC: I got an email from RealVNC that on June 17th they're dropping the Home subscription such as came with Raspberry PI's. Earlier they had conviced me to start using 2FA with Authy. (I had three Pi's in their cloud system for external access) It is unclear to me if RealVNC viewers and servers with direct connections on a LAN will continue to work after june 17th. The whole situation around RealVNC is quite muddled (as I find usual in this business, except for Linux, probably). Should I take the battery out of the HAT and reconnect it? Could that help to make system events work again? |
Beta Was this translation helpful? Give feedback.
-
Yes, add the |
Beta Was this translation helpful? Give feedback.
-
Event triggering hasn't started working after the previous changes. Since that time I was able to claim my email address back from RealVNC (since AUTHY had stopped working for RealVNC) and was then able to register a Lite subscription instead of the previous plan that will end on June 17th (Home & whatever). This move allowed reverting from Wayland to X11 and therefore I could get PiJuice GUI back, which is nicer to work with. So, as a last resort, I removed the battery from the PiJuice HAT for a short while after shutting down the Pi (SW1, SYS_FUNC_HALT_POWER_OFF) and then cut AC from the power supply. After reconnecting the battery and the power supply the Pi started up OK. The Wakeup Alarm settings were gone, however. Re-entered settings and pressed Apply. That didn't help, either ... still no event triggering. When I cut power to the Pi, a Python user script should be run and it should execute a shutdown command in the last line. It has worked before on the same Pi on Bullseye. What I did next, is pulling the power from a second Pi4 (still on Bullseye), which also has a PiJuice HAT and has had the same settings and scripts for a long time. It does have BTRFS disks attached, which do not have UPS, so I just pulled the USB power supply of the Pi itself.
At 11:40 cron rebooted the Pi as it does every Friday. At 13.14 I pulled the power from the Pi and restored it a minute or so later, which caused the last two lines. |
Beta Was this translation helpful? Give feedback.
-
I believe your problem is the use of SetWakeUpOnCharge. |
Beta Was this translation helpful? Give feedback.
-
Low battery, low charge, power avaiable and no power events are not triggered by the Pijuice firmware, but detected by the pijuice service. Are you sure you are running the correct version of pijuice_sys.py? |
Beta Was this translation helpful? Give feedback.
-
Please list the output from It looks like you have the right version of pijuice_sys.py. |
Beta Was this translation helpful? Give feedback.
-
home directories get default protection 0700 (rwx------) in bookworm You found out the hard way. |
Beta Was this translation helpful? Give feedback.
-
Thanks for letting me off the hook, Tom.
Quite a surprising change. I haven’t yet read any warnings about what it
can cause.
I only know what ACL is short for. Windows has those, too, but I never
needed to use them.
In July and later on this year will have physical access to the machine
that now has bookworm installed and be able to help with testing.
For the time being the home directory permissions are as they used to be,
which defeats the change, of course. I assume there must be a sound reason
for it.
Op za 25 mei 2024 om 20:17 schreef Ton van Overbeek <
***@***.***>
… home directories get default protection 0700 (rwx------) in bookworm
Under bullseye and earlier it was 0755 (rwxr-xr-x).
Compare these 2 manpages:
https://manpages.debian.org/bullseye/adduser/adduser.conf.5 and
https://manpages.debian.org/bookworm/adduser/adduser.conf.5
You found out the hard way.
Anyway I need to modify the install script to give user pijuice recursive
read access to the default user (uid 1000) home directory
Need to look into the use of ACLs
—
Reply to this email directly, view it on GitHub
<#1080 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANCBKNUOG6MMVFR7CX2KHWDZEDIU5AVCNFSM6AAAAABIDT7ISGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TKNJXGQYDM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
home directories get default protection 0700 (rwx------) in bookworm
Under bullseye and earlier it was 0755 (rwxr-xr-x).
Compare these 2 manpages:
https://manpages.debian.org/bullseye/adduser/adduser.conf.5 and
https://manpages.debian.org/bookworm/adduser/adduser.conf.5
You found out the hard way.
Anyway I need to modify the install script to give user pijuice recursive read access to the default user (uid 1000) home directory
Need to look into the use of ACLs