diff options
author | Simon Rettberg | 2024-03-11 14:32:38 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-11 14:32:38 +0100 |
commit | add0b32cd189f37495cc077408b748f486b7d70c (patch) | |
tree | 2325fe682d060605060517b7d6867da0d959ca0d /core/modules/slx-brightness/data/etc/systemd | |
parent | kernel: Set default hostname (diff) | |
download | mltk-add0b32cd189f37495cc077408b748f486b7d70c.tar.gz mltk-add0b32cd189f37495cc077408b748f486b7d70c.tar.xz mltk-add0b32cd189f37495cc077408b748f486b7d70c.zip |
[slx-brightness] Add new module to control backlit displays
We do this raw by reading /dev/input/eventX to make sure no running
program (e.g. VMware Player) can grab the keyboard and prevent any other
running daemon (e.g. xfce-power-manager) from seeing the keystrokes.
Another advantage is that this will work everywhere (tty, lightdm, VM,
desktop session) since the daemon starts on system bootup.
Diffstat (limited to 'core/modules/slx-brightness/data/etc/systemd')
l--------- | core/modules/slx-brightness/data/etc/systemd/system/multi-user.target.wants/slx-brightness.service | 1 | ||||
-rw-r--r-- | core/modules/slx-brightness/data/etc/systemd/system/slx-brightness.service | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/modules/slx-brightness/data/etc/systemd/system/multi-user.target.wants/slx-brightness.service b/core/modules/slx-brightness/data/etc/systemd/system/multi-user.target.wants/slx-brightness.service new file mode 120000 index 00000000..6cbe2a91 --- /dev/null +++ b/core/modules/slx-brightness/data/etc/systemd/system/multi-user.target.wants/slx-brightness.service @@ -0,0 +1 @@ +../slx-brightness.service
\ No newline at end of file diff --git a/core/modules/slx-brightness/data/etc/systemd/system/slx-brightness.service b/core/modules/slx-brightness/data/etc/systemd/system/slx-brightness.service new file mode 100644 index 00000000..c75fdaf0 --- /dev/null +++ b/core/modules/slx-brightness/data/etc/systemd/system/slx-brightness.service @@ -0,0 +1,7 @@ +[Unit] +Description=Handle display brightness keys + +[Service] +Type=forking +ExecStart=/opt/openslx/scripts/systemd-slx_brightness +Restart=on-failure |