Brightness

As it works on this damn laptop

So for some reason it’s controlled by the flies in/sys/class/backlight/intel_backlight/. Check it out if you want.

There are a bunch of files in there, but these are the main ones:

…. and a bunch of other shit who knows.

The script to edit the shit

It’s called brightness. This is what’s in brightness:

#!/bin/bashmax=$(cat /sys/class/backlight/intel_backlight/max_brightness)if [ $# == 1 ]; thenif [ $1 -gt 0 -a $1 -lt $max ]; thensudo echo $1 > /sys/class/backlight/intel_backlight/brightnesselseecho "Invalid brightness value!"fielsecat /sys/class/backlight/intel_backlight/brightnessfi

Link

The shit is from here.