On Saturday, July 30, 2011, Rafael J. Wysocki wrote: > On Saturday, July 30, 2011, Pavel Machek wrote: > > Hi! > > > > > > Well, auto suspending when screensaver is active would still be > > > > useful. > > > > > > > > (And IIRC some machines kept screen on when in S-state unless driver > > > > powered it down... but that might be S1. > > > > > > > > > The reason why you can't enter ACPI S-states from CPUidle is because you > > > > > need to go out of the idle loop to execute some ACPI-specific stuff. Which > > > > > is not even specific to Intel chips, but to ACPI in general. > > > > > > > > The code was little tricky/unclean, but it "worked" for me at one > > > > point... I called it "sleepy linux". > > > > > > Yes, you can find a system where it might kind of work (just because > > > _PTS is empty or something like this). Is it going to work in general? > > > No way. > > > > IIRC I solved it by just calling _PTS when sleepy Linux was > > enabled. It had side effect of lighting up moon icon, but otherwise > > seemed to work ok. > > > > I do not think ACPI says what can and can not be done after _PTS... > > Yes, it does. And even if _PTS will work, you're certainly not supposed to execute _WAK with interrupts off. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html