Re: Proper way to invoke suspend?

From: Pavel Machek
Date: Sat Mar 22 2008 - 11:17:25 EST


Hi!

> Been looking around for examples, but obviously something I don't understand.
> Currently I set apm_queue_event(APM_USER_SUSPEND) inside the power button interrupt, this does nothing.
>
> However if I cat the state, it goes into suspend. Resume fails but thats another question.

I'd prefer not using apm_queue_event in new code... There are some
routines in kernel/power/main.c you should be calling...

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/