Macbook Air resumes immidiately after suspend

Bug #1311724 reported by Kim Nielsen
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

Computer model : Apple Macbook Air 6,2 (Mid 2013)
BIOS version : MBA61.88Z.0099.B04 (dmidecode -s bios-version), Oct. 2013 version
OS installed : Ubuntu 14.04, single boot

Problem description:

When closing lid on computer machine suspends. Within 8 to 10 seconds the machine resumes again with lid still closed. Imidiately opening an closing lid makes suspends the computer and it keeps suspended until lid is opened again.

This behaviour is the same when entering a sudo pm-suspend from the terminal. Machine suspends. But resumes after 8 to 10 seconds. Immidiately doing a second sudo pm-suspend, suspends the machine and keeps it suspended.

There is one case where the behaviour described above is different. That is in the situation where machine is put into suspend for the first time after a complete reboot. In this case the machine suspends correctly and stays suspended as expected.

The problem is consistent and can be reproduced as desribed any number of times.

Disabling wi-fi (using the Broadcom 802.11 Linux STA proprietary driver) doesn't alter the behaviour described above.

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 *enabled pci:0000:00:14.0
ADP1 S3 *disabled platform:ACPI0003:00
LID0 S3 *enabled

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: pm-utils 1.4.1-13
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 23 17:03:05 2014
InstallationDate: Installed on 2014-04-23 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64+mac (20140417)
PackageArchitecture: all
SourcePackage: pm-utils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Kim Nielsen (o-kim) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pm-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Jancis (beaver-inbox) wrote :

Today it almost fried my macbook, was very hot when i got it out of bag. I have MacBookPro11,2, contents of "cat /proc/acpi/wakeup" are exactly as above. Started after package upgrades couple weeks ago, now persists with all kernels i have on grub loader.

3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

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

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.

Revision history for this message
Petey (petey-u) wrote :

I have tried the workaround in #4 without luck.

Revision history for this message
Krister Swenson (thekswenson) wrote :

The workaround in #4 works for me as long as I do (as root):
 "echo medium_power > /sys/class/scsi_host/host0/link_power_management_policy"

Revision history for this message
Krister Swenson (thekswenson) wrote :

Careful though, this does not work every time... just most of the time.

Revision history for this message
Krister Swenson (thekswenson) wrote :

This seems to work all the time when the computer is unplugged...
  when plugged in, it seems to work most of the time.

Revision history for this message
penalvch (penalvch) wrote :

Kim Nielsen, could you please execute the following via a terminal in order for the necessary debugging information to be attached:
apport-collect 1311724

affects: pm-utils (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Andrew Gaul (gaul) wrote : apport information

ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: gaul 2053 F.... pulseaudio
 /dev/snd/controlC0: gaul 2053 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-04-02 (247 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
MachineType: Apple Inc. MacBookAir6,2
NonfreeKernelModules: wl
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-40-generic.efi.signed root=UUID=222bf3fe-9157-4a80-a0b2-1e5133409154 ro quiet splash intel_pstate=enable vt.handoff=7
ProcVersionSignature: Ubuntu 3.13.0-40.69-generic 3.13.11.10
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-40-generic N/A
 linux-backports-modules-3.13.0-40-generic N/A
 linux-firmware 1.127.10
Tags: trusty
Uname: Linux 3.13.0-40-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 05/24/2014
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBA61.88Z.0099.B12.1405241030
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-7DF21CB3ED6977E5
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookAir6,2
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-7DF21CB3ED6977E5
dmi.modalias: dmi:bvnAppleInc.:bvrMBA61.88Z.0099.B12.1405241030:bd05/24/2014:svnAppleInc.:pnMacBookAir6,2:pvr1.0:rvnAppleInc.:rnMac-7DF21CB3ED6977E5:rvrMacBookAir6,2:cvnAppleInc.:ct10:cvrMac-7DF21CB3ED6977E5:
dmi.product.name: MacBookAir6,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

tags: added: apport-collected
Revision history for this message
Andrew Gaul (gaul) wrote : AlsaInfo.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : BootDmesg.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : CRDA.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : IwConfig.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : Lspci.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : Lsusb.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : ProcEnviron.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : ProcModules.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : PulseList.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : RfKill.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : UdevDb.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : UdevLog.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote : WifiSyslog.txt

apport information

Revision history for this message
Andrew Gaul (gaul) wrote :

[~penalvch] I have the same symptoms and attached my apport information.

Revision history for this message
penalvch (penalvch) wrote :

Andrew Gaul, please do not apport-collect to a report you are not the original reporter of. Instead, if you have have a bug in Ubuntu, and so your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
https://wiki.ubuntu.com/Kernel/Policies/DuplicateBugs
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

As well, please do not announce in this report you created a new bug report.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

tags: removed: apport-collected
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Petey (petey-u) wrote :

This bug still exists. I'm on 15.04.

Revision history for this message
penalvch (penalvch) wrote :

Petey, if you would like your issue addressed, please file a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Revision history for this message
Jamon Camisso (jamon) wrote :

I opened a new bug about those over in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1616214

It is still affecting me using 16.04 on a Macbook Air 6.2.

Revision history for this message
miiiiitico (miticotoby) wrote :

having the same issue on mine.

disabling LID0 ACPI signal seems to do the trick for me. the downside is that laptop won't wakeup by itself anymore (you'll have to press the power button) but better than no sleep at all I guess.

echo LID0 >/proc/acpi/wakeup

Revision history for this message
penalvch (penalvch) wrote :

miiiiitico (miticotoby), it will help immensely if you filed a new report with the Ubuntu repository kernel (not mainline/upstream) via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
miiiiitico (miticotoby) wrote :
Revision history for this message
Devin (venable-devin) wrote :

Still having this issue in 2018

Revision history for this message
penalvch (penalvch) wrote :

Devin (venable-devin), if you want your issue addressed then file a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.