diff options
author | Srikant Patnaik | 2015-02-22 11:32:52 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-22 11:32:52 +0530 |
commit | 5f7fe5de181961eae2bb2bb12bc96a1f49d5c395 (patch) | |
tree | 7defb6db5905a263334b3c95874f5df5692db361 /brightness-control/README.rst | |
parent | c1e2d90471e9ffde25091635653c3e53c7ee0afb (diff) | |
download | FOSSEE-netbook-patcher-5f7fe5de181961eae2bb2bb12bc96a1f49d5c395.tar.gz FOSSEE-netbook-patcher-5f7fe5de181961eae2bb2bb12bc96a1f49d5c395.tar.bz2 FOSSEE-netbook-patcher-5f7fe5de181961eae2bb2bb12bc96a1f49d5c395.zip |
moved brightness-control to this repository
Diffstat (limited to 'brightness-control/README.rst')
-rw-r--r-- | brightness-control/README.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/brightness-control/README.rst b/brightness-control/README.rst new file mode 100644 index 0000000..89296a1 --- /dev/null +++ b/brightness-control/README.rst @@ -0,0 +1,18 @@ +Brightness control +================== + +Add the following line in `/etc/rc.local` to make it a startup job :: + + sudo chmod o+w /sys/class/backlight/<somefile>/brightness + +Now with a simple bash script we can `echo` suitable values to +above `brightness` file and change the brightness of the screen. It would +be a good practice to know the max brightness allowed by reading the file :: + + cat /sys/class/backlight/<somefile>/max_brightness + +Now to set brightness we use :: + + echo 50 > /sys/class/backlight/<somefile>/brightness + + |