[Bug 1311724] Re: Macbook Air resumes immidiately after suspend
Maarten Verwijs
contact at maartenverwijs.nl
Thu Jun 26 12:25:36 UTC 2014
I'm experiencing the same problem.
- First suspend after reboot works every time without fail.
- Second suspend does a resume after 3 or 4 seconds.
The workaround ( sudo pm-suspend; sudo pm-suspend) only works on my
Macbook Air 6,2 when I've applied the workaround for this bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1318218
Workaround:
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
In order to have my macbook air suspend everytime I close the lid I've
added this line to /usr/sbin/pm-suspend:
$ diff -p pm-suspend.distrib pm-suspend
*** pm-suspend.distrib 2013-11-06 17:26:04.000000000 +0100
--- pm-suspend 2014-06-26 14:06:18.672660848 +0200
*************** if run_hooks sleep "$ACTION $METHOD"; th
*** 101,106 ****
--- 101,107 ----
log "$(date): performing $METHOD"
sync
"do_$METHOD" || r=128
+ "do_$METHOD" || r=128
log "$(date): Awake."
else
log "$(date): Inhibit found, will not perform $METHOD"
Also do a "dpkg-redirect add /usr/sbin/pm-suspend" to prevent the change
from getting overwritten.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1311724
Title:
Macbook Air resumes immidiately after suspend
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1311724/+subscriptions
More information about the Ubuntu-server-bugs
mailing list