Comment 6 for bug 1523917

Revision history for this message
Maarten Verwijs (x-contact-0) wrote :

The fine folks at ArchLinux provide possible solutions to this issue. See: https://wiki.archlinux.org/index.php/MacBook#Suspend_and_Hibernate

I'll the steps below first and see if this solves the issue for me.

"Issues were reported where the machine would "suspend immediately after resume" in certain conditions when suspending by closing the lid. This was solved by de-selecting the option "event_when_closed_battery" in gconf-editor → gnome-power-manager → actions). "

And:

"If after suspend laptop is woken up after few seconds, may help to disable all stuff in /proc/acpi/wakeup, exclude LID0:

# echo XHC1 > /proc/acpi/wakeup
$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P2 S3 *disabled
EC S3 *disabled
HDEF S3 *disabled pci:0000:00:1b.0
RP01 S3 *disabled pci:0000:00:1c.0
RP02 S3 *disabled pci:0000:00:1c.1
RP03 S3 *disabled pci:0000:00:1c.2
ARPT S4 *disabled pci:0000:03:00.0
RP05 S3 *disabled pci:0000:00:1c.4
RP06 S3 *disabled pci:0000:00:1c.5
SPIT S3 *disabled
XHC1 S3 *disabled pci:0000:00:14.0
ADP1 S3 *disabled
LID0 S3 *enabled

And for permanent disabling:

$ cat /etc/udev/rules.d/90-xhc_sleep.rules

# disable wake from S3 on XHC1
SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"

If this does not work, check that ARPT is disabled, and add the corresponding rule to udev.

If this still does not work, try disabling LID0. This way suspending via lid-closing should be made impossible, so you might want to follow the instructions in this forum post to make suspending via both lid-closing and systemd possible, by using systemd services. "