To list -- Ashwin
---------- Forwarded message ---------- From: Ashwin Bihari <abih...@gmail.com> Date: Fri, Feb 26, 2010 at 8:38 AM Subject: Re: [android-porting] Re: Power button functionality (sleep/resume/wakeup) To: w.sreeka...@gmail.com Sreekanth, Yes, the hardware supports it and the Kernel does as well. My question is more towards the Android side of things since I know Linux and the HW are fine. Regards -- Ashwin On Thu, Feb 25, 2010 at 10:34 PM, Srikant <w.sreeka...@gmail.com> wrote: > Are you sure that this functionality is supported by your Kernel and > Target hardware? > > Regards, > Sreekanth > > On Feb 24, 8:16 pm, Ashwin Bihari <abih...@gmail.com> wrote: >> I've got a custom board designed around the OMAP3530 and we have a >> power button the device that we want to use to cause Android to go to >> sleep or wakeup based on it's current state. >> >> I've done a few searches and have figured out the the function >> goToSleep within the PowerManager handles this functionality. For the >> power button handler, I'm sending the KEY_POWER eventcode into >> Android..this is mapped appropriately into Andriod as >> KeyEvent.KEYCODE_POWER. However, pressing the button doesn't cause >> anything to happen with Android..what am I missing in making my >> connections? >> >> Regards >> -- Ashwin > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting