Created
August 6, 2022 19:18
-
-
Save azazar/48e8e81549adec2c7bc61737a4402262 to your computer and use it in GitHub Desktop.
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/bash | |
for dev in $(cat /proc/acpi/wakeup | grep '*enabled' | cut -d' ' -f1); do | |
if [ "$dev" = "PWRB" ]; then | |
continue | |
fi | |
echo $dev > /proc/acpi/wakeup | |
done | |
exit 0 | |
# cat /etc/systemd/system/fix-wake-event-list.service | |
[Unit] | |
Description=Fix Wake Event List | |
Before=basic.target | |
After=local-fs.target sysinit.target | |
DefaultDependencies=no | |
[Service] | |
Type=oneshot | |
ExecStart=/opt/fix-wake-event-list | |
[Install] | |
WantedBy=basic.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment