Screen is toggled on/off on too long press and then release of power button
What problem did you encounter
After upgrading to phosh 0.25.2, pressing and then releasing the power button turns the screen off immediately upon press, but then turns it back on upon release, though if I press the button very quickly it turns off and stays off. (does not seem to happen when lock-delay is 0)
How to reproduce
- Make sure org.gnome.desktop.screensaver lock-enabled is true and lock-delay is non-zero.
- With device on and unlocked, slowly press and release power button.
What is the (wrong) result?
The screen turns off and then back on despite only one button press.
What is the expected behaviour?
The screen stays off.
Running Arch Linux Arm/DanctNix on a Pine64 PinePhone rev 1.2
I confirmed that only 1 pressed and 1 released event were sent for each physical button press using
Which version did you encounter the bug in?
I used the latest version as packaged for arch linux arm/danctnix
Phosh Version: 0.25.2-1
How are you running phosh?
Running Arch Linux Arm/DanctNix on a Pine64 PinePhone rev 1.2. Megi's kernel, version 6.1.12-1
No messages are emitted while replicating this issue except this one:
Mar 21 00:38:58 danctnix systemd-logind: Power key pressed short.