I ran into this:
http://forum.lxde.org/viewtopic.php?f=5&t=1374And adapted the script to work with the different location of the brightness settings:
Code:
# The first argument is whether to increase the brightness (+) or
# decrease the brightness (-).
# The second argument is optional and indicates the step size when
# increasing or decreasing the brightness. The default is 1.
if [ $# -eq 0 ]; then exit 1; fi
bright_file="/sys/class/backlight/nvidiabl0/brightness"
mbright_file="/sys/class/backlight/nvidiabl0/max_brightness"
while read line; do
brightness=$line
done < <(cat "$bright_file")
while read line; do
max_brightness=$line
done < <(cat "$mbright_file")
step=1
if [ $# -gt 1 ]; then
step=$2
fi
declare -i brightness
if [ $1 = "-" ]; then
if [ $brightness -ne 0 ]; then
brightness=$brightness-$step;
echo $brightness > /sys/class/backlight/nvidiabl0/brightness
fi
else
if [ $brightness -ne $max_brightness ]; then
brightness=$brightness+$step;
echo $brightness > $bright_file
fi
fi
Next step is to bind
Code:
/usr/bin/adjust_brightness.sh -
to key 192
and
Code:
/usr/bin/adjust_brightness.sh +
to key 193
Anybody knows where the key binding config files are? I have looked around a bit and it is suppose to be HOME/.config/openbox/rc.xml but I can't find it. I only found /usr/share/lxde/openbox/rc.xml