Hacker News new | ask | show | jobs
by vespakoen 3694 days ago
My (6 year old) macbook pro got bricked and I was daring enough to get the new Macbook Pro retina (MacBookPro11,4).

Before installing Arch (assuming I needed the latest kernel for anything to work) I tried installing Xubuntu 16.04, and it amazes me how well it works! After installing refind everything just seemed to work out of the box.

The only things that aren't working is the webcam and suspend / hibernate, but I don't really care about those and suspend even seems fixable.

For anyone interested, I got the intel graphics drivers installer to run by changing DISTRIB_CODENAME to "wily" in /etc/lsb-release and changing it back to "xenial" after installation (make a backup: sudo cp /etc/lsb-release.backup /etc/lsb-release)

1 comments

I don't know if it's the same webcam in the newest Macbook, but the the reverse engineered driver works perfectly for me on a 2013 model: https://github.com/patjak/bcwc_pcie/wiki

Just follow the instructions exactly. If it doesn't work first time, try `sudo modprobe -r bdc_pci` and then retry `sudo modprobe facetimehd` and see if it creates `/dev/video0` (which means it's working)

For suspend, is it waking up after you close the lid? I fixed this with:

    sudo -i
    echo XHC1 > /proc/acpi/wakeup
Then give it a test. If it works, pop it into a startup service somewhere.
Webcam works now, thanks for that!

I added that script to echo XHC1 to wakeup here: /usr/lib/pm-utils/sleep.d/100macfix without any luck (made it executable)

I also removed light-locker (that was the cause wakeup problems on my old macbook pro (6,1), but no luck with that either.

I will play with it another time and report back here if I make progress.

Awesome that the webcam is working!

For suspend: did typing the commands manually work at all? (it should basically work until your next reboot)

I was assuming the issue is that when you close the lid, it sleeps for a few seconds, then wakes again. Is that what happens, or is it something else?

Typing the commands manually didn't work either, I also tried disabling LID0 (sudo sh -c 'echo LID0 > /proc/acpi/wakeup')

No luck with that too, I verified the command working with

    cat /proc/acpi/wakeup
It shows

    XHC1	  S3	*disabled   pci:0000:00:14.0
When I close the lid it suspends, when I open it again I just get a black screen (fans still on, no way to get to another tty)

I also tried suspending via the menu / power button: same results

Oh, right. That's a different issue. I've had my laptop do that a couple of times, closing the lid again and re-opening it has fixed it each time, so I never dug into it. I'll have a poke about and see if I can find anything.

Note: You want LID0 to be enabled, so that opening the lid wakes it up.

After a bit of poking around, this is perhaps a kernel bug that is fixed in 4.4.8

You could try upgrading your kernel if you're feeling adventurous. If that is the issue, it will probably be backported at some point though.

Cool, I'll wait it out as it isn't really an issue for me, thanks for helping out though, it's really appreciated!
Cool! will give those a try, lspci -v now gives me: http://hastebin.com/yosicucoku.xml

It seems to have loaded bdc_pci by default, will try your suggestions and report back.