-
Notifications
You must be signed in to change notification settings - Fork 67
dtoverlay=gpio-shutdown not working #389
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
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 |
CM4. And it looks like it is broken again. Clean install, all updates done. Press button once - you see the Shutdown Options popup. Press it again it goes to shutdown but the power light stays on forever and the the monitor shows plymouth-poweroff.service for ever. Same thing happens on another one that was working properly a couple of days ago, must have been a recent update that did it. |
Can you try clean install without doing updates? Thanks for reporting |
It does shutdown eventually after ~ 90 seconds - it used to be immediate. The same thing happens if you click the Shutdown on the Shutdown menu. sudo shutdown now still works... Could it be some update in the RPi eeprom or something as when the kernel got updated a few weeks ago as the Shutdown on the Shutdown menu did nothing when you clicked it until an update was pushed after a couple of days then it worked. It looks like another update has probably screwed it up permanently. But if you unplug the network cable it shuts down immediately. I am using CM4's in both custom and a Waveshare board using SSD's and they are both the same. |
And there was an update today which fixed it! I wonder how long it will take for somebody to 'unfix' it again ;) |
Which update specifically? Thanks |
Sorry I did not take a note of them as there have been so many since the kernel update but they were new ones in the last 3-4 days. |
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: