Sorry if this has been mentioned already, I have attempted a few searches.
I'm running Trusty on my MacBook Air Mid 2011 (4,1) and roughly 1 in 5 times that I put it to sleep, it won't wake up again. If I then force a power off (holding the power button) and start it back up, it offers to send a crash report regarding a suspend/resume KernelOops error.
I have tried the latest Trusty mainline kernel (3.15rc2), no difference
However without X running (sudo service lightdm stop, log in from the text console) if I sleep it from there, which of course requires a command:
It's fine. I have done countless suspend/resume cycles with no problems in text mode, although once or twice it could only be woken up from a tap of the power button, while the rest of the time any key will wake it. I'm not sure if it's related at all.
echo "mem" | tee /sys/power/state
My instincts point me towards i915 / the xorg intel driver. Just wondering if there's anything else I can try. I have tried changing the AccelMode to UXA instead of SNA (as one would try in Arch https://wiki.archlinux.org/index.php/Intel_Graphics) but that didn't help either.
Edit: to be exact it hangs on sleep, not on resume. The keyboard stays lit.
Edit 2: also tried setting NoAccel on the intel driver, and i915.semaphores=1 as a boot parameter.
Edit 3: tried this kernel here: http://kernel.ubuntu.com/~kernel-ppa...-05-07-utopic/ - interestingly, this one freezes with the screen on and showing the last frame before it froze. But still freezes.
Edit 4: tried the latest graphics stack here https://launchpad.net/~xorg-edgers/+archive/ppa
I'm completely out of ideas Frustrating... I have Ubuntu set up 99% perfectly, if not for this massive showstopper that will probably end in me going back to OS X