![]() Registered Member ![]()
|
Hi,
Does anyone know how to send a command to lock screen/session? Thank's! |
![]() Registered Member ![]()
|
First you have to have access to the session's DBus session, then you would be able to issue:
qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock Some more information/options are listed on this SO question
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
![]() Registered Member ![]()
|
Hi!
Thank's so much! unfortunatly it does not seem to work on postmarketOS, having installed qt5-qttools: From SSH:
From direct console:
Any idea? Thank's a lot! |
![]() Registered Member ![]()
|
If I try this command from user it says:
Sounds encouraging but how to get permissions? |
![]() Registered Member ![]()
|
After modifiying dbus permitions I get with normal user:
as well. |
![]() Registered Member ![]()
|
The following command almost does what I want:
But not quite since it displays the login screen and respond to touches. |
![]() Registered Member ![]()
|
It is not login screen well, but lockscreen, and well. to unlock lockscreen you need to have some kind of input? That input is not passed to other windows but just lockscreen. |
![]() Registered Member ![]()
|
Ok.
The remaining issue is not about the lockscreen kde displays asking for pin code (it works well!). The expected behavior is that backlight is off and touchscreen does not respond. That's exactly what happens when the phone idles for too long. But this does not happen with this command: backlight is on and touchscreen responds. |
![]() Registered Member ![]()
|
If I understand correctly, the next step is that you need to turn the screen off. A quick google yeilds: https://askubuntu.com/questions/189677/ ... ion-in-kde which suggests running "xset dpms force off". No guarantees if that will work with the phone, but I think it's worth a shot.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
![]() Registered Member ![]()
|
Thank's but I get:
Also xset is an X program where plasma-mobile is based on wayland... |
![]() Registered Member ![]()
|
Seems to allow to go one step further: it locks screen. But I still have to get luminosity down. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]