Hi, Finally I found the answer of this question, and I write a post aboult the suspend and resume in android, url: http://www.thinksrc.com/2010/04/7/suspend-en.html hope this will help others.
thanks. --- Best regards, Zhang Jiejing 2010/4/6 ZhangJieJing <[email protected]> > Hi All: > > At android power manage service, it have early suspend and late resume > mechanism to control devices such as LCD backlight, touchscreen, when wake > lock free/expired or user request suspend, the kernel will call early > suspend workqueue, and execute the registered early suspend handler. when > the user(PowerManageService) request "on" (echo "on" > /sys/power/state) , > the late resume handlers will be called. > > My question is, > 1, when the PowerManagerService(PowerManagerSerivce.java) write "on" to > /sys/power/state (using SetScreenState(true) ), > 2, and how the services know the resume of system to write /sys/power/state > ? > > Thanks in advance, > > --- > Best regards, > Zhang Jiejing > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting To unsubscribe, reply using "remove me" as the subject.
