Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working under Bookworm? #37

Open
JoeClueless opened this issue May 12, 2024 · 15 comments
Open

Not working under Bookworm? #37

JoeClueless opened this issue May 12, 2024 · 15 comments

Comments

@JoeClueless
Copy link

This worked fine for me for several years, but now - after a fresh installation of BOOKWORM, it fail.
The Shutdown-Functionality does not work any longer. I made a fresh Bookworm installation from scratch on a Pi Zero W,
installed the howchoo-script (installation script finished with success message), powered the PI Zero of via SSH 'sudo poweroff'.
I can restart the Pi with the button, but I can't power it off...
Any idea for me noob?

@Manu-pardo
Copy link

I also experienced the same issue, it only works to power on the board, but not to shut it down (with bookworm) on a Pi 3B V1.2

@winslowj
Copy link

I can’t get to shutdown or wake pi 4b

@bassamanator
Copy link

It's not working under RPi OS Bookworm (cat /etc/debian_version...12.6).

I caught the exception, Failed to add edge detection. The RPi.GPIO package has not changed in ages, so I can't quite tell what the issue is 😕.

@bassamanator
Copy link

bassamanator commented Jul 2, 2024

This functionality was broken due to a recent linux kernel update. Read about it here.

Solution

You simply need to install rpi-lpgio, which will automatically uninstall rpi-gpio. Source.

sudo apt update && sudo apt install python3-rpi-lgpio

No other changes are necessary, anywhere at all.

@jimholmesNZ
Copy link

jimholmesNZ commented Jul 16, 2024

I installed the rpi-lpgio, do I need to change the listen-for-shutdown.py script to look at rpi-lpgio instead of rpi-gpio? Still not shutting down for me, start up OK but won't shutdown.Cheers Jim.

@bassamanator
Copy link

I installed the rpi-lpgio, do I need to change the listen-for-shutdown.py script to look at rpi-lpgio instead of rpi-gpio? Cheers Jim.

No other changes are necessary.

@jimholmesNZ
Copy link

Sorry, I didn't see your reply and changed my original comment. I still can't get the shutdown to work after running the
sudo apt update && sudo apt install python3-rpi-lgpio command.

@bassamanator
Copy link

@jimholmesNZ Have you restarted the service, or rebooted?

@jimholmesNZ
Copy link

Yes, I've tried both rebooting and restarting the listener. I'm just about to ditch Bookworm and go back to Bullseye!

@bassamanator
Copy link

@jimholmesNZ To downgrade the entire OS for this script unwise, but maybe you have a special use case?

Feel free to install my fork of this script, install it via the instructions (via systemd).

@jimholmesNZ
Copy link

Thanks very much, using your fork and following the instruction it now works, it seems that it needs a long press on the switch? Anyway thank you so much, now I just need to work out a command to turn on / off the monitor with Bookworm and I'm just about one. Thanks, Jim.

@winslowj
Copy link

I just ground out the pi using the 3v pin. Probably not the best but clearly there’s no good alternative solution for buttons on RPi without hacking into the OS. You’d think after all these years there would be a standard pin added for buttons

@bassamanator
Copy link

I just ground out the pi using the 3v pin. Probably not the best but clearly there’s no good alternative solution for buttons on RPi without hacking into the OS. You’d think after all these years there would be a standard pin added for buttons

Not sure what device you're using, but no hacking into the OS is required.

@winslowj
Copy link

I just ground out the pi using the 3v pin. Probably not the best but clearly there’s no good alternative solution for buttons on RPi without hacking into the OS. You’d think after all these years there would be a standard pin added for buttons

Not sure what device you're using, but no hacking into the OS is required.

I’d surely prefer not to have to ground out the pi, but nothing I’ve tried here works with RPi 4b bookworm

@bassamanator
Copy link

@winslowj What is the issue exactly? There are ground pins btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants