Disable wakeup through Mouse (PS2) on LINUX

Published: by

  • Categories:

I recently started suspending my PC. Dont know for what reason, but i never used this feature of ubuntu. But, the problem I faced was that the PC woke up whenever my MOUSE moved.

On the messy table of my PC, its really difficult for me to avoid mouse movement while I do other things on the table. Like windows, LINUX doesnt have a GUI to change the settings of when to wake up the computer…

To check, what waked up my PC:-

shadyabhi@shadyabhi-desktop:~$ cat /proc/acpi/wakeup Device S-state Status Sysfs node SLPB S4 enabled P32 S4 disabled pci:0000:00:1e.0 UAR1 S4 disabled pnp:00:09 ILAN S4 disabled pci:0000:00:19.0 PEGP S4 disabled PEX0 S4 disabled pci:0000:00:1c.0 PEX1 S4 disabled pci:0000:00:1c.1 PEX2 S4 disabled pci:0000:00:1c.2 PEX3 S4 disabled pci:0000:00:1c.3 PEX4 S4 disabled pci:0000:00:1c.4 PEX5 S4 disabled UHC1 S3 disabled pci:0000:00:1d.0 UHC2 S3 disabled pci:0000:00:1d.1 UHC3 S3 disabled pci:0000:00:1d.2 UHC4 S3 disabled EHCI S3 disabled pci:0000:00:1d.7 EHC2 S3 disabled pci:0000:00:1a.7 UH42 S3 disabled pci:0000:00:1a.0 UHC5 S3 disabled pci:0000:00:1a.1 UHC6 S3 disabled pci:0000:00:1a.2 AZAL S3 disabled pci:0000:00:1b.0 shadyabhi@shadyabhi-desktop:~$

All the names looked really cryptic, and I still dont have idea about most of them. I only that I can still compare these devices with the output of lspci to check what PCI device it is..

From the output, I came to know that only one option was enabled, so i tried disabling it..

$echo SLPB >/proc/acpi/wakeup

And now, my PC doesnt wake up by mouse activity..

But, this was a temporary situation. As I had to do it everytime I booted the kernel (although I do it only once a fortnight :D), so this command should be executed every time I start the PC.

So, I made a file "mouse_disable.sh" in the /etc/init.d directory with the following contents.

#!/bin/sh echo SLPB >/proc/acpi/wakeup

Then use update-rc.d to make required symbolic links automatically in other directories…

$update-rc.d /etc/init.d/mouse_disable.sh defaults

This finally solved my problem.. :)