MyNameIsRichard , 4 months ago I created a systemd service by putting the following in /etc/systemd/system/disable-mouse-wakeup.service [Unit] Description=Disable Mouse wakeup triggers [Service] Type=oneshot ExecStart=/bin/sh -c "echo XHC0 > /proc/acpi/wakeup" ExecStop=/bin/sh -c "echo XHC0 > /proc/acpi/wakeup" RemainAfterExit=yes [Install] WantedBy=multi-user.target Then I ran sudo systemctl enable --now disable-mouse-wakeup It works perfectly on my AMD machine.
I created a systemd service by putting the following in /etc/systemd/system/disable-mouse-wakeup.service
[Unit] Description=Disable Mouse wakeup triggers [Service] Type=oneshot ExecStart=/bin/sh -c "echo XHC0 > /proc/acpi/wakeup" ExecStop=/bin/sh -c "echo XHC0 > /proc/acpi/wakeup" RemainAfterExit=yes [Install] WantedBy=multi-user.target
Then I ran sudo systemctl enable --now disable-mouse-wakeup
sudo systemctl enable --now disable-mouse-wakeup
It works perfectly on my AMD machine.