5a06a6bb06643aaf829e7c60b4ef981f094e70fd
This adds sleep-inhibitor as a dependency when elogind is present, and installs a conf for it with some plugins enabled that are beneficial to devices running pmOS. The elogind suspend hook is dropped. This resolves issues where suspend is aborted in the hook *after* PrepareForSleep is sent over dbus (which might cause some things to disable radios/modems, etc for suspend). The 'period' in the conf is in minutes, a value of 0.1 is 6 seconds, which seems reasonable for releasing the lock when conditions for inhibiting no longer apply, without spinning the CPU too frequently.
postmarketOS aports
Helpful resources:
Languages
Shell
95.8%
Python
2.5%
C
1.2%
Batchfile
0.3%
Jinja
0.2%