From 5f7fe5de181961eae2bb2bb12bc96a1f49d5c395 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 22 Feb 2015 11:32:52 +0530 Subject: moved brightness-control to this repository --- brightness-control/README.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 brightness-control/README.rst (limited to 'brightness-control/README.rst') 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//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//max_brightness + +Now to set brightness we use :: + + echo 50 > /sys/class/backlight//brightness + + -- cgit