sleep on powerbook crashes
Bug #144305 reported by
Benjamin Herrenschmidt
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Colin Ian King |
Bug Description
On gutsy, trying to put the powerbook to sleep (by closing the lid for example) causes the machine to crash with a PMU shutdown, which also has the side effect of losing the content of the real time clock. Very annoying. It works with Edgy.
I've verified that the kernel sleep stuff is working properly by sending the appropriate ioctl to /dev/pmu. So it's something being done by userland. One possibility that I have to investigate is that maybe userspace is using the /sys/power/state file which doesn't work properly on powerbooks, instead of the custom ioctl.
Changed in linux (Ubuntu): | |
status: | Incomplete → In Progress |
To post a comment you must log in.
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.