macbookrpro12,1 fails to suspend

Bug #1487919 reported by Joe Barnett
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I've installed wily on a new macbookpro12,1 (2015 model), and suspending the system results in the screen going black and the apple light turning off, but the system is not fully asleep -- the 'force touch' pad still makes clicking feedback, and the machine continues to generate heat and spin fans if put into a bag. Once in this state, the machine cannot be woken up from the state its in either.

did a "journalctl -f | tee sleep.log' while this was happening and got the following output -- let me know if there is a better way to figure out where things are going wrong:

Aug 23 15:13:21 spiny NetworkManager[820]: <info> sleep requested (sleeping: no enabled: yes)
Aug 23 15:13:21 spiny NetworkManager[820]: <info> sleeping...
Aug 23 15:13:21 spiny NetworkManager[820]: <info> (wlp3s0): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Aug 23 15:13:21 spiny NetworkManager[820]: <info> (wlp3s0): deactivating device (reason 'sleeping') [37]
Aug 23 15:13:21 spiny NetworkManager[820]: <info> (wlp3s0): canceled DHCP transaction, DHCP client pid 925
Aug 23 15:13:21 spiny avahi-daemon[826]: Withdrawing address record for 2601:1c0:4d00:39e6:f912:fbb6:aaa6:4429 on wlp3s0.
Aug 23 15:13:21 spiny avahi-daemon[826]: Withdrawing address record for 2601:1c0:4d00:39e6:290:4cff:fe0d:f43e on wlp3s0.
Aug 23 15:13:21 spiny avahi-daemon[826]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address 2601:1c0:4d00:39e6:290:4cff:fe0d:f43e.
Aug 23 15:13:21 spiny avahi-daemon[826]: Joining mDNS multicast group on interface wlp3s0.IPv6 with address fe80::290:4cff:fe0d:f43e.
Aug 23 15:13:21 spiny avahi-daemon[826]: Registering new address record for fe80::290:4cff:fe0d:f43e on wlp3s0.*.
Aug 23 15:13:21 spiny avahi-daemon[826]: Withdrawing address record for fe80::290:4cff:fe0d:f43e on wlp3s0.
Aug 23 15:13:21 spiny avahi-daemon[826]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::290:4cff:fe0d:f43e.
Aug 23 15:13:21 spiny avahi-daemon[826]: Interface wlp3s0.IPv6 no longer relevant for mDNS.
Aug 23 15:13:21 spiny wpa_supplicant[891]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=10:c3:7b:c5:83:d8 reason=3 locally_generated=1
Aug 23 15:13:21 spiny wpa_supplicant[891]: nl80211: Was expecting local disconnect but got another disconnect event first
Aug 23 15:13:21 spiny avahi-daemon[826]: Withdrawing address record for 192.168.1.83 on wlp3s0.
Aug 23 15:13:21 spiny avahi-daemon[826]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.83.
Aug 23 15:13:21 spiny avahi-daemon[826]: Interface wlp3s0.IPv4 no longer relevant for mDNS.
Aug 23 15:13:21 spiny kernel: cfg80211: Calling CRDA to update world regulatory domain
Aug 23 15:13:21 spiny NetworkManager[820]: <info> Writing DNS information to /sbin/resolvconf
Aug 23 15:13:21 spiny dnsmasq[928]: setting upstream servers from DBus
Aug 23 15:13:21 spiny dnsmasq[928]: using nameserver 2601:1c0:4d00:39e6::1#53
Aug 23 15:13:21 spiny dbus[806]: [system] Rejected send message, 10 matched rules; type="method_return", sender=":1.22" (uid=0 pid=928 comm="/usr/sbin/dnsmasq --no-resolv --keep-in-foreground") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6" (uid=0 pid=820 comm="/usr/sbin/NetworkManager --no-daemon ")
Aug 23 15:13:21 spiny wpa_supplicant[891]: p2p-dev-wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Aug 23 15:13:21 spiny NetworkManager[820]: <info> Writing DNS information to /sbin/resolvconf
Aug 23 15:13:21 spiny kernel: brcmf_cfg80211_reg_notifier: not a ISO3166 code
Aug 23 15:13:21 spiny kernel: cfg80211: World regulatory domain updated:
Aug 23 15:13:21 spiny kernel: cfg80211: DFS Master region: unset
Aug 23 15:13:21 spiny kernel: cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Aug 23 15:13:21 spiny kernel: cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Aug 23 15:13:21 spiny kernel: cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Aug 23 15:13:21 spiny kernel: cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Aug 23 15:13:21 spiny kernel: cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Aug 23 15:13:21 spiny kernel: cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Aug 23 15:13:21 spiny kernel: cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Aug 23 15:13:21 spiny kernel: cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Aug 23 15:13:21 spiny kernel: cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Aug 23 15:13:21 spiny dnsmasq[928]: setting upstream servers from DBus
Aug 23 15:13:21 spiny dbus[806]: [system] Rejected send message, 10 matched rules; type="method_return", sender=":1.22" (uid=0 pid=928 comm="/usr/sbin/dnsmasq --no-resolv --keep-in-foreground") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6" (uid=0 pid=820 comm="/usr/sbin/NetworkManager --no-daemon ")
Aug 23 15:13:21 spiny NetworkManager[820]: <info> NetworkManager state is now ASLEEP
Aug 23 15:13:21 spiny kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
Aug 23 15:13:21 spiny dbus[806]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Aug 23 15:13:21 spiny kernel: show_signal_msg: 36 callbacks suppressed
Aug 23 15:13:21 spiny kernel: wpa_supplicant[891]: segfault at 0 ip 00007fd14527bcba sp 00007ffc8c8dee68 error 4 in libc-2.21.so[7fd1451dc000+1c0000]
Aug 23 15:13:21 spiny systemd[1]: Starting Network Manager Script Dispatcher Service...
Aug 23 15:13:21 spiny dbus[806]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Aug 23 15:13:21 spiny systemd[1]: Started Network Manager Script Dispatcher Service.
Aug 23 15:13:21 spiny nm-dispatcher[4605]: Dispatching action 'down' for wlp3s0
Aug 23 15:13:21 spiny NetworkManager[820]: <info> wpa_supplicant stopped
Aug 23 15:13:21 spiny systemd[1]: wpa_supplicant.service: Main process exited, code=dumped, status=11/SEGV
Aug 23 15:13:21 spiny systemd[1]: wpa_supplicant.service: Unit entered failed state.
Aug 23 15:13:21 spiny systemd[1]: wpa_supplicant.service: Failed with result 'core-dump'.
Aug 23 15:13:26 spiny whoopsie[825]: [15:13:26] Cannot reach: https://daisy.ubuntu.com
Aug 23 15:13:26 spiny whoopsie[825]: [15:13:26] offline
Aug 23 15:13:26 spiny whoopsie[825]: [15:13:26] Cannot reach: https://daisy.ubuntu.com
Aug 23 15:13:26 spiny systemd-logind[796]: Delay lock is active (UID 121/gdm, PID 1205/gnome-shell) but inhibitor timeout is reached.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: linux-image-4.1.0-3-generic 4.1.0-3.3 [modified: boot/vmlinuz-4.1.0-3-generic]
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
Uname: Linux 4.1.0-3-generic x86_64
ApportVersion: 2.18-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jbarnett 1544 F.... pulseaudio
 /dev/snd/controlC1: jbarnett 1544 F.... pulseaudio
CurrentDesktop: GNOME
Date: Sun Aug 23 15:16:10 2015
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=dd225ec0-47f4-49d8-a51c-a2547f8eb945
InstallationDate: Installed on 2015-08-21 (2 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Alpha amd64 (20150819)
MachineType: Apple Inc. MacBookPro11,4
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.1.0-3-generic.efi.signed root=/dev/mapper/ubuntu--gnome--vg-root ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.1.0-3-generic N/A
 linux-backports-modules-4.1.0-3-generic N/A
 linux-firmware 1.146
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
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: MBP114.88Z.0172.B04.1506051511
dmi.board.name: Mac-06F11FD93F0323C5
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro11,4
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-06F11FD93F0323C5
dmi.modalias: dmi:bvnAppleInc.:bvrMBP114.88Z.0172.B04.1506051511:bd06/05/2015:svnAppleInc.:pnMacBookPro11,4:pvr1.0:rvnAppleInc.:rnMac-06F11FD93F0323C5:rvrMacBookPro11,4:cvnAppleInc.:ct9:cvrMac-06F11FD93F0323C5:
dmi.product.name: MacBookPro11,4
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Joe Barnett (thejoe) 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
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

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-rc8-unstable/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Joe Barnett (thejoe) wrote :

Confirmed still happens on the upstream kernel. In addition, a "shutdown" doesn't power down the machine -- the screen blacks, but the apple light stays on and need to force power off by holding down the power button for 5-10 seconds.

tags: added: kernel-bug-exists-upstream
Revision history for this message
Joe Barnett (thejoe) wrote :
penalvch (penalvch)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: latest-bios
Revision history for this message
Joe Barnett (thejoe) wrote :

looks like http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-rc1-unstable/ failed to build and/or is missing .debs to install?

Revision history for this message
penalvch (penalvch) wrote :

Joe Barnett, how about 4.2 (not 4.2-rcx)?

Revision history for this message
Joe Barnett (thejoe) wrote :

yes still happens with 4.2

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Joe Barnett, could you please provide the missing information following https://wiki.ubuntu.com/DebuggingKernelSuspend ?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Michael Gratton (mjog) wrote :

On my MacbookPro12,1 with Wily and Linux 4.2, by default the kernel successfully suspends but then immediately resumes again. The problem seems to be the XHCI controller causing spurious ACPI wakeups. After disabling it using the following command:

> # echo XHC1 > /proc/acpi/wakeup

The kernel remains suspended after entering sleep. (Via https://wiki.archlinux.org/index.php/MacBook#Suspend_and_Hibernate)

Also, the Broadcom wifi module seems to have problems with suspend/resume, so I am also unloading the `brcmfmac` module prior to suspend and loading it again after resume.

Revision history for this message
penalvch (penalvch) wrote :

Michael Gratton, it will help immensely if you filed a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Revision history for this message
Michael Gratton (mjog) wrote :

@penalvch: As requested, I just reported bug #1507472 then.

Revision history for this message
Joe Barnett (thejoe) wrote :
Revision history for this message
Joe Barnett (thejoe) wrote :
Revision history for this message
Joe Barnett (thejoe) wrote :

[ 2.086936] evm: HMAC attrs: 0x1
[ 2.087564] Magic number: 0:832:178
[ 2.087566] hash matches /build/linux-AxjFAn/linux-4.2.0/drivers/base/power/main.c:1065
[ 2.087618] acpi device:0e: hash matches
[ 2.087634] platform: hash matches

^--- the part of dmesg referenced in https://wiki.ubuntu.com/DebuggingKernelSuspend

i had rmmod'ed brcmfmac, then suspended via
sudo sh -c "sync && echo 1 > /sys/power/pm_trace && pm-suspend"

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Joe Barnett, to advise, doing this on a kernel that isn't the latest mainline kernel (as requested in the debugging article) isn't terribly helpful.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Joe Barnett (thejoe) wrote :

same thing on latest mainline kernel, hope this is helpful.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Joe Barnett, after you restart from a failed suspend attempt, are their crash files in /var/crash?

tags: added: kernel-bug-exists-upstream-4.3-rc6
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Joe Barnett (thejoe) wrote :

there are not

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Joe Barnett, given the wpa.supplicant core dump, I was suspecting a systemd issue, where the quirk for this wasn't in place. Martin Pitt is the go to dev for systemd in Ubuntu, so I've subscribed him to get his opinion this.

Revision history for this message
Martin Pitt (pitti) wrote :

The difference under systemd is indeed mostly that the pm-utils suspend quirks are not being run any more, like /usr/lib/pm-utils/sleep.d/60_wpa_supplicant . Does it help if you run

  sudo wpa_cli suspend

then suspend, resume, and run

  sudo wpa_cli resume

? If so, then we need to teach the wpasupplicant package to do that. This part is most likely a duplicate of bug 1422143 then.

However (1) wpasupplicant certainly shouldn't segfault, and (2) things like touchpad still being active during suspend is a kernel issue, so this report is still legit (but should be kept for those issues, and the wpasupplicant one should become separate).

Revision history for this message
Joe Barnett (thejoe) wrote :

sudo wpa_cli suspend before suspend still leaves me unable to resume.

Revision history for this message
Daniele Cruciani (daniele-smartango) wrote :

I upgraded to 15.10, I can not suspend anymore (laptop freeze). These are the relative log:
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.315877] wlan0: deauthenticating from 00:0f:b5:57:61:64 by local choice (Reason: 3=DEAUTH_LEAVING)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328304] cfg80211: World regulatory domain updated:
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328306] cfg80211: DFS Master region: unset
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328307] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328309] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328310] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328311] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328312] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328314] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328315] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328316] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Nov 10 18:35:42 daniele-SATELLITE-L50-B kernel: [13664.328317] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

Then it freeze and my only option is to cold switch-off.
it is a toshiba satellite, but it look like to be wifi related this.

I will try the suggested
sudo wpa_cli suspend

now.
see you tomorrow

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.