[lkml]   [2008]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Proper way to invoke suspend?

> 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...

(cesky, pictures)

 \ /
  Last update: 2008-03-22 16:19    [W:0.069 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site