laptop reawaking

parent eb3badb2
Pipeline #162410928 passed with stages
in 1 minute and 52 seconds
......@@ -49,3 +49,30 @@ If you have some internal DNS zones you can add them by adding these lines to yo
sudo dnf install pulseaudio-module-bluetooth-freeworld --allowerasing
pulseaudio -k
## Constant reawakening after suspending
[Source](https://www.reddit.com/r/Fedora/comments/7ya01j/systemd_unit_to_prevent_occasional/) _Works on SilverBlue as well._
sudo vi /etc/systemd/system/suppress-rogue-acpi-wakeups.service
With content:
[Unit]
Description=Suppress rogue ACPI wakeups
[Service]
Type=oneshot
ExecStart=/bin/sh -c "egrep -q XHCI.+enabled /proc/acpi/wakeup && echo XHCI > /proc/acpi/wakeup; egrep -q EHC1.+enabled /proc/acpi/wakeup && echo EHC1 > /proc/acpi/wakeup; egrep -q XHC.+enabled /proc/acpi/wakeup && echo XHC > /proc/acpi/wakeup"
[Install]
WantedBy=multi-user.target
And run:
sudo chmod 755 /etc/systemd/system/suppress-rogue-acpi-wakeups.service
sudo systemctl enable suppress-rogue-acpi-wakeups.service
Another possibility is to use `/lib/systemd/system-sleep` which doesn't work on SilverBlue because it's read-only partition there. [Source](https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1774994)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment