troubleshooting sleep/wake button on trixie
#1
Every few weeks after an apt update the wake/sleep button does not work, the next update usually fixes it but still would like to have a hand fix ready to go as it is such a frequent problem.
If anyone knows the /dev that is attached to this switch as well as the place it is communicating with the os.
when the button is broken in OS I cant just look in journalctl and dmesg -w as itis not triggering(I looked)
How to trigger a wake event form CLI/SSH? One trick is often plugging in USB power or unplugging usually gets me the login screen;
Since I am mostly in home office I can just keep the sleep turned off with the caffeine button and wait for the next update but that wont work if I have to go mobile.
  Reply
#2
So the wake switch is back working after sitting for about 12 hours (IDK) caffeine button was active whe I left it on the charger, caffeine was no longer active when I went to use the phone later and button was working.
FWIW I don't see an event trigger on button press when I am running dmesg -w

off topic it is interesting to watch the power scaling as it turns off all but one CPU which probably leads to the better audiobook(blanked screen/locked) battery life in the last few weeks.
  Reply
#3
Same problem here on bookworm. Power on button works on startup, when the phone is off. So its not a hardware issue.When mobian started, the button is ignored. Then the phone goes to sleep mode. No reaction from the power button. When i plug the USB cable with power, the phone wake up, i can use it normally. Then the phone goes to sleep with the USB cable plugged. No reaction from the power button. I must unplug the USB cable again to wake up the phone... N.B. : This works only with a USB cable delivering power... So this huge bug makes the phone unusable. Help !

# uname -a

Linux mobian 6.1-sunxi64 #1 SMP Thu Dec 21 11:25:32 UTC 2023 aarch64 GNU/Linux

# dpkg -l|grep linux-image
...
ii  linux-image-6.1-sunxi64                          6.1.69+sunxi64-1                          arm64        Linux 6.1 for sunxi64 devices
  Reply
#4
It is not a real fix, but you can use a power bank to be able to power up your phone anywhere wheresoever using the USB cable method.
  Reply
#5
(05-02-2025, 04:52 PM)Kevin Kofler Wrote: It is not a real fix, but you can use a power bank to be able to power up your phone anywhere wheresoever using the USB cable method.

Power is not the problem in this case, it is that the signal from the sleep/wake/power switch is not triggering the sleep/wake event sometimes when the phone is booted into Phosh.
Using a usb cable or removing it simply triggers a usable wake event in the UI when the switch triggering is not working, a hold switch to kill system and rebooting is very dirty but also works.
  Reply
#6
My point was that:
(05-01-2025, 03:31 AM)alsatux Wrote: N.B. : This works only with a USB cable delivering power... So this huge bug makes the phone unusable. Help !
can be worked around using a power bank, so that you can have the USB cable deliver power on the go.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 62 17,091 05-14-2025, 03:28 AM
Last Post: anonymous
  New camera app gnome-snapshot working on trixie? vusra 4 652 04-11-2025, 02:53 AM
Last Post: vusra
  Upgrade to Mobian (Trixie) Staging biketool 13 2,592 12-29-2024, 10:35 AM
Last Post: biketool
  Unable to wake up from suspend xavi92 6 3,861 07-28-2024, 02:48 PM
Last Post: dchang0
  Phoch Trixie weekly install seems nice reTestability 0 1,268 03-10-2024, 08:47 AM
Last Post: reTestability
  Moving to trixie user641 7 4,194 07-09-2023, 06:05 AM
Last Post: user641
  Best way to wake up and check emails? DrPlamsa 7 7,974 12-31-2022, 10:57 AM
Last Post: DrPlamsa
  Does tow-boot allow periodic wake from suspension to check for notifications? DrPlamsa 4 4,263 12-31-2022, 10:56 AM
Last Post: DrPlamsa
  Is there a smart-wake yet? DrPlamsa 6 4,389 12-31-2022, 10:55 AM
Last Post: DrPlamsa
  no wakeup from deep-sleep jsch 8 6,600 09-05-2022, 03:03 AM
Last Post: jsch

Forum Jump:


Users browsing this thread: 1 Guest(s)