Adjust your brightness via command line
David DEMELIER
demelier.david at gmail.com
Thu Nov 25 07:40:39 UTC 2010
Hello everyone,
I've got a laptop that cannot adjust brightness using functions keys
so I wrote a little program that use the acpi_video(4) driver and
sysctl(3).
The program adjust brightness using one arguments : up or down. Check
this example :
markand at Melon ~ $ brightness up
switching to 46
markand at Melon ~ $ sysctl hw.acpi.video.lcd0.brightness
hw.acpi.video.lcd0.brightness: 46
markand at Melon ~ $ brightness down
switching to 43
markand at Melon ~ $ sysctl hw.acpi.video.lcd0.brightness
hw.acpi.video.lcd0.brightness: 43
So if you canno't adjust brightness using function keys on your laptop
use this program with any bindkey in your window manager :
SHA256 (/www/var/srv/files/softs/brightness-0.1.tgz) =
0a44aeaedcd25f18eae3375d0b9d24bb994829b0af8b8304ecaffb6733ffbbab
http://files.malikania.fr/softs/brightness-0.1.tgz
Kind regards,
--
Demelier David
More information about the freebsd-mobile
mailing list