Skip to content

Instantly share code, notes, and snippets.

@spheenik
Created August 19, 2016 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spheenik/7a4cd9798c166272b46d8e31a7b1c5b7 to your computer and use it in GitHub Desktop.
Save spheenik/7a4cd9798c166272b46d8e31a7b1c5b7 to your computer and use it in GitHub Desktop.
Autmatically set max display brightness on suspend on Dell XPS 9550
  • 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
[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
#!/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