Hello,
I want to be able to use XF86MonBrightnessUp
and XF86MonBrightnessDown
to adjust brightness levels on my laptop.
System Information:
- Kernel: 6.5.4-arch2-1
- Device: HP Pavilion Aero Laptop 13
- GPU: AMD ATI Radeon Vega Series
- OS: EndeavourOS Linux x86_64
- Window Manager: i3wm
Here is what I have tried so far:
According to arch wiki, xbacklight
only works with intel GPU, and running it manually gives me No outputs have backlight property
.
bindsym XF86MonBrightnessUp exec xbacklight +10 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%"
bindsym XF86MonBrightnessDown exec xbacklight -10 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%"
This was commented out in the default i3 config but it just displays the brightness notification but does not change the brightness at all.
bindsym XF86MonBrightnessUp exec --no-startup-id ~/.config/i3/scripts/volume_brightness.sh brightness_up
bindsym XF86MonBrightnessDown exec --no-startup-id ~/.config/i3/scripts/volume_brightness.sh brightness_down
brightnessctl
doesn’t seem to work either.
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
looks like running brightnessctl
manually does something but I can’t tell the difference.
$ brightnessctl set 5
Updated device 'amdgpu_bl1':
Device 'amdgpu_bl1' of class 'backlight':
Current brightness: 25 (10%)
Max brightness: 255
xrandr
seems to be the most promising, it changes the brightness, but anything above 1 makes the screen whiter more than brighter.
xrandr --output eDP --brightness 1.5
Notes
you might find this helpful
$ ls -l /sys/class/backlight
lrwxrwxrwx 1 root root 0 Sep 26 18:06 amdgpu_bl1 -> ../../devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/card1/card1-eDP-1/amdgpu_bl1
Also I am running EndeavourOS on an external SSD and I have Windows 11 installed on my internal drive. I also updated BIOS before installing EndeavourOS, but my volume keys seem to be working perfectly.