suspend / sleep / resume fails on macbook in oneiric 11.10

Reported by Kristian Erik Hermansen on 2011-08-06
80
This bug affects 16 people
Affects Status Importance Assigned to Milestone
Mactel Support
Undecided
Unassigned
Ubuntu
Undecided
Unassigned

Bug Description

My macbook goes to sleep, but does not resume. This is a bug in oneiric. Using latest updates for the amd64 + mac release of oneiric.

checkbox-gtk tests also fail.

affects: ghostscript (Ubuntu) → ubuntu
description: updated
tags: added: 11.10 amd64 apple laptop mac macbook oneiric resume sleep suspend ubuntu wake
summary: - suspend / sleep / resume fails on macbook in oneiric
+ suspend / sleep / resume fails on macbook in oneiric 11.10

"""
$ sudo dmidecode -s system-product-name
MacBookPro5,4
$ lsb_release -dr
Description: Ubuntu oneiric (development branch)
Release: 11.10
$ uname -a
Linux ubuntu-macbook 3.0.0-7-generic #9-Ubuntu SMP Fri Jul 29 21:27:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
"""

Changed in ubuntu:
status: New → Confirmed
Sean Sosik-Hamor (sciri) wrote :

Up until this morning I had the same problem; my MacBook Air would suspend but couldn't resume. When attempting to resume the screen would turn on briefly to a black screen (backlight on) and then turn off again (backlight off) and freeze with no image on the screen.

Now, as of getting the latest updates and rebooting this evening, it won't even suspend. Closing the lid does nothing and selecting Suspend simply locks the screen.

sciri@Rico:~$ sudo dmidecode -s system-product-name
MacBookAir3,1

sciri@Rico:~$ lsb_release -dr
Description: Ubuntu oneiric (development branch)
Release: 11.10

sciri@Rico:~$ uname -a
Linux Rico 3.0.0-10-generic #16-Ubuntu SMP Fri Sep 2 18:32:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Slick (slick666) wrote :

Mine seems to work just fine

$ dmidecode -s system-product-name
MacBook1,1

greggory.hz (greggory-hz) wrote :

MacBookPro8,1

I haven't been able to suspend since upgrading to oneric. Does anyone with more knowledge of these things than me know what can be done to troubleshoot this? I'd love to help out with fixing this.

Daniel Graziotin (dgraziotin) wrote :

After applying this patch (https://bugs.launchpad.net/mactel-support/+bug/817017) for enabling suspend for users having SSD on their Macbooks, I am able to suspend but sometimes there are glitches on the screen. So I would say that I can quite suspend on my Macbook.

sudo dmidecode -s system-product-name
MacBookPro6,2

Daniel Graziotin (dgraziotin) wrote :

Today I switched to KDE (kubuntu-desktop) and I confirm that here suspend/resume works.

Macbook Pro 6,2
Ubuntu 11.10 beta 1 32bit (latest updates)

Sam Bull (dreamsorcerer) wrote :

Same problem on MacBookAir3,2

derp herp (junkmail-trash) wrote :

Me too... Suspend locks screen and I lose my trackpad until I reload the bcm5974 module

$ lsb_release -dr
Description: Ubuntu 11.10
Release: 11.10
$ uname -a
Linux paperweight 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dmidecode -s system-product-name
MacBookPro8,2

Changed in mactel-support:
status: New → Confirmed
Tomodachi (tomodachi) wrote :

same with Macbook Pro 5.1 on a 11.10
booted in efi mode
Linux xerxes 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

derp herp (junkmail-trash) wrote :

Interestingly enough, suspend works every time after the first failure if I re-insert the bcm5974 (touchpad) module manually...

pst007x (turone) wrote :

Macbook Pro 6.1

Ubuntu 11.10 MAC 64bit

Suspend - ok

Suspend Resume - ok

However, on resume in the loggin screen my touchpad works, but after I enter my password and return to the desktop the touchpad fails. A usb mouse still works fine.

I have to re-boot in order to re-enable toe touchpad.

This was not an issue when I had Ubuntu 10.10 32bit installed.

The install was a fresh install.

This really needs to be fixes a.s.a.p.

Any patches I can try?

pst007x (turone) wrote :

Macbook Pro 6.1

Ubuntu 11.10 MAC 64bit

Suspend - ok

Suspend Resume - ok

However, on resume in the loggin screen my touchpad works, but after I enter my password and return to the desktop the touchpad fails. A usb mouse still works fine.

I have to re-boot in order to re-enable toe touchpad.

This was not an issue when I had Ubuntu 10.10 32bit installed.

The install was a fresh install.

This really needs to be fixes a.s.a.p.

The bcm5974 driver will not install, says codependency errors. I manually try to install all dependencies and I get this error:

E: hid-dkms: subprocess installed post-installation script returned error exit status 10
E: bcm5974-dkms: dependency problems - leaving unconfigured

Any patches I can try?

pst007x (turone) wrote :

Additional: Touchpad freezing on resume

I removed:
Xf86-input-multitouch
bcm5974-dkms
hid-apple-dkms.

On resume from suspend my touchpad never froze. Will continue testing. must be a bug in the driver.

Ben Witte (bjwitte) wrote :

My macbook 4,1 works in all areas except when the screen shuts off or goes to sleep.

At first I thought I couldn't wake it up so I tried closing the lid and sending it into suspend and then waking it up, which works fine.

Then I found out the computer was awake all along just the brightness was all the way down. But this means every time the screen falls asleep I have to hit the brightness key 20 times to resume work at full brightness.

Tomodachi (tomodachi) wrote :

Macbook Pro 5.1
booted in efi mode

my problems is actually gone now. I believe I solved it by making sure the discrete nvidia 9600GT card gets disabled on resume (it apparently wakes up even if disabled in grub, and seems to prevent the display from resuming)

now my screen is fine after resume!
maybe this helps some other efi booting pro user

Laurent (laurent-savaete) wrote :

Mine doesn't go to sleep, either closing the lid or clicking the menu "suspend" don't actually sleep, but only lock the screen.

Macbook3,1
Linux ******* 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu oneiric upgraded from natty using update manager

Beejunk (beejunk) wrote :

Macbook 1,1

Had this problem after upgrading to Oneiric using the Update Manager. The problem disappeared after reinstalling from disk. Perhaps this problem only affects computers that have upgraded to 11.10 via Update Manager?

Mark East (feasty) wrote :

This affects fresh installs too. If I suspend or hibername my macbook air (version 3 1.4ghz core 2 duo) then it does not wake the screen and mine is from a clean install, of which I have done several on this machine since the beta. It appears that the system wakes though as I heard a sound from mine earlier when I tried it again. It just appears to be the screen not waking.

josephzizys (joseph-zizys) wrote :

I have this problem also; closing the lid, or selecting suspend from the menu suspends the machine, but lifting the lid leaves the screen blank, the keyboard is responsive (capslock will toggle the light) so I am supposing it is just the screen, any news on a workaround? Will switching to Nvidia drivers fix things? update xorg.conf?

joseph@josephsair:/$ lsb_release -dr
Description: Ubuntu 11.10
Release: 11.10
joseph@josephsair:/$ sudo dmidecode -s system-product-name
MacBookAir3,1
joseph@josephsair:/$ uname -a
Linux josephsair 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 i686 i386 GNU/Linux
joseph@josephsair:/$

It's possible that your computer boots at AHCI mode and after suspend goes to IDE mode. The computer freezes because cannot find the root filesystem. Are you using "setpci" to force AHCI mode?

Sam Bull (dreamsorcerer) wrote :

How do you do this? Do you mean adding 'setpci' to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub? If so, I just tried that, and it didn't help. Or, did you mean something else?

A lot of people edit /boot/grub/grub.cfg directly, you have to add it right before the "set root". In my case I followed the instructions of the Gentoo MBP wiki (http://en.gentoo-wiki.com/wiki/Apple_Macbook_Pro)
WARNING: if you follow this method, you won't be able to resume after suspend. I have a MBP 8,1 as well and I can suspend fine (have to unload "b43" module first). I finally was able to use AHCI mode after suspend by booting from grub-efi (You might want to check this bug: https://bugs.launchpad.net/mactel-support/+bug/817017)

Short instructions:

- lspci -vnn|grep SATA

- Take down the number of your IDE/SATA controller (something like 8086:3b28)

- Create "01_mbp_ahci" in "/etc/grub.d/" (The mbp_ahci part can be changed, but 01 is important)

- Paste this in the file:
#!/bin/sh -e
echo "setpci -d XXXX:XXXX 90.b=60"
(where XXXX:XXXX is the number you took down previously)

- Make it executable (the wiki does not mention it, but I'm pretty sure it's necessary)
sudo chmod u+x /etc/grub.d/01_mbp_ahci

- Run update-grub

Oh, sorry, I just re-read what you have done and yes, this is known to cause the problem.

I've followed http://www.rodsbooks.com/ubuntu-efi/index.html and http://mennucc1.debian.net/macbook_linux_efi.html . Now I can suspend and get AHCI mode back after suspend.

The only quirk is that you need to modify the update-grub script to update the right file.

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

Other bug subscribers