Messages in this thread |  | | Date | Sat, 22 Mar 2008 16:17:14 +0100 | From | Pavel Machek <> | Subject | Re: Proper way to invoke suspend? |
| |
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
|  |