here is a tiny script that I save as "xb" somewhere in my PATH and use like:
xb 10
The arg is from 0 to 100.
Code:
#!/bin/bash
#xbacklight -set $1
file="/sys/class/backlight/intel_backlight/brightness"
b="4648"
min="0"
max="4648"
steps="100"
step="$1"
if [[ -z $step ]]
then step=50
fi
b=`calc "int($min + ($max-$min)*$step/$steps + 0.5)"`
#echo $b; exit
echo $b | sudo tee $file >/dev/null
----
it relies on the system's brightness file residing in
/sys/class/backlight/intel_backlight/brightness
to find out - go to /sys/class/backlight and see whats in there...
try seeing if you can find a brightness file in there and see what are the min/max vals in there when you use the fn keys...
Also note : I use the
GRUB_CMDLINE_LINUX_DEFAULT="quiet nosplash acpi_backlight=vendor"
line in my
/etc/default/grub file
you put this acpi_backlight=vendor in there and then sudo update-grub
and reboot...
Bookmarks