Hello Mint-Users,
is there a way to let the computer (Mint 20) wake up from suspend by pressing any key or a certain key on my keyboard but not by mouse movements? I'm currently using a wireless keyboard/mouse set and don't want my PC to wake up the mouse moves a tiny bit.
Thanks,
Chilon
Wake up from suspend by keyboard key
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Wake up from suspend by keyboard key
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Wake up from suspend by keyboard key
Sorry, I don't know the answer to this.is there a way to let the computer (Mint 20) wake up from suspend by pressing any key or a certain key on my keyboard
I find it interesting that your computer wakes up from a suspend with mouse movements. Mine (LM19.3 Cinnamon) does not. <del>It won't wakeup via keyboard either.</del> CORRECTION: It does wake on a keyboard entry! The normal way I wake it up from a suspend is to press the on/off button, which has a slowly flashing light when in suspend mode. I will probably start using the keyboard.but not by mouse movements? I'm currently using a wireless keyboard/mouse set and don't want my PC to wake up the mouse moves a tiny bit.
-
- Level 1
- Posts: 9
- Joined: Thu May 13, 2021 7:31 am
- Location: Japan
Re: Wake up from suspend by keyboard key
I could do it.
My environment is here.
- Linux Mint 20.1(Linux Kernel 5.8.0-53)
- Keyboard(connected by PS/2)
- Mouse(connected by wireless at USB)
1st step, You should check the physical address of the Mouse.
2nd step, check for effective resume methods.
"PTXH" is an effective method "from Mouse", showned by lsinput command.
I guess "usb-0000:01:00" is same as "pci:0000:01:00".
The last step, enter this command to disable "from Mouse". (This command is toggled method)
Check for effective resume methods, once more.
You will have these result, then You can resume from Keyboard as before, and can't resume from Mouse anymore.
NOTICE: if rebooted your PC, this setting has goes away.
Enjoy Linux Mint!!
My environment is here.
- Linux Mint 20.1(Linux Kernel 5.8.0-53)
- Keyboard(connected by PS/2)
- Mouse(connected by wireless at USB)
1st step, You should check the physical address of the Mouse.
Code: Select all
~$ sudo lsinput
/dev/input/event2
bustype : BUS_I8042
vendor : 0x1
product : 0x1
version : 43841
name : "AT Translated Set 2 keyboard"
phys : "isa0060/serio0/input0"
bits ev : (null) (null) (null) (null) (null)
/dev/input/event5
bustype : BUS_USB
vendor : 0x46d
product : 0x4054
version : 273
name : "Logitech Wireless Mouse"
phys : "usb-0000:01:00.0-9/input1:2"
uniq : "4054-94-ce-f1-b4"
bits ev : (null) (null) (null) (null)
Code: Select all
~$ cat /proc/acpi/wakeup | grep enable
GPP8 S4 *enabled pci:0000:00:03.1
GP12 S4 *enabled pci:0000:00:07.1
GP13 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:08:00.3
PS2K S3 *enabled pnp:00:04
GPP2 S4 *enabled pci:0000:00:01.3
PTXH S4 *enabled pci:0000:01:00.0
I guess "usb-0000:01:00" is same as "pci:0000:01:00".
The last step, enter this command to disable "from Mouse". (This command is toggled method)
Code: Select all
~$ sudo sh -c "echo PTXH > /proc/acpi/wakeup"
Code: Select all
~$ cat /proc/acpi/wakeup | grep enable
GPP8 S4 *enabled pci:0000:00:03.1
GP12 S4 *enabled pci:0000:00:07.1
GP13 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:08:00.3
PS2K S3 *enabled pnp:00:04
GPP2 S4 *enabled pci:0000:00:01.3
NOTICE: if rebooted your PC, this setting has goes away.
Enjoy Linux Mint!!