Created
March 14, 2013 10:38
-
-
Save TheAnonymous/5160353 to your computer and use it in GitHub Desktop.
This script is for Lenovo T400s (may work on others too...) to set the brightness through the console.
Tested on Fedora 18.
To get the path for your Laptop this command may helps you
find /sys -iname *bright*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ab=`cat /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/actual_brightness` | |
mb=`cat /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/max_brightness` | |
echo "The max brightness is " $mb " your actual brightness is " $ab " please enter your new brightess:" | |
read cb | |
echo $cb > "/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment