diff options
author | David Runge <david.runge@frqrec.com> | 2014-02-25 23:58:20 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-02-25 23:58:20 +0100 |
commit | 5c27973d5c2d829c9c24200849dc0b94dccd0642 (patch) | |
tree | d994cd2f0f36dcf2032496aa9a6389f319d65ee9 /bin/fix_backlight | |
parent | 28e418c8e73e35b46bb7428b007866a360e34629 (diff) | |
download | dotfiles-5c27973d5c2d829c9c24200849dc0b94dccd0642.tar.gz dotfiles-5c27973d5c2d829c9c24200849dc0b94dccd0642.tar.bz2 dotfiles-5c27973d5c2d829c9c24200849dc0b94dccd0642.tar.xz dotfiles-5c27973d5c2d829c9c24200849dc0b94dccd0642.zip |
Script to fix backlight during graphical.target (formerly known as set_backlight)
Diffstat (limited to 'bin/fix_backlight')
-rwxr-xr-x | bin/fix_backlight | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/fix_backlight b/bin/fix_backlight new file mode 100755 index 0000000..00a6d8f --- /dev/null +++ b/bin/fix_backlight @@ -0,0 +1,12 @@ +#!/bin/bash +# Script to set backlight on startup on Lenovo W540 using +# /sys/class/backlight/intel_backlight/brightness +# This must be run as root. + +# check if root +if [[ $EUID -ne 0 ]];then + echo "This must be run as root." +else + # set to 234 (around 4th step) + echo 234 > /sys/class/backlight/intel_backlight/brightness +fi |