← Back to team overview

kernel-packages team mailing list archive

[Bug 1483054] Re: macbook air wakes up immediately after suspend

 

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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
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: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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1483054/+subscriptions


References