Created
August 7, 2019 16:48
-
-
Save shaybensasson/613845c2da59dd312f786c705983a0d9 to your computer and use it in GitHub Desktop.
A systemmd service that Fixes immediate wakeup after suspend, by disabling all triggers but power/sleep btn (X1 extreme)
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
| [Unit] | |
| Description="Fixes immediate wakeup after suspend, by disabling all trigers but power/sleep btn" | |
| # https://askubuntu.com/a/1139215/562313 | |
| [Service] | |
| ExecStart=/bin/bash -c "echo PEG0 > /proc/acpi/wakeup && echo PEGP > /proc/acpi/wakeup && echo XHC > /proc/acpi/wakeup && echo RP09 > /proc/acpi/wakeup && echo PXSX > /proc/acpi/wakeup" | |
| [Install] | |
| WantedBy=multi-user.target |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
subl /etc/systemd/system/Fix.immediate.wakeup.after.suspend.serviceln -s /etc/systemd/system/Fix.immediate.wakeup.after.suspend.service /etc/systemd/system/multi-user.target.wants/sudo systemctl daemon-reloadSanity:
4.
sudo systemctl start Fix.immediate.wakeup.after.suspend.service5.
sudo systemctl status Fix.immediate.wakeup.after.suspend.serviceRun on startup:
sudo systemctl enable Fix.immediate.wakeup.after.suspend.serviceThe idea was originally posted in here