Article 6KNV2 Mouse Awakens Laptop from Suspend

Mouse Awakens Laptop from Suspend

by
will41
from LinuxQuestions.org on (#6KNV2)
I have a Lenovo C940 with 16gb ram, 1tb ssd, running Fedora 39 Cinnamon desktop which is up to date. I am also using a wireless Logitech mouse with the dongle plugged into a type "A" usb port (there is only one type "A" port). This all works great except when the C940 is in suspend mode, the slightest movement of the mouse will awaken it. I have discovered that the following will prevent this from occurring:
Code:sudo echo "XHC" > /proc/acpi/wakeupHowever, this only works for the current session and at next boot it has to be run again. Is it possible to use the GUI "Startup Applications" to run a script containing this command? The issue there might be that to run it I need to be su. Will sudo and the subsequent password work in script? I'm not sure I want to do that even if it will. The other question is how to get the script into the "Startup Applications" list? I see no way to do that unless I edit one of the items already there.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments