this post was submitted on 07 Feb 2024
49 points (98.0% liked)
Linux
48090 readers
786 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I created a systemd service by putting the following in /etc/systemd/system/disable-mouse-wakeup.service
Then I ran
sudo systemctl enable --now disable-mouse-wakeup
It works perfectly on my AMD machine.
On mine it was playing with some /sys/bus/usb/devices/1-4/power/wakeup or something, (use the right device number from lsusb), also there is some settings in the BIOS to power or not USB when sleeping, obviously if some USB port have no power, wakeup cannot work :) Every setup/BIOS is kinda different though.
And I have had the same problem as OP with just knocking the desk and the computer wakes up and it is annoying!
My latest trackball I switched it to Bluetooth mode so when PC is sleeping, no BT at all.
unfortunately, that doesn't work.
What system do you have? Laptop or desktop, if laptop which one, if desktop which mobo do you have? Check your bios for any sleep options, specifically S0 vs S3 standby.
S0 standby vs S3 standby can change things a lot. If you're in S3 standby then it's up to your bios/firmware to handle waking from sleep. If you're in S0 standby then your OS is in control.
I'll check now, thanks!
There was a setting in bios for wakeup. It was turned off. I turned it on but nothing changed.
Run
cat /proc/acpi/wakeup
and try some of the other devices instead of XHC0 if they are enabledEdit: Remember to run
sudo systemctl stop disable-mouse-wakeup
to reset them if it doesn't workUnfortunately, disabling the devices doesn't work.
I had this device earlier but I disabled it with your systemctl service earlier and although I stopped the service, it didn't come back. Probably, it's back on next reboot.
XHC S0 *enabled pci:0000:00:14.0
I didn't test LID0 or Powerbutton.
Those wakelock devices map to specific devices. If you run
lsusb
you will see thepci:0000:00:1c.4
and others.RP05
.That should be what is needed to disable waking up from the mouse.