Persist Framework power-button lighting across reboots
This commit is contained in:
1 parent
ddb912d4ba
commit
dc2372ef3f
10 files changed
+142
-5
No files matched your search
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Restore saved Framework power-button lighting
|
||||
After=systemd-modules-load.service
|
||||
ConditionPathExists=/etc/framework-laptop-tools/power-button.json
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/framework-laptop-tools-lighting
|
||||
# Allow briefly for the embedded-controller driver to become available at boot.
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
TimeoutStartSec=10
|
||||
NoNewPrivileges=yes
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_UNIX
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user