From 678068e9599c35ea15c734891cc884c6808a3250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 3 May 2024 14:38:37 +0200 Subject: [PATCH] Make backlight work --- packages.yml | 2 +- playbook.yml | 15 +++++++++++++++ user.yml | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/packages.yml b/packages.yml index 3cadf85..c686df1 100644 --- a/packages.yml +++ b/packages.yml @@ -145,7 +145,7 @@ packages: black: archlinux: ["python-black"] xbacklight: - archlinux: ["xorg-xbacklight"] + archlinux: ["acpilight"] wireshark: archlinux: ["wireshark-cli", "wireshark-qt"] nmap: diff --git a/playbook.yml b/playbook.yml index 8425d3f..056ee48 100644 --- a/playbook.yml +++ b/playbook.yml @@ -661,6 +661,21 @@ state: absent become: true + - name: backlight configuration + tags: + - backlight + block: + # See https://wiki.archlinux.org/title/backlight#ACPI + - name: create udev rule to allow video group backlight access + copy: + dest: /etc/udev/rules.d/backlight.rules + owner: root + group: root + mode: '0644' + content: | + ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath/brightness" + become: true + - include_tasks: user.yml args: apply: diff --git a/user.yml b/user.yml index bd53292..40eeeff 100644 --- a/user.yml +++ b/user.yml @@ -8,6 +8,7 @@ - sudonopw - games - kvm + - video - name: create user group group: