this post was submitted on 06 Mar 2024
26 points (86.1% liked)
Linux
48069 readers
763 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
Soooooooooo... thank you so much. I finally had time for trying out solutions here and your link to askubuntu helped me solve this. Specifically, the answer from Ali Hoza is what I tried first and it seems to work very well. I am copying that answer here for anyone else at Lemmy to try.
The above solution (https://askubuntu.com/a/265389/1467620) works, but it is crude and, also it disables the keyboard wake, which is actually useful.
A more granular alternative can be this: First, we start by enumerating the USB devices connected to the system:
from here, it’s pretty obvious which one is the mouse:
then we proceed with finding where the devices are mapped to:
Finally, to figure out which is which, we use:
at which point it’s pretty obvious which one needs to be disabled:
note: every time you need to echo as superuser, sh -c is necessary, or the system will not allow redirecting to a priviliged file.
Then it’s just a matter of suspending the system and verifying that, while the mouse does not wake it, the keyboard will.
this does not survive a system reboot, so either you need to re-run the last command, or add it to your .bashrc or .zshrc.
This is something that has been annoying me on Ubuntu since when I installed 16.04, and probably there forever, I cannot understand why Canonical wouldn’t add this in the System Settings.
Source: https://codetrips.com/2020/03/18/ubuntu-disable-mouse-wake-from-suspend/