You are not logged in.

#1 2012-09-16 19:26:52

asharma
Member
From: Knoxville, TN
Registered: 2012-08-09
Posts: 3

KDE wakes up when I move my mouse even when the laptop lid is closed

Machine: Toshiba L505D-S5983
System: pure systemd installation, Linux l505d 3.5.3-1-ARCH #1 SMP PREEMPT Sun Aug 26 09:14:51 CEST 2012 x86_64 GNU/Linux
DE: KDE 4.9.1

Description of the problem:
When I close the lid of my laptop the computer goes to sleep. That is fine, it is what I want. However, when I move the mouse, even when the lid is closed, the computer wakes up. I would think it would be best if the computer did not wake up until the lid was opened.

The last 400 lines of output of #journalctl can be found here:  http://paste.kde.org/549902/

As can be seen from the log:
13:41:00  Lid closed
14:45       I must have moved the mouse
15:56       Opened the lid

I did not note down the exact times for the last two activities but they should be close to the listed times.

I would prefer the system to wake up only when the lid is open if the lid is previously closed and if the lid is open then wake up when the mouse is moved.

Can any one please help me with this?

Thanks

Offline

#2 2012-09-16 19:32:34

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: KDE wakes up when I move my mouse even when the laptop lid is closed

Perhaps you can set it in BIOS? Do you have any "enabled" in /proc/acpi/wakeup?

-edit-

Also see if "cat /sys/bus/usb/devices/*/power/wakeup" shows any "enabled".

Last edited by lucke (2012-09-16 19:50:30)

Offline

#3 2012-09-16 19:34:34

theshadster
Member
Registered: 2012-08-06
Posts: 29

Re: KDE wakes up when I move my mouse even when the laptop lid is closed

[obvious Smart Ass Comment] Schrödinger's bug; the mouse arousing the cat, I suspect. [/obvious Smart Ass Comment]

I know, I'm banned...

Offline

#4 2012-09-18 20:54:51

asharma
Member
From: Knoxville, TN
Registered: 2012-08-09
Posts: 3

Re: KDE wakes up when I move my mouse even when the laptop lid is closed

nano /proc/acpi/wakeup  gives me the following output:

Device  S-state   Status   Sysfs node
LID       S4    *enabled
PB2       S5    *disabled
PB3       S4    *disabled
PB5       S4    *disabled  pci:0000:00:05.0
PB7       S5    *disabled
PB9       S5    *disabled
PB10      S5    *disabled
AZAL      S3    *disabled  pci:0000:00:14.2
USB0      S3    *enabled   pci:0000:00:12.0
USB1      S3    *enabled   pci:0000:00:12.1
USB4      S3    *disabled
USB5      S3    *enabled   pci:0000:00:12.2

And cat /sys/bus/usb/devices/*/power/wakeup ouput is as follows:

enabled
disabled
disabled
disabled
disabled
disabled
disabled

So what should I do next?

Offline

#5 2012-09-18 23:09:02

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: KDE wakes up when I move my mouse even when the laptop lid is closed

Apparently since 3.2 you have to have at least two things in /sys/bus/usb/devices enabled for a USB device to wake the computer up. You have one and your mouse still wakes your computer up. Is it not USB? (I can't make my desktop PC wake up via USB keyboard or mouse anyhow)

If you could figure out how to enable/disable mouse wakeup, then you could use acpid to disable it when it catches the LID event (although acpid might not play nice with KDE/systemd) and enable mouse wakeup after resume through a script in /usr/lib/systemd/system-sleep/.

Offline

#6 2012-09-19 02:19:29

asharma
Member
From: Knoxville, TN
Registered: 2012-08-09
Posts: 3

Re: KDE wakes up when I move my mouse even when the laptop lid is closed

First of all Lucke, thank you for your response.
My mouse is a USB wireless mouse.

Offline

#7 2012-11-03 19:07:46

NSky
Member
From: Rostov-on-Don, Russia
Registered: 2012-06-22
Posts: 14

Re: KDE wakes up when I move my mouse even when the laptop lid is closed

Have anyone found the solution yet? I have the same problem:

[eugene@arch ~] $ cat /proc/acpi/wakeup 
Device	S-state	  Status   Sysfs node
P0P1	  S4	*disabled  
EHC1	  S3	*enabled   pci:0000:00:1d.0
USB1	  S3	*disabled  
USB2	  S3	*disabled  
USB3	  S3	*disabled  
USB4	  S3	*disabled  
EHC2	  S3	*enabled   pci:0000:00:1a.0
USB5	  S3	*disabled  
USB6	  S3	*disabled  
USB7	  S3	*disabled  
PXSX	  S4	*disabled  pci:0000:02:00.0
PXSX	  S4	*disabled  pci:0000:03:00.0
PXSX	  S4	*disabled  
PXSX	  S4	*enabled   pci:0000:04:00.0
PXSX	  S4	*disabled  
PXSX	  S4	*disabled  
GLAN	  S4	*disabled  pci:0000:05:00.0
PXSX	  S4	*disabled  
PXSX	  S4	*disabled  
GLAN	  S4	*disabled  
PEG3	  S4	*disabled  
B0D4	  S4	*disabled  
PEGR	  S4	*disabled  pci:0000:00:01.0
PEGP	  S4	*disabled  
GFX0	  S4	*disabled  pci:0000:01:00.0
[eugene@arch ~] $ cat /sys/bus/usb/devices/*/power/wakeup
disabled
disabled
enabled
disabled
disabled
disabled
disabled
disabled
disabled
disabled
[eugene@arch ~] $ 

Offline

Board footer

Powered by FluxBB