suspend fails on powerpc > 2.6.38-1 in IOCTL PMU_IOC_SLEEP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-image-powerpc
On PowerPC, G4 tibook, suspend worked fine for kernels 2.6.38-1 and earlier.
In kernel 2.6.38-8 and later (the kernels in between did not boot on PPC), suspend fails. This appears to be because the recent kernels do not suspend when the PMU_IOC_SLEEP is issued. This is quite easily demonstrated:
1. Create the following file (pmus.pl), lifted directly from /usr/lib/
#!/usr/bin/perl
sub PMU_IOC_SLEEP { 0x20004200; }
open PMU, "/dev/pmu" or die "open /dev/pmu: $!";
ioctl PMU, &PMU_IOC_SLEEP, 0;
On 2.6.38-1, running the perl script causes the system to suspend.
On 2.6.38-8 and later (including the current 11.10 kernel), the script executes, but the system does not suspend.
affects: | linux-meta (Ubuntu) → linux (Ubuntu) |
Forgot to mention that this is on a standard 11.04 (natty) install --- the 11.10 kernel was added to see if that helped, which it does not.
The numeric value for the PMU_IOC_SLEEP ioctl validates against the installed kernel headers.
-jh