brightnessctl icon indicating copy to clipboard operation
brightnessctl copied to clipboard

Didn't detect intel_backlight but nvidia_0

Open CyanChanges opened this issue 1 year ago • 4 comments

I am using brightnessctl to change the backlight:

$ brightnessctl info
Device 'nvidia_0' of class 'backlight':
	Current brightness: 100 (100%)
	Max brightness: 100
$ brightnessctl set 80
Updated device 'nvidia_0':
Device 'nvidia_0' of class 'backlight':
	Current brightness: 100 (100%)
	Max brightness: 100

but that didn't work, and I found that there is actually a intel_backlight in /sys/class/backlight:

$ ls -l /sys/class/backlight
lrwxrwxrwx root root 0 B Sat Sep 14 13:01:48 2024  intel_backlight ⇒ ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight
lrwxrwxrwx root root 0 B Sat Sep 14 13:01:48 2024  nvidia_0 ⇒ ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/nvidia_0

intel_backlight works correctly

$ echo 120 > /sys/class/intel_backlight/brightness # works
$ brightnessctl --device=intel_backlight set 120 # works too

Why it didn't detect the intel_backlight?

CyanChanges avatar Sep 14 '24 05:09 CyanChanges