Add package plasma-session-utils to ease shutdown and lockscreen in plasma-mobile.
This is very usefully when you really use the device to be able to shut it down and to lock screen easily. This merge request add a package which allows this. This package could be included by default in postmarketos-plasmamobile-ui in a second time.
Merge request reports
Activity
This should really be handled by the DE already. @bshah what are your thoughts on this?
Thanks @pparent!
I'm also curious if this is already provided in Plasma Mobile.
(related idea: #134 (closed))
Plasma Mobile handles powermanagement features already to some extent. For some reason it is not working out of the box in postmarketOS.
I presently have limited time, so I can't investigate this, so for now it's fine to merge this, once I investigate the issue with powermanagement on the postmarketOS, this should be reverted.
- main/plasma-session-utils/APKBUILD 0 → 100644
1 # Contributor: Pierre Parent < m #at* pierre-parent.fr > 2 pkgname=plasma-session-utils 3 pkgver=1.0 4 pkgrel=0 5 pkgdesc="Utilities for plasma session (reboot, lockscreen)" 6 arch="all" 7 license="GPLv3" 8 url="https://postmarketos.org" 9 depends="kscreen kiconthemes sudo" 10 makedepends="" 11 install="plasma-session-utils.post-install" 12 source="lock-screen.desktop plasma-mobile-lockscreen shutdown.desktop" 13 builddir="$srcdir/qt-apps-qtwebbrowser-$pkgver/" @pparent are you planning on resolving this?
changed this line in version 2 of the diff
- main/plasma-session-utils/APKBUILD 0 → 100644
- main/plasma-session-utils/APKBUILD 0 → 100644
1 # Contributor: Pierre Parent < m #at* pierre-parent.fr > 2 pkgname=plasma-session-utils 3 pkgver=1.0 4 pkgrel=0 5 pkgdesc="Utilities for plasma session (reboot, lockscreen)" 6 arch="all" 7 license="GPLv3" - main/plasma-session-utils/APKBUILD 0 → 100644
1 # Contributor: Pierre Parent < m #at* pierre-parent.fr > 2 pkgname=plasma-session-utils 3 pkgver=1.0 4 pkgrel=0 5 pkgdesc="Utilities for plasma session (reboot, lockscreen)" 6 arch="all" 7 license="GPLv3" 8 url="https://postmarketos.org" 9 depends="kscreen kiconthemes sudo" 10 makedepends="" 1 #!/bin/sh Honestly, I really wonder if this script is really needed. While porting pmOS to the PinePhone devkit, I noticed power management already works fine (e.g. screen turns back on when pressing power button).
Also, the Plasma Mobile session is being switched to elogind in !379 (merged), so the qdbus command would have to be changed to
sudo loginctl unlock-sessions
.
Feels like we are beating a dead horse here. The MR has been opened 5 months ago. I am sorry that I did not get more involved here, either towards getting it merged, or towards closing it.
But now with the elogind change in postmarketos-ui-plasma-mobile, this MR will just not work anymore as-is.
Let's close it for now, and if we end up still having problems with shutdown and screen locking with elogind, then we can reconsider a solution for that. The best solution would of course be, making this work properly with plasma mobile on postmarketOS, on its own, without an extra launcher that says shutdown/lock screen, and uses sudo.
@pparent, nevertheless, I highly appreciate that you took the time to make this merge request and everything else you have contributed to postmarketOS so far, it has been a lot!