macbook air wakes up immediately after suspend

Bug #1483054 reported by Levente Torok
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Debian
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Whenever I put to suspend my macbook air, ubuntu 15.04 wakes up in a few seconds.
I've found no way to avoid this.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: linux-image-3.19.0-25-generic 3.19.0-25.26
ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2
Uname: Linux 3.19.0-25-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lev 2001 F.... pulseaudio
 /dev/snd/controlC1: lev 2001 F.... pulseaudio
CurrentDesktop: Unity
Date: Sun Aug 9 23:30:10 2015
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=918f68f1-76f0-4449-b89c-3f9685f8ce63
InstallationDate: Installed on 2015-07-16 (24 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 05ac:0291 Apple, Inc.
 Bus 001 Device 006: ID 05ac:828f Apple, Inc.
 Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Apple Inc. MacBookAir7,2
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-25-generic.efi.signed root=UUID=660bcd07-b8a9-4231-b479-e35018d66612 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.19.0-25-generic N/A
 linux-backports-modules-3.19.0-25-generic N/A
 linux-firmware 1.143.2
SourcePackage: linux
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/05/2015
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBA71.88Z.0166.B06.1506051511
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-937CB26E2E02BB01
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookAir7,2
dmi.chassis.asset.tag: Chassis Board Asset Tag#
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-937CB26E2E02BB01
dmi.modalias: dmi:bvnAppleInc.:bvrMBA71.88Z.0166.B06.1506051511:bd06/05/2015:svnAppleInc.:pnMacBookAir7,2:pvr1.0:rvnAppleInc.:rnMac-937CB26E2E02BB01:rvrMacBookAir7,2:cvnAppleInc.:ct9:cvrMac-937CB26E2E02BB01:
dmi.product.name: MacBookAir7,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Levente Torok (toroklev) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
importance: Medium → Low
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.2 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-rc6-unstable/

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Levente Torok (toroklev) wrote : Re: [Bug 1483054] Re: macbook air wakes up immediately after suspend
Download full text (4.1 KiB)

Hi Joseph,

Yes. It did happen after update. It was working fine before as far as I
remember.
I have tried to test former kernel version again but haven't succeeded with
the Grub configuration.

I will try to use the latest upstream kernel later on for sure.
Thanks for dealing with my case.

Cheers,
Lev

On Wed, Aug 12, 2015 at 11:22 PM, Joseph Salisbury <
<email address hidden>> wrote:

> Did this issue start happening after an update/upgrade? Was there a
> prior kernel version where you were not having this particular problem?
>
> Would it be possible for you to test the latest upstream kernel? Refer
> to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
> v4.2 kernel[0].
>
> If this bug is fixed in the mainline kernel, please add the following
> tag 'kernel-fixed-upstream'.
>
> If the mainline kernel does not fix this bug, please add the tag:
> 'kernel-bug-exists-upstream'.
>
> Once testing of the upstream kernel is complete, please mark this bug as
> "Confirmed".
>
>
> Thanks in advance.
>
> [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-rc6-unstable/
>
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1483054
>
> Title:
> macbook air wakes up immediately after suspend
>
> Status in linux package in Ubuntu:
> Incomplete
>
> Bug description:
> Whenever I put to suspend my macbook air, ubuntu 15.04 wakes up in a few
> seconds.
> I've found no way to avoid this.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.04
> Package: linux-image-3.19.0-25-generic 3.19.0-25.26
> ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2
> Uname: Linux 3.19.0-25-generic x86_64
> NonfreeKernelModules: wl
> ApportVersion: 2.17.2-0ubuntu1.1
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: lev 2001 F.... pulseaudio
> /dev/snd/controlC1: lev 2001 F.... pulseaudio
> CurrentDesktop: Unity
> Date: Sun Aug 9 23:30:10 2015
> EcryptfsInUse: Yes
> HibernationDevice: RESUME=UUID=918f68f1-76f0-4449-b89c-3f9685f8ce63
> InstallationDate: Installed on 2015-07-16 (24 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> Lsusb:
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 05ac:0291 Apple, Inc.
> Bus 001 Device 006: ID 05ac:828f Apple, Inc.
> Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub
> (part of BCM2046 Bluetooth)
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> MachineType: Apple Inc. MacBookAir7,2
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-25-generic.efi.signed
> root=UUID=660bcd07-b8a9-4231-b479-e35018d66612 ro quiet splash vt.handoff=7
> RelatedPackageVersions:
> linux-restricted-modules-3.19.0-25-generic N/A
> linux-backports-modules-3.19.0-25-generic N/A
> linux-firmware 1.143.2
> SourcePackage: linux
> UdevLog: Error: [Errno 2] No such file or dire...

Read more...

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
Levente Torok (toroklev) wrote :

On kernel 3.19.0-30-generic #34-Ubuntu SMP I am still experiencing this, or similar.
The exact description is this: sometimes it can suspend but if it wakes up, the next suspend is again the
"immediate wake up" state again.

Changed in linux (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Levente Torok (toroklev) wrote :
Download full text (4.1 KiB)

I worked well on the first kernel of Ubuntu 15.04 until June roughly.
Since it has gone to this state it never got working properly again, no
matter if upgrade to the newest kernel of ubuntu that comes along with the
packages upgrades.

Levente

Sorry for typos, sent from mobile / Elnézést az elütésekért, mobilon írtam
On Aug 12, 2015 11:30 PM, "Joseph Salisbury" <email address hidden>
wrote:

> Did this issue start happening after an update/upgrade? Was there a
> prior kernel version where you were not having this particular problem?
>
> Would it be possible for you to test the latest upstream kernel? Refer
> to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
> v4.2 kernel[0].
>
> If this bug is fixed in the mainline kernel, please add the following
> tag 'kernel-fixed-upstream'.
>
> If the mainline kernel does not fix this bug, please add the tag:
> 'kernel-bug-exists-upstream'.
>
> Once testing of the upstream kernel is complete, please mark this bug as
> "Confirmed".
>
>
> Thanks in advance.
>
> [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-rc6-unstable/
>
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1483054
>
> Title:
> macbook air wakes up immediately after suspend
>
> Status in linux package in Ubuntu:
> Incomplete
>
> Bug description:
> Whenever I put to suspend my macbook air, ubuntu 15.04 wakes up in a few
> seconds.
> I've found no way to avoid this.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.04
> Package: linux-image-3.19.0-25-generic 3.19.0-25.26
> ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2
> Uname: Linux 3.19.0-25-generic x86_64
> NonfreeKernelModules: wl
> ApportVersion: 2.17.2-0ubuntu1.1
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: lev 2001 F.... pulseaudio
> /dev/snd/controlC1: lev 2001 F.... pulseaudio
> CurrentDesktop: Unity
> Date: Sun Aug 9 23:30:10 2015
> EcryptfsInUse: Yes
> HibernationDevice: RESUME=UUID=918f68f1-76f0-4449-b89c-3f9685f8ce63
> InstallationDate: Installed on 2015-07-16 (24 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> Lsusb:
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 05ac:0291 Apple, Inc.
> Bus 001 Device 006: ID 05ac:828f Apple, Inc.
> Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub
> (part of BCM2046 Bluetooth)
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> MachineType: Apple Inc. MacBookAir7,2
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-25-generic.efi.signed
> root=UUID=660bcd07-b8a9-4231-b479-e35018d66612 ro quiet splash vt.handoff=7
> RelatedPackageVersions:
> linux-restricted-modules-3.19.0-25-generic N/A
> linux-backports-modules-3.19.0-25-generic N/A
> linux-firmware 1.143.2
> SourcePackage: linux
> UdevLog: Error: [Errno 2] No such file ...

Read more...

Revision history for this message
Nick Bartos (bartos) wrote :

Confirmed this is still a problem on Ubuntu 15.10 and 4.2.0-27-generic, as well as this mainline kernel:

linux-headers-4.5.0-040500rc4_4.5.0-040500rc4.201602141731_all.deb
linux-headers-4.5.0-040500rc4-generic_4.5.0-040500rc4.201602141731_amd64.deb
linux-image-4.5.0-040500rc4-generic_4.5.0-040500rc4.201602141731_amd64.deb

Revision history for this message
Levente Torok (toroklev) wrote :
Download full text (3.4 KiB)

Good to know.
Thanks for reporting.

Sorry for typos, sent from mobile / Elnézést az elütésekért, mobilon írtam
On Feb 19, 2016 8:41 PM, "Nick Bartos" <email address hidden> wrote:

> Confirmed this is still a problem on Ubuntu 15.10 and 4.2.0-27-generic,
> as well as this mainline kernel:
>
> linux-headers-4.5.0-040500rc4_4.5.0-040500rc4.201602141731_all.deb
>
> linux-headers-4.5.0-040500rc4-generic_4.5.0-040500rc4.201602141731_amd64.deb
> linux-image-4.5.0-040500rc4-generic_4.5.0-040500rc4.201602141731_amd64.deb
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1483054
>
> Title:
> macbook air wakes up immediately after suspend
>
> Status in linux package in Ubuntu:
> Confirmed
> Status in Debian:
> New
>
> Bug description:
> Whenever I put to suspend my macbook air, ubuntu 15.04 wakes up in a few
> seconds.
> I've found no way to avoid this.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.04
> Package: linux-image-3.19.0-25-generic 3.19.0-25.26
> ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2
> Uname: Linux 3.19.0-25-generic x86_64
> NonfreeKernelModules: wl
> ApportVersion: 2.17.2-0ubuntu1.1
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: lev 2001 F.... pulseaudio
> /dev/snd/controlC1: lev 2001 F.... pulseaudio
> CurrentDesktop: Unity
> Date: Sun Aug 9 23:30:10 2015
> EcryptfsInUse: Yes
> HibernationDevice: RESUME=UUID=918f68f1-76f0-4449-b89c-3f9685f8ce63
> InstallationDate: Installed on 2015-07-16 (24 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> Lsusb:
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 05ac:0291 Apple, Inc.
> Bus 001 Device 006: ID 05ac:828f Apple, Inc.
> Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub
> (part of BCM2046 Bluetooth)
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> MachineType: Apple Inc. MacBookAir7,2
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-25-generic.efi.signed
> root=UUID=660bcd07-b8a9-4231-b479-e35018d66612 ro quiet splash vt.handoff=7
> RelatedPackageVersions:
> linux-restricted-modules-3.19.0-25-generic N/A
> linux-backports-modules-3.19.0-25-generic N/A
> linux-firmware 1.143.2
> SourcePackage: linux
> UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 06/05/2015
> dmi.bios.vendor: Apple Inc.
> dmi.bios.version: MBA71.88Z.0166.B06.1506051511
> dmi.board.asset.tag: Base Board Asset Tag#
> dmi.board.name: Mac-937CB26E2E02BB01
> dmi.board.vendor: Apple Inc.
> dmi.board.version: MacBookAir7,2
> dmi.chassis.asset.tag: Chassis Board Asset Tag#
> dmi.chassis.type: 9
> dmi.chassis.vendor: Apple Inc.
> dmi.chassis.version: Mac-937CB26E2E02BB01
> dmi.modalias:
> dmi:bvnAppleInc.:bvrMBA71.88Z.0166.B06.1506051511:bd06/05/2015:svnAppleInc.:pnMacBookAir7,2:pvr...

Read more...

Revision history for this message
Greg Whiteley (greg-whiteley) wrote :

Hope this is of some use to diagnose the issue further. I have the following observations from a Macbook pro that wakes immediately after suspend

```
cat /proc/acpi/wakeup Device S-state Status Sysfs node
P0P2 S3 *disabled pci:0000:00:01.0
GFX0 S3 *disabled pci:0000:01:00.0
PEG1 S3 *disabled pci:0000:00:01.1
EC S4 *disabled platform:PNP0C09:00
GMUX S3 *disabled pnp:00:03
HDEF S3 *disabled pci:0000:00:1b.0
RP03 S3 *disabled pci:0000:00:1c.2
ARPT S4 *disabled pci:0000:03:00.0
RP04 S3 *disabled pci:0000:00:1c.3
RP05 S3 *disabled pci:0000:00:1c.4
XHC1 S3 *enabled pci:0000:00:14.0
ADP1 S4 *disabled platform:ACPI0003:00
LID0 S4 *enabled platform:PNP0C0D:00
```

Note two ACPI wakeup sources - XHC1 and LID0 (XHC1 is USB - eg for external keyboards, LID0 is the lid). Now you can toggle their wakeup powers as follows

```
$ echo XHC1 | sudo tee /proc/acpi/wakeup
$ echo LID0 | sudo tee /proc/acpi/wakeup
```

(Note with both XHC1 and LID disabled only the power-button will wake you)

What I see: (Truth table)

  XHC1 | LID0 | Result
  disabled | disabled | Stays asleep until power button hit
  enabled | enabled | Wake after 2.5 seconds sleep
  enabled | disabled | Wake after 2.5 seconds sleep
  disabled | enabled | Stays asleep if lid left closed
             | | Wake after 2.5 seconds sleep if lid left open

From this I infer that something on the USB bus (or the USB driver itself) is causing a wake - I can't find a culprit device on the bus.

From this I also infer that the lid state reports regularly - ie its not the act of opening that causes the wake its the fact of it being open.

So by disabling just XHC1 I lose keyboard wake, but I can close the lid to sleep and open it to wake which is just about workable for me.

Hope that helps

Revision history for this message
Nick Bartos (bartos) wrote :
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.