fix(profile): keyboard backlight on all hardware

fix #402
This commit is contained in:
Alexandre Pujol 2024-06-24 13:47:24 +01:00
parent e8aa338d5e
commit e17add7e63
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 6 additions and 7 deletions

View File

@ -49,11 +49,11 @@ profile upowerd @{exec_path} flags=(attach_disconnected) {
@{sys}/class/sound/ r,
@{sys}/devices/ r,
@{sys}/devices/**/capabilities/* r,
@{sys}/devices/**/leds/**/brightness rw,
@{sys}/devices/**/leds/**/brightness_hw_changed r,
@{sys}/devices/**/leds/**/max_brightness r,
@{sys}/devices/**/power_supply/**/* r,
@{sys}/devices/**/uevent r,
@{sys}/devices/platform/**/leds/**/brightness rw,
@{sys}/devices/platform/**/leds/**/brightness_hw_changed r,
@{sys}/devices/platform/**/leds/**/max_brightness r,
@{sys}/devices/virtual/dmi/id/product_name r,
/dev/input/event* r,

View File

@ -37,10 +37,9 @@ profile systemd-backlight @{exec_path} {
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
@{sys}/devices/@{pci}/uevent r,
@{sys}/devices/platform/**/leds/*backlight*/brightness rw,
@{sys}/devices/platform/**/leds/*backlight*/max_brightness r,
@{sys}/devices/platform/**/leds/*backlight*/uevent r,
@{sys}/devices/**/leds/**/brightness rw,
@{sys}/devices/**/leds/**/brightness_hw_changed r,
@{sys}/devices/**/leds/**/max_brightness r,
include if exists <local/systemd-backlight>
}