Created
February 8, 2017 22:13
-
-
Save themadinventor/d39f8899bc22a98371e0bc6f3e9e667a to your computer and use it in GitHub Desktop.
Blink suspend led on Thinkpad
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/sh | |
| # in /usr/local/bin/blink_suspend | |
| echo "7 blink" > /proc/acpi/ibm/led |
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
| # in /etc/systemd/system/suspend_blink.service | |
| [Unit] | |
| Description=blink on suspend | |
| Before=sleep.target | |
| [Service] | |
| User=root | |
| Type=forking | |
| ExecStart=/usr/local/bin/blink_suspend | |
| [Install] | |
| WantedBy=sleep.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment