Ubuntu 18.04 wakes immediately from suspend, and will revert this setting back after running echo XHC > /proc/acpi/wakeup.
- So how can I run this command every time my ThinkPad wakes from suspend?
I've added the following wakeup.sh to be run as a systemd
#!/bin/bash echo XHC > /proc/acpi/wakeup
and used the service template found here: Execute a network script at wake-up with systemd (15.04)
the service is running but after 1 suspend XHC is enabled again.. is it not being run as sudo? how is this a thing in ubuntu? i just want my thinkpad to stay suspended.