PinePhone/Phosh: Phone stops reacting to hardware events
Describe your issue
What's the expected behaviour?
Phone always shows up in
ip link when connected via USB and always wakes up when power button is pressed.
What's the current behaviour?
Phone sometimes refuses to wake up when the power button is pressed and is not recognised as an Ethernet interface in
ip link. It does still respond to ssh connections if initiated over WiFi.
How to reproduce your issue?
Not sure. It seems to happen while the phone sleeps (related to #719 (closed)?).
What device are you using?
On what postmarketOS version did you encounter the issue?
On what environment did you encounter the issue?
- Plasma Mobile
- No environment
- KDE Plasma
How did you get postmarketOS image?
- from https://images.postmarketos.org
- I built it using pmbootstrap
- It was preinstalled on my device
It almost seems like it doesn't recognise the power button being pressed any more. Usually the phone elogind-daemon logs that the power button was pressed so that it can be seen in
dmesg, but when the phone is in this state it doesn't. I tried pressing it a handful of times while ssh'd into the phone right before writing this and nothing showed up in the log. There are probably better ways to test this though.
Also while writing this and having the phone plugged into my PC and logged in via ssh (over WiFI, however, as it did not appear as an interface) the phone suddenly woke up. It happened shortly after I ran
lsusb on my host system, but I'm not sure if that's related.
Note about "recovery.log" (which was the output of dmesg from that boot): As you can see by viewing it, many events happened at 7084 and onwards. That was around the time the phone suddenly woke up (as opposed to when it was connected). To be clear, it did not wake up immediately after I connected it to my PC, but rather maybe a minute after. Maybe more. I did not time it as I did not expect this.