Ubuntu – I3wm, adjust brightness through command line

unityxbacklight

I've got a Precision 5510 running Ubuntu 16.10 with kernel 4.8.4. In unity, my function keys for brightness work correctly. But xbacklight commands don't do anything. xbacklight -get comes up empty. Is there a way to increase / decrease brightness through the command line? I need this for it to work in i3wm.

Best Answer

  • You may modify the value in /sys/class/backlight/{may vary}_backlight/brightness

    example:

    sudo nano /sys/class/backlight/intel_backlight/brightness
    

    This tool does that https://github.com/multiplexd/brightlight then use it like this:

    bindsym XF86MonBrightnessUp exec --no-startup-id brightlight -i 20
    bindsym XF86MonBrightnessDown exec --no-startup-id brightlight -d 20
    
  • Related Question