How can I stop my laptop waking from suspend as the lid is closed?

4

I have an Alienware M17x with Kubuntu 14.10. When I suspend to RAM and close the lid, very often it will wake up after a few seconds of sleep. Sometimes not. I get the feeling it's related to how quickly the lid is closed, but I have no hard data on this.

Here is my dmesg. There was a suspend-wake incident a few minutes ago.

EDIT: dmesg | grep -i lid shows nice, clean "lid opened" and "lid closed" events -- this is not a bounce issue.

spraff

Posted 2014-12-19T20:16:05.037

Reputation: 1 238

Assuming your power settings are set correctly, perhaps there is a loose connection? There are just buttons on the lid that detect if it is closed or not so perhaps they are getting bumped or something. – Eric F – 2014-12-19T20:18:20.217

Looks like a bouncing issue on the lid switch, where the switch makes contact several times - the first one does put the system to sleep as expected but then a second pulse wakes it up again.

– None – 2014-12-19T21:32:43.970

It sometimes happens ten seconds or so after the lid has closed. This makes me want to rule out bouncing. – spraff – 2014-12-20T04:53:57.543

Also, sometimes the lid is already fully down before the shutdown has happened. And even if it is a case of bounce, the question is then "how do I make my sleep/resume process bounce-tolerant?" – spraff – 2014-12-20T05:09:53.883

Do you have some RJ45 jack connected to LAN? Maybe it is some sort of Wake on LAN event. I have sometimes used the "Wake on LAN Traffic" mode for ethernet cards. It is not very usual to configure like this, but for network traffic capturing it is worth the price. – Sopalajo de Arrierez – 2015-05-25T01:48:54.867

Nothing is plugged in except the power cable. – spraff – 2015-05-30T14:45:57.977

Answers

0

I have the same problem on both Windows and Linux. It is caused by my mediaplayer (mediaplayer-classic on Windows and mplayer on Linux), whenever I close my mediaplayer and put it in "sleep" it stays asleep until I wake it up.

However, this is not a fix but a workaround.

UPDATE Yes, this is supposed to be a comment. But as a new member I am not able to place comments yet, but I can place answers... (It should be the other way around if you ask me)
Since this is how I "fixed" it, I chose to post it anyways.

Steven Grauwmans

Posted 2014-12-19T20:16:05.037

Reputation: 11

This appears to be primarily a comment. – Ramhound – 2016-08-31T11:39:31.030