Hummer12007 / brightnessctl

A program to read and control device brightness
Other
900 stars 48 forks source link

Didn't detect intel_backlight but nvidia_0 #110

Open CyanChanges opened 1 month ago

CyanChanges commented 1 month ago

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?

Hummer12007 commented 1 month ago

Hi, info shows info for a single device. Use brightnessctl l to get info for all.

CyanChanges commented 1 month ago

Hi, info shows info for a single device. Use brightnessctl l to get info for all.

It's the same image

CyanChanges commented 1 month ago

Hello? @Hummer12007

Hummer12007 commented 1 month ago

Oh, I see. I'll take a closer look then.