summaryrefslogtreecommitdiff
path: root/brightness-control/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'brightness-control/README.rst')
-rw-r--r--brightness-control/README.rst18
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
+
+