If you want to go into sleep mode you should single-press the power key, not long-pressong it.
For Power Off, can you check `dmesg` that whether there is a line 'System halted'? If yes you may need to check the power off sequence in kernel. If you 'Power Off'ed, your device is supposed to turn off. If it is power off'ed correctly, the CPU should have some ways to get it on again, e.g. a real power key. On 2012-3-14 下午2:10, "venkat k raju" <[email protected]> wrote: > Hi all, > > i have mapped KEY_POWER flag to on of my 4x4 keypad button,when i pressed > it power off android pop-up is coming with an option of power-off. if i > choose power-off option then my lcd is going sleep mode. > can any body suggest me how wake-up again to normal mode. > > i tried with command mode like this > > #echo "1" > /sys/devices/platform/omapdss/display0/enabled > > then i am able to resume lcd, but that power-off pop-up window still > there...with busy symbol. > > thanks in advance > > On Mon, Mar 12, 2012 at 5:54 PM, venkat k raju <[email protected]>wrote: > >> Hi Alvin Wong, >> i am sorry i didn't get you .what your saying? >> >> >> >> On Sat, Mar 10, 2012 at 10:38 PM, Alvin Wong <[email protected]>wrote: >> >>> Isn't that you would need to set the key as a standard Linux wake >>> source? >>> >>> On 3月10日, 上午10時21分, venkat k raju <[email protected]> wrote: >>> > Hi ESL_Phani RajKiran, >>> >>> > >>> > i want to integrate power on/off key to my keyboard button. >>> > here what i did in driver part is i had included KEY_POWER key in >>> keymap >>> > structure. then i tested and result was lcd and all going sleep mode . >>> but >>> > how to resume again normal state, for this which key i have to use. >>> > >>> > can you suggest me. >>> > >>> > thanks&Regards >>> > k.v.raju >>> >>> -- >>> unsubscribe: [email protected] >>> website: http://groups.google.com/group/android-porting >>> >> >> >> >> -- >> thanks&Regards >> k.v.raju >> > > > > -- > thanks&Regards > k.v.raju > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
