Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Last active January 30, 2024 02:30
Show Gist options
  • Save yordanoweb/f5652d4a00ffc87f6874f522a0efab27 to your computer and use it in GitHub Desktop.
Save yordanoweb/f5652d4a00ffc87f6874f522a0efab27 to your computer and use it in GitHub Desktop.
Reduce or increase laptop display brightness from command line

Reduce or increase laptop display brightness from command line

Note: Recently my Archlinux distro stop responding to the shortcut Fn+F3 and Fn+F4 for screen brightness adjustment. Then I found this solution at: https://www.ejmastnak.com/tutorials/arch/backlight/.

First, find out the value of your laptop.

cat /sys/class/backlight/intel_backlight/brightness

The directory might be different too in your laptop. The value of my laptop was 90000. So, I changed to 35000

echo 35000 | tee /sys/class/backlight/intel_backlight/brightness

If needs elevated privileges:

echo 35000 | sudo tee /sys/class/backlight/intel_backlight/brightness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment