Power Management different behaviour in Wayland & X11 on Plasma Desktop
Describe your issue
What's the expected behaviour?
It would be great if Power Management in X11 works as in Wayland 'though I understand it may be impossible 'cause they are a little bit different );
What's the current behaviour?
1st. And it's quite puzzling. The Power Button behaves differently in Plasma Desktop X11 & Wayland.
When I short press the Power Button in X11 the screen goes blank/off and when I release the button it goes on and the screensaver login screen is shown. As for the long press in X11, the screen goes blank/off on key down and may stay blank/off on release or may behave like it's the short press, and the described behaviour is rather random.
In Wayland the Power Button behaves exactly as it should on a mobile device: by short press the screen goes blank/off, by another short press the screen goes on and the screensaver login screen is shown, the long press leads to a standard "Restart | Shut Down | Log Out" screen.
As I understand, the Power Button action behavior should be defined by powermanagementprofilesrc, but in pmOS's Plasma Desktop X11 and Wayland it seems to be ignored, while in Kubuntu 22.04 X11 on my desktop PC it isn't. I don't know why in pmOS the Power Button is treated differently but I hope that at least it is possible to change its behaviour with triggerhappy and I would try it later.
2nd. As for the idle timeout, it works as expected but touchpanel is not beeing turned off. In Wayland it's not a problem because of the double tap to wake functionality. In X11 such functionality is missing thus making the device unusable 'cause the screen turns on with any touch event. And if such functionality is impossible to implement in X11, the only solution is to switch to Wayland.
Also, while investigating the Power Management issue I came across the article that Wayland-like Power Management is not possible in X11 due to its limitations. And even in Plasma Desktop Wayland (as I understand, please, correct me if I'm wrong) the automatic Power Management is reduced (at least for msm8916 devices) to turning off the screen and some features implemented by the Window Manager.
By the way, is Plasma 6 which promises to fix a number of Wayland issues going to be released as scheduled in February next year? And how long would it take for pmOS to ship it?
What device are you using?
samsung-a5
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.12
-
v23.06
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Plasma Desktop
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device