Last active
March 28, 2020 17:53
-
-
Save jirkafm/943574920ce7d2ed5bb9b5e124afb60e to your computer and use it in GitHub Desktop.
Intel backlight linux suspend script for systemd (source: http://tiny.cc/intel_backlight )
This file contains hidden or 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 | |
# Author xortim, jirkafm | |
# Description Workaround for intel backlight brightness quirk. | |
# Script should be put into /usr/lib/systemd/system-sleep | |
case "${1}" in | |
post) | |
echo 1 > /sys/class/backlight/intel_backlight/brightness | |
cat /tmp/pre_suspend_brt > /sys/class/backlight/intel_backlight/brightness | |
;; | |
pre) | |
cat /sys/class/backlight/intel_backlight/brightness > /tmp/pre_suspend_brt | |
;; | |
*) | |
exit 1 | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment