Ubuntu – Macbook screen turns back on after suspend

16.04macbookscreensuspend

I decided to switch to Ubuntu from mac os and it mostly works fine, but one problem appeared:

When I press 'Suspend' or close the lid of my macbook, the screen turns black (like it should) and after around 3-5 seconds the screen turns on again with the login screen.

I'm sorry if anyone already asked this question, but I didn't find a similar problem with a google search.

Edit: Model Number is A 1502 EMC 2835

Best Answer

You are effected by this bug which appears to effect kernels 4.2 - 4.4 I suggest that you subscribe to the bug so that you can be notified of progress and the developers have a better idea of the impact it's having. As touched on by this answer by user 1783630 According to the author of the bug a functional workaround is to Disable XHC1 prior to sleeping by issuing the command

echo XHC1 > /proc/acpi/wakeup

However, the current content of /proc/acpi/wakeup in my 16.04 system is a bit more complex than that consisting of 4 columns of info covering Device, S-state, status, and sysfs node so I'm not convinced this is the way to go with Ubuntu. The bug has already been confirmed and triaged so hopefully this will be resolved with a newer kernel.

Edit: This related question also has some good answers that you may be able to modify to fit your circumstances

Source:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1507472

Related Question