Increase/Decrease LCD Brightness using Linux shell/commandline

You can increase your laptop brightness using Linux shell/commandline. There are some brightness levels predefined. You have to use these values for increasing or decreasing brightness from shell/commandline.
Brightness levels: 4 16 28 40 52 64 76 88 100
The command for increasing the brightness is
 echo -n 88 > /proc/acpi/video/VGA/LCD/brightness
You can select other brightness levels according to your preference instead of 88 from above lists.
I also wrote a small shell script for making it more convenient . Give your own fancy name for this shell script. My given name is ‘set_brightness.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#
# Copyright (C) 2011, Ankit Singh
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# SHELL SCRIPT TO INCREASE BRIGHTNESS LINUX (UBUNTU)
#
# NOTE: You can only use this script as super user i.e $sudo su
 
if [ $# -lt 1 ] ; then
echo
echo “Please Choose Brightness levels 4 16 28 40 52 64 76 88 100echo
exit 1
else
VALUE=$1
fi
 
set_brightness()
{
VAL=$1
echo -n $VAL > /proc/acpi/video/VGA/LCD/brightness
echo
echo*** [SUCCESS] Set Brightness to value to ” $VAL
echo
return 0
}
set_brightness $VALUE

Animated Social Media Icons Powered by Acurax Wordpress Development Company