Comment 1 for bug 144305

Revision history for this message
Benjamin Herrenschmidt (benh-kernel) wrote : Re: [gutsy] sleep on powerbook crashes

Looks like I wasn't completely right above. I don't know yet whether userspace is using the ioctl or not, but it seems that calling the ioctl directly also fails when X is frontmost.

Among other things I've noticed:

 - the APM emulation module isn't loaded by default.
 - the kernel isn't switching to text console before suspend

The 2 above together means that X has no chance to quiesce the graphics engine and properly re-initialize it on wakeup, which probably explains some of the problems. I've manually loaded apm-emu and restart X, but that didn't fully fix the problem, so there is still something else going on. I'll try to investigate and let you know. In the meantime, apm-emu should definitely be added to the loaded-by-default list of modules at least on powerbooks.