• 56 Posts
  • 239 Comments
Joined 1 year ago
cake
Cake day: June 7th, 2023

help-circle






















  • 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.