Tried to self immolate for the second time

I’m not sure if this will fix your problem, but my problem with sleep was that every possible thing (like breathing on the touchpad) was waking the device up. Then, of course, it would not have any air in the bag to cool down the CPU even at idle. So on my AMD FW13 with Lubuntu (you may need to modify it a little), I have created this script (service file). It basically disables all events and leaves just the power button. So every time I want to wake up the device, I have to physically click the power button. Minor inconvenience compared to just opening the laptop up, but I don’t mind.
Create the following file at /etc/systemd/system/disable-wakeup.service, then sudo systemctl enable disable-wakeup, restart computer and put it to sleep. Power button (if mapping is the same on FW16) wakes it up. If it doesn’t wake up, hold power button to turn the computer off and disable the service, fix the script and re-enable.

[Unit]
Description=Disable Wakeup on Devices
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo disabled > /sys/devices/platform/AMDI0010:03/i2c-1/i2c-PIXA3854:00/power/wakeup"
ExecStartPost=/bin/bash -c "for device in /sys/bus/usb/devices/*/power/wakeup; do echo disabled > \"$device\"; done"
ExecStartPost=/bin/bash -c "find /sys/devices -type f -name 'wakeup' | awk '{print \"echo disabled | sudo tee \" $0}' | bash"
ExecStartPost=/bin/bash -c "echo -n 'enabled' > /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/power/wakeup"

[Install]
WantedBy=multi-user.target
3 Likes