-
Notifications
You must be signed in to change notification settings - Fork 58
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
dtoverlay=gpio-shutdown not working #389
Comments
is gpio-keys module loaded. You might be missing some additional configuration Might be this thread could help you troubleshoot |
Everything seems to be as expected, Also I've noticed that OS ignores the RPI on board power off button as well adedd dtoverlay=gpio-keys to config
There are events when I drive the Pin to Low
and
Here is the content of the /etc/systemd/logind.conf
|
What’s the output of
|
|
Things to check: is systemd-logind service enabled?
what happens when you initiate shutdown via gpio? does logind receive that event? Commands to run
do you have power off button on your keyboard? check power management settings |
Nothing
Mar 04 15:36:41 lysmarine systemd-logind[768]: Power key pressed short.
I don't have power button on keyboard, but power button on Raspberry Pi5 board doesn't work as well
What can I check there. It's only 2 options Balanced/Power saver - Changing them have no effect |
How long do you hold power button on pi5 board? |
Pressing and releasing, Long press doesn't make any difference as well. I have a fresh install , really strange |
Anything powered connected via USB and leaking power into pi5? |
Nope, nothing external connected to PI except 5 v power. This exact rig and exact config works as expected with vanilla raspberry OS, and Open Plotter |
Another thing to try:
|
There is also this discussion so another thing to try:
|
Some more details on how things work: https://medium.com/@buzondefede/shutdown-from-power-button-explained-in-ubuntu-22-04-3fbe671b5765 looks like some app installed inhibitor on logind (systemd) power off events |
Yah, that what I thought. Thank's for help, I'll play around with your solutions |
Following configuration is not working on the build from March 2nd.
dtoverlay=gpio-shutdown,gpio_pin=20,active_low=1,gpio_pull=down
Same config works on vanilla bookworm
The text was updated successfully, but these errors were encountered: