Skip to content

Instantly share code, notes, and snippets.

@acro5piano
Created October 18, 2021 14:27
Show Gist options
  • Save acro5piano/4ab237300f1f92c6a6db0f4cb1cf8a53 to your computer and use it in GitHub Desktop.
Save acro5piano/4ab237300f1f92c6a6db0f4cb1cf8a53 to your computer and use it in GitHub Desktop.
Restore brightness using Arch Linux + System76 Lemur 10 + light

I've created a systemd unit to restore brightness of my laptop (system76 Lemur Pro 10).

It has been worked for almost a year, but suddenly it stopped working. I've fixed by value (sleep 5).

I took the log and found this line, I would like to stop this, but don't know how to do it.

Oct 18 23:17:35 archlinux kernel: video LNXVIDEO:00: Restoring backlight state
# /etc/systemd/system/after-suspend.service
[Unit]
Description=Before suspend script
Before=sleep.target
[Service]
Type=simple
ExecStart=/bin/sh -c "sleep 5 && light -S 10"
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment