pplockd: Simple power management/CRUST daemon for X11 GUIs on PinePhone - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +--- Thread: pplockd: Simple power management/CRUST daemon for X11 GUIs on PinePhone (/showthread.php?tid=10503) |
pplockd: Simple power management/CRUST daemon for X11 GUIs on PinePhone - Subsentient - 06-30-2020 So now that I've gotten it working how I want, I'll post the daemon I'm using on Fedora XFCE to handle power management, CRUST, etc. It's written with the following assumptions:
You can also copy 'components' to /usr/local/share/pplockd/components, and PPConfig.py to /etc/pplockd/PPConfig.py. You will need to edit the default user in PPConfig.py, the config file, which also handles the triggers for different buttons. By default, the buttons are mapped as follows:
RE: pplockd: Simple power management/CRUST daemon for X11 GUIs on PinePhone - Subsentient - 07-04-2020 So as a minor update, right now the LED indicators are used to show the sleep state. It flashes green every 3 seconds for a soft lock, the LED is off for a hard lock, and when temporarily woken by a modem event from a hard lock, that's indicated by the LED being solid blue, until it resumes a sleep state. Just use the latest git/master, I haven't dealt with versioning yet. |