It is incredibly annoying to me that my mouse wakes the computer when I barely touch it. If I want my PC to turn on, I press the Super key.

I find very hacky scripts online, I tried some but they didn’t work. How did you disable it?

This option is missing from settings.

You are viewing a single thread.
View all comments View context
1 point

unfortunately, that doesn’t work.

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
1 point

I’ll check now, thanks!

permalink
report
parent
reply
1 point
*

There was a setting in bios for wakeup. It was turned off. I turned it on but nothing changed.

permalink
report
parent
reply
1 point
*

Run cat /proc/acpi/wakeup and try some of the other devices instead of XHC0 if they are enabled

Edit: Remember to run sudo systemctl stop disable-mouse-wakeup to reset them if it doesn’t work

permalink
report
parent
reply
1 point
*

Unfortunately, disabling the devices doesn’t work.

RP01	  S4	*enabled   pci:0000:00:1c.0
RP05	  S4	*enabled   pci:0000:00:1c.4
RP06	  S4	*enabled   pci:0000:00:1c.5
LID0	  S3	*enabled   platform:PNP0C0D:00
PBTN	  S3	*enabled   platform:PNP0C0C:00

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.

permalink
report
parent
reply
4 points

Those wakelock devices map to specific devices. If you run lsusb you will see the pci:0000:00:1c.4 and others.

  • Find the one that your mouse is.
  • Do the echo command into that device RP05.
  • Confirm it’s disabled.
  • suspend & then try moving the mouse
  • if it works edit the systemd script with the correct echo command
  • make sure you make the service Enabled (otherwise it won’t start on boot)
  • reboot and confirm it’s still disabled.

That should be what is needed to disable waking up from the mouse.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

Community stats

  • 7.5K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments