Power button policy and mechanism

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: dmitry <dtor@...>
Cc: linux-input <linux-input@...>, linux-main <linux-kernel@...>
Date: Tuesday, October 16, 2007 - 4:40 pm

Greetings Dmitry,

Is the suggested approach on handling powerbutton (in keyboard driver) to simply push out the event and let userland handle it? 
The reason Im asking this is because as you might know Im maintainer for two mini-laptop style pda's (HP7xx & HP6xx)
and it would simplify my life alot if I didn't need to depend on userland applications to be able to suspend/resume.

For instance HP6XX receives an interrupt call whenever the powerbutton is pressed. Now I could just push out the event and let another program handle it but considering it would take a minimum amount of lines to let it simply suspend/resume I feel its a waste.

Previously the hp6xx has been allowed to do this "policy" way but that was when LinuxSH stod as a side branch to main tree. Now
when everything gets merged into mainline I need to decide how to do this.

This is mainly an embedded issue, but I feel it's quite important. It should apply to other devices also like for example Zaurus branches (those with keyboard and designated power button).

So in short:
1. Does mainline policy allow static power button events inside kernel (power button == suspend/resume)?
	Why/Why Not?
2. Seeing as my knowledge about this area isn't the best I would appreciate all opinions on the subject from the gurus.

Best wishes
Kristoffer Ericson

-- 
Kristoffer Ericson <Kristoffer.Ericson@Gmail.com>
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Power button policy and mechanism, Kristoffer Ericson, (Tue Oct 16, 4:40 pm)
Re: Power button policy and mechanism, Dmitry Torokhov, (Tue Oct 16, 10:34 am)
Re: Power button policy and mechanism, Richard Purdie, (Fri Oct 19, 5:54 am)
Re: Power button policy and mechanism, Kristoffer Ericson, (Sat Oct 20, 5:42 pm)
Re: Power button policy and mechanism, Dmitry Torokhov, (Fri Oct 19, 11:04 am)