You are not logged in.

#1 2014-02-01 04:16:50

KenMacD
Member
Registered: 2014-01-06
Posts: 19

Prevent all wakeups except lid

Hello,

I've had issues with echi_hcd and xhci_hcd preventing sleep, so I wrote a /usr/lib/systemd/system-sleep script to rmmod/modprobe them on sleep. This has worked okay except today my laptop started and ran for 2 hours while in it's laptop bag. It was very hot once I noticed.

I'd like a way to prevent anything at all from waking the laptop while the lid is closed.

I've looked at /proc/acpi/wakeup and disable the two items there:

Device	S-state	  Status   Sysfs node
P0P1	  S4	*disabled
GLAN	  S4	*disabled
EHC1	  S3	*disabled  pci:0000:00:1d.0
EHC2	  S4	*disabled
XHC	  S3	*disabled  pci:0000:00:14.0
HDEF	  S4	*disabled  pci:0000:00:1b.0
RP01	  S3	*disabled  pci:0000:00:1c.0
PXSX	  S3	*disabled  pci:0000:01:00.0
PEG0	  S4	*disabled
PEGP	  S4	*disabled
PEG1	  S4	*disabled
PEG2	  S4	*disabled

Still when I 'systemctl suspend' the system I can wake it with any keyboard key.

Can anyone tell me how to prevent the laptop from running while the lid is closed.

As a secondary query, I'd also like to know if there's some way to get a log of why the system actually awoke. It doesn't seem to be kept anywhere so I'd like to know how to enable these logs.

Thank you.

Offline

#2 2014-02-01 04:46:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Prevent all wakeups except lid

You might have to change the files in /sys/bus/usb/devices/*/power/wakeup from 'enabled' to 'disabled'.

Offline

#3 2014-02-01 23:14:16

KenMacD
Member
Registered: 2014-01-06
Posts: 19

Re: Prevent all wakeups except lid

Thanks, I tried that, but the keyboard can still wake the machine while closed. The screen is also a touchpad and I'm not sure if that'll wake it either.

Offline

Board footer

Powered by FluxBB