fix(profile): ensure backlight on all hardware

This commit is contained in:
Alexandre Pujol 2024-06-25 12:27:22 +01:00
parent 8da557ba04
commit 5b73923385
Failed to generate hash of commit
7 changed files with 42 additions and 37 deletions

View file

@ -92,13 +92,14 @@ profile xorg @{exec_path} flags=(attach_disconnected) {
@{sys}/class/ r,
@{sys}/class/{tty,input,drm}/ r,
@{sys}/class/power_supply/ r,
@{sys}/devices/@{pci}/ r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness r,
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
@{sys}/devices/@{pci}/boot_vga r,
@{sys}/devices/**/{uevent,name,id,config} r,
@{sys}/devices/**/hid r,
@{sys}/devices/**/power_supply/**/{type,online} r,
@{sys}/devices/@{pci}/ r,
@{sys}/devices/@{pci}/backlight/*/{,max_}brightness r,
@{sys}/devices/@{pci}/backlight/*/brightness rw,
@{sys}/devices/@{pci}/boot_vga r,
@{sys}/devices/platform/ r,
@{sys}/module/i915/{,**} r,

View file

@ -69,17 +69,18 @@ profile gsd-power @{exec_path} flags=(attach_disconnected) {
@{sys}/class/ r,
@{sys}/class/backlight/ r,
@{sys}/devices/@{pci}/class r,
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/class r,
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
@{sys}/devices/platform/**/leds/*backlight*/uevent r,
@{sys}/devices/platform/**/leds/*backlight*/max_brightness r,
@{sys}/devices/platform/**/leds/*backlight*/brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
@{sys}/devices/**/leds/**/{,max_,actual_}brightness rw,
@{sys}/devices/**/leds/**/{uevent,type,enabled} r,
@{sys}/devices/**/leds/**/brightness_hw_changed r,
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,

View file

@ -22,14 +22,14 @@ profile kauth-backlighthelper @{exec_path} {
@{sys}/class/backlight/ r,
@{sys}/class/leds/ r,
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
@{sys}/devices/@{pci}/intel_backlight/{max_,}brightness rw,
@{sys}/devices/@{pci}/intel_backlight/type r,
/dev/tty r,

View file

@ -27,19 +27,20 @@ profile systemd-backlight @{exec_path} {
@{sys}/class/ r,
@{sys}/class/backlight/ r,
@{sys}/devices/@{pci}/*:@{int}.@{int}/**/ r,
@{sys}/devices/@{pci}/ r,
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
@{sys}/devices/@{pci}/class r,
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
@{sys}/devices/@{pci}/uevent r,
@{sys}/devices/**/leds/**/brightness rw,
@{sys}/devices/**/leds/**/{,max_,actual_}brightness rw,
@{sys}/devices/**/leds/**/{uevent,type,enabled} r,
@{sys}/devices/**/leds/**/brightness_hw_changed r,
@{sys}/devices/**/leds/**/max_brightness r,
include if exists <local/systemd-backlight>
}

View file

@ -15,14 +15,14 @@ profile xfpm-power-backlight-helper @{exec_path} {
@{sys}/class/backlight/ r,
@{sys}/class/leds/ r,
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
@{sys}/devices/@{pci}/intel_backlight/{max_,}brightness rw,
@{sys}/devices/@{pci}/intel_backlight/type r,
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
include if exists <local/xfpm-power-backlight-helper>
}

View file

@ -23,12 +23,14 @@ profile light @{exec_path} {
@{sys}/class/backlight/ r,
@{sys}/class/leds/ r,
@{sys}/devices/@{pci}/drm/**/intel_backlight/{,max_}brightness r,
@{sys}/devices/@{pci}/drm/**/intel_backlight/brightness rw,
@{sys}/devices/@{pci}/backlight/*/{,max_}brightness r,
@{sys}/devices/@{pci}/backlight/*/brightness rw,
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
@{sys}/devices/**/leds/**/{,max_,actual_}brightness rw,
@{sys}/devices/**/leds/**/{uevent,type,enabled} r,
@{sys}/devices/**/leds/**/brightness_hw_changed r,
# file_inherit
owner /dev/tty@{int} rw,

View file

@ -38,7 +38,7 @@ profile thermald @{exec_path} flags=(attach_disconnected) {
@{sys}/devices/system/cpu/intel_pstate/no_turbo rw,
@{sys}/devices/system/cpu/intel_pstate/status r,
@{sys}/devices/@{pci}/drm/**/intel_backlight/max_brightness r,
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness r,
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_max_uw r,
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_min_uw r,
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_tmax_us r,