dreemurrs-embedded / Pine64-Arch

:penguin: Arch Linux ARM for your PinePhone/Pro and PineTab/2
686 stars 105 forks source link

[SXMO] Gestures and volume keys broken when returning from sleep in rotated screen mode #637

Open idrilirdi opened 1 month ago

idrilirdi commented 1 month ago

Device info (please complete the following information)

Describe the bug I'm using the pinephone keyboard, so I want to keep my screen's orientation landscape. If the phone goes to sleep while in this mode, on return gestures stop working and the volume keys work as volume keys instead of opening the menus. Sometimes it starts working again after a few tries, other times SXMO crashes (goes to sleep again) and the only way to go back to normal is to hard reboot the phone.

To Reproduce Steps to reproduce the behavior:

  1. Rotate the screen to landscape through the settings menu.
  2. Make the phone enter sleep (either by waiting or through power options).
  3. Wake the phone from sleep.
  4. Try to use the gestures or the volume keys.

Expected behavior SXMO should work as normal

Before submitting a bug report, please be sure that you have done the following:

ArenM commented 1 month ago

Does this also happen when you leave the phone in portrait mode, or is it something specific to rotating the screen?

the volume keys work as volume keys instead of opening the menus

This sounds like the butt dial prevention system, you need to press the power button twice to bring it back to a interactive state from the screen being off.

idrilirdi commented 1 month ago

Does this also happen when you leave the phone in portrait mode, or is it something specific to rotating the screen?

the volume keys work as volume keys instead of opening the menus

This sounds like the butt dial prevention system, you need to press the power button twice to bring it back to a interactive state from the screen being off.

This seems to be definitely the case! I had not come upon this feature while reading about SXMO nor accidentally stumble on it during my daily use of the phone these weeks, thanks. Double pressing the power button indeed brings it back from sleep in the correct state. Same for the portrait mode, but the behavior is slightly different (which is why I probably thought that was fine, didn't use it too long):