MyNameIsRichard ,
@MyNameIsRichard@lemmy.ml avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • linux@lemmy.ml
  • test
  • worldmews
  • mews
  • All magazines