# How do I disable my keyboard and mouse from waking my PC either from sleep or hibernate?

**URL:** <https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031>\
**Category:** Plasma\
**Created:** [July 26, 2020, 1:58am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031 "2020-07-26T01:58:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 26, 2020, 1:58am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/1 "2020-07-26T01:58:37Z")

</div>

How do I disable my keyboard and mouse from waking my PC either from sleep or hibernate?

I did go to the power settings and I tried to find something in relation to hibernation but still can’t find it. Does anyone have an idea?

---

<div class="post-metadata">

**Author:** ![SGS](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/sgs/32/20157_2.png) [@SGS](https://forum.endeavouros.com/u/SGS)\
**Post date:** [July 26, 2020, 2:04am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/2 "2020-07-26T02:04:36Z")

</div>

It is in BIOS? wake on LAN, wake on USB and so on.

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 26, 2020, 2:07am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/3 "2020-07-26T02:07:20Z")

</div>

I can try and check these settings, but I had the exact same problem on Windows and I did manage to figureout how to disable this on Windows. I don’t know about Linux or KDE for what the solution is. But yeah I will see if there is such setting(s).

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 26, 2020, 2:14am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/4 "2020-07-26T02:14:53Z")

</div>

> [@SGS](#):
>
> It is in BIOS? wake on LAN, wake on USB and so on.

Just checked the BIOS settings, all of those are disabled. So it has got to do with the OS I believe.

---

<div class="post-metadata">

**Author:** ![SGS](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/sgs/32/20157_2.png) [@SGS](https://forum.endeavouros.com/u/SGS)\
**Post date:** [July 26, 2020, 2:23am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/5 "2020-07-26T02:23:14Z")

</div>

ok, do you use KDE?  
some info needed 🙂

ah plasma. so kde

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 26, 2020, 2:51am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/6 "2020-07-26T02:51:08Z")

</div>

Yes mate KDE plasma I use 🙂

---

<div class="post-metadata">

**Author:** ![steanne](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/steanne/32/9187_2.png) [@steanne](https://forum.endeavouros.com/u/steanne)\
**Post date:** [July 26, 2020, 2:54am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/7 "2020-07-26T02:54:05Z")

</div>

it’s possible it’s something in a tlp config file? i vaguely remember that, but have long since uninstalled tlp since i use a desktop.

---

<div class="post-metadata">

**Author:** ![tbg](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/tbg/32/9399_2.png) [@tbg](https://forum.endeavouros.com/u/tbg)\
**Post date:** [July 26, 2020, 7:06am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/8 "2020-07-26T07:06:29Z")

</div>

It can also be done by writing a systemd service.

Here is an example:

[Disable unattended wakeup](https://forum.manjaro.org/t/writing-systemd-service-units/60350/80)

---

<div class="post-metadata">

**Author:** ![anon379864](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@anon379864](https://forum.endeavouros.com/u/anon379864)\
**Post date:** [July 26, 2020, 8:19am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/9 "2020-07-26T08:19:00Z")

</div>

Leopard. Spots.

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 26, 2020, 10:03am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/10 "2020-07-26T10:03:23Z")

</div>

Why does it keep re-writing back to defaults unless you use a script?

Edit: Isn’t there a way for it to permanently keep it disabled?

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 26, 2020, 2:00pm UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/11 "2020-07-26T14:00:42Z")

</div>

I tried your suggestion it fails though. Even after a reboot it still wakes when I do a mouse movement.

---

<div class="post-metadata">

**Author:** ![tbg](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/tbg/32/9399_2.png) [@tbg](https://forum.endeavouros.com/u/tbg)\
**Post date:** [July 26, 2020, 7:55pm UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/12 "2020-07-26T19:55:12Z")

</div>

You can look at my service to enable wakeup of a USB device (Logitech trackball) earlier in that tread.

[USB Wakeup service](https://forum.manjaro.org/t/writing-systemd-service-units/60350/75)

Changing enable to disable on the USB port your mouse and keyboard are using should work. You can even shut down the entire USB bus using a service.

I suggest you start reading the thread on services, especially posts relating to enabling disabling USB devices on suspend. There are different ways to accomplish doing that.

You might want to try disabling the device by its unique ID.

See:

[USB Restart Service](https://forum.manjaro.org/t/writing-systemd-service-units/60350/41)

Sorry, but there are over 100 posts on that thread and I’m only on my cell phone, so I’m not going to be walking you through all of them. You’ll need to start reading the information that is already documented on my service thread or other sources.

A service will work for this as I have used services to enable support for KB & mice. Logically, if a service works to enable support, it can just as easily.be used to disable support for wake up.

---

<div class="post-metadata">

**Author:** ![tbg](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/tbg/32/9399_2.png) [@tbg](https://forum.endeavouros.com/u/tbg)\
**Post date:** [July 26, 2020, 8:10pm UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/13 "2020-07-26T20:10:11Z")

</div>

> [@steanne](#):
>
> it’s possible it’s something in a tlp config file? i vaguely remember that, but have long since uninstalled tlp since i use a desktop

If services and scripts are a little too much effort for you do as @steanne suggested.

You can install tlp (if not already installed) and tlpui from the AUR. You should then be able to use the tlpgui program to change your power settings through a GUI.

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 27, 2020, 12:47am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/14 "2020-07-27T00:47:27Z")

</div>

> [@tbg](#):
>
> If services and scripts are a little too much effort for you do as @steanne suggested.
> 
> You can install tlp (if not already installed) and tlpui from the AUR. You should then be able to use the tlpgui program to change your power settings through a GUI.

I will try this method then.

I installed the `tlpui` (`tlp` is already preinstalled) so I went to the USB section and it all has got to do with USB autosuspend feature. Is there a setting I am missing or something?

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [July 27, 2020, 1:09am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/15 "2020-07-27T01:09:06Z")

</div>

@unix_lover  
Check:

```auto
cat /proc/acpi/wakeup

```

Edit: Is this a dual boot with Windows?

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 27, 2020, 1:20am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/16 "2020-07-27T01:20:56Z")

</div>

> [@ricklinux](#):
>
> `cat /proc/acpi/wakeup`

The result I get is this:

```auto
Device S-state Status Sysfs node
PEG0 S4 *disabled pci:0000:00:01.0
PEGP S4 *disabled pci:0000:01:00.0
PEG1 S4 *disabled
PEGP S4 *disabled
PEG2 S4 *disabled
PEGP S4 *disabled
PS2K S3 *disabled
PS2M S3 *disabled
RP01 S4 *disabled pci:0000:00:1c.0
PXSX S4 *disabled
RP02 S4 *disabled
PXSX S4 *disabled
RP03 S4 *disabled pci:0000:00:1c.2
PXSX S4 *disabled pci:0000:03:00.0
RP04 S4 *disabled
PXSX S4 *disabled
RP05 S4 *disabled
PXSX S4 *disabled
RP06 S4 *disabled
PXSX S4 *disabled
RP07 S4 *disabled
PXSX S4 *disabled
RP08 S4 *disabled
PXSX S4 *disabled
GLAN S4 *disabled pci:0000:00:19.0
EHC1 S4 *enabled pci:0000:00:1d.0
EHC2 S4 *enabled pci:0000:00:1a.0
XHC S4 *enabled pci:0000:00:14.0
TPD4 S4 *disabled
TPD7 S0 *disabled
TPD8 S0 *disabled
HDEF S4 *disabled pci:0000:00:1b.0
PWRB S3 *enabled platform:PNP0C0C:00

```

> [@ricklinux](#):
>
> Edit: Is this a dual boot with Windows?

Yes correct, I did shutdown Windows, not hibernate Windows when booted into EndeavourOS.

---

<div class="post-metadata">

**Author:** ![tbg](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/tbg/32/9399_2.png) [@tbg](https://forum.endeavouros.com/u/tbg)\
**Post date:** [July 27, 2020, 2:55am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/17 "2020-07-27T02:55:48Z")

</div>

My apologies as with @steanne I use a desktop and therefore do not use tlp. I am not that familiar with tlp’s GUI settings. There is also the tlp config file that can be edited manually if you check the options there.

[https://linrunner.de/tlp/settings/](https://linrunner.de/tlp/settings/)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [July 27, 2020, 9:58am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/18 "2020-07-27T09:58:55Z")

</div>

@unix_lover  
It’s possible EHC1, EHC2 and XHC could be the culprit. (Enhanced Host Controller and Xhc) All related to USB.

You could try log in as root and try each of these separate and all. You’ll have to google this. As far as i know it’s temporary until reboot. If this is the cause then permanent solution has to be done. So maybe this is a setting in tlp that can be set? USB auto suspend?

echo EHC1 \>\> /proc/acpi/wakeup

echo EHC2 \>\> /proc/acpi/wakeup

echo XHC \>\> /proc/acpi/wakeup

The other one is the power button so don’t touch that.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [July 27, 2020, 10:03am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/19 "2020-07-27T10:03:15Z")

</div>

Yes… a desktop guy! 👍

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [July 27, 2020, 10:27am UTC](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031/20 "2020-07-27T10:27:28Z")

</div>

> [@ricklinux](#):
>
> So maybe this is a setting in tlp that can be set? USB auto suspend?

I could give this a try maybe.

Tried running the first command `sudo echo EHC1 >> /proc/acpi/wakeup` I am getting an error message

```auto
<W> fish: An error occurred while redirecting file '/proc/acpi/wakeup'
open: Permission denied

```

[Next page](https://forum.endeavouros.com/t/how-do-i-disable-my-keyboard-and-mouse-from-waking-my-pc-either-from-sleep-or-hibernate/6031.md?page=2)
