cp fix-backlight.service /etc/systemd/system/
cp max_backlight /usr/local/bin/
chmod a+x /usr/local/bin/max-backlight
systemctl enable fix-backlight
Created
August 19, 2016 18:31
-
-
Save spheenik/7a4cd9798c166272b46d8e31a7b1c5b7 to your computer and use it in GitHub Desktop.
Autmatically set max display brightness on suspend on Dell XPS 9550
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
[Unit] | |
Description=Set Intel backlight to max brightness before sleep | |
Before=sleep.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/max_backlight | |
[Install] | |
WantedBy=sleep.target |
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/sh | |
bl=/sys/class/backlight/intel_backlight | |
cat $bl/max_brightness > $bl/brightness |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment