Skip to content

Instantly share code, notes, and snippets.

@tuanle
Created April 1, 2014 15:38
Show Gist options
  • Save tuanle/9916692 to your computer and use it in GitHub Desktop.
Save tuanle/9916692 to your computer and use it in GitHub Desktop.
Fix problem that ubuntu (or maybe based ubuntu distro) always reset screen brightness setting on laptop. It is tested in mine Thinkpad T530.
sudo bash -c '{
echo "start on (login-session-start)"
echo "script"
echo " echo 13 2>/dev/null > /sys/class/backlight/acpi_video0/brightness"
echo " echo 13 2>/dev/null > /sys/class/backlight/acpi_video1/brightness"
echo "end script"
} > /etc/init/brightness.conf '
# Another way, you can insall xbacklight
# sudo apt-get instal xbacklight
# xbackligh -set 90
# (mean 90% brightness)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment