Files
fedora-tools/framework-laptop-tools/data/framework-laptop-tools-lighting.service

23 lines
561 B
Desktop File

[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