Make backlight work

This commit is contained in:
2024-05-03 14:38:37 +02:00
parent 585fbdb174
commit 678068e959
3 changed files with 17 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ packages:
black: black:
archlinux: ["python-black"] archlinux: ["python-black"]
xbacklight: xbacklight:
archlinux: ["xorg-xbacklight"] archlinux: ["acpilight"]
wireshark: wireshark:
archlinux: ["wireshark-cli", "wireshark-qt"] archlinux: ["wireshark-cli", "wireshark-qt"]
nmap: nmap:

View File

@@ -661,6 +661,21 @@
state: absent state: absent
become: true 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 - include_tasks: user.yml
args: args:
apply: apply:

View File

@@ -8,6 +8,7 @@
- sudonopw - sudonopw
- games - games
- kvm - kvm
- video
- name: create user group - name: create user group
group: group: