wakeup wakelock issues

205 views
Skip to first unread message

Sriram V

unread,
Nov 21, 2009, 11:37:34 AM11/21/09
to android...@googlegroups.com, linu...@lists.linux-foundation.org
Hi,
  I am trying to test pm on a custom board with android.

  Whats happening:
   1) Android is putting the system to sleep - calling system wide suspend
   2) During suspend, kernel resume immediately - I get "wakeup wake lock: omap-8250-serial". and again puts it back to suspend.
  
3) This keeps happening, There is no serial activity except for printing the messages (transmission from the board) - No serial inputs from the host pc.
   4) Is there any way to disable this?
  

Regards,
sriram



# PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
Powerdomain (iva2_pwrdm) didn't enter target state 1
Powerdomain (core_pwrdm) didn't enter target state 1
Could not enter target state in pm_suspend
wakeup wake lock: omap-8250-serial
usb 1-2: reset high speed USB device using ehci-omap and address 2
Restarting tasks ... <7>hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000
done.
suspend: exit suspend, ret = 0 (2000-01-01 03:42:06.047454761 UTC)
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
Powerdomain (iva2_pwrdm) didn't enter target state 1
Powerdomain (core_pwrdm) didn't enter target state 1
Could not enter target state in pm_suspend
wakeup wake lock: omap-8250-serial
usb 1-2: reset high speed USB device using ehci-omap and address 2
Restarting tasks ... <7>hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000
done.
suspend: exit suspend, ret = 0 (2000-01-01 03:42:16.157318042 UTC)
PM: Syncing filesystems ... done.

abhishek srivastav

unread,
Nov 21, 2009, 11:53:21 AM11/21/09
to android...@googlegroups.com
Hey ,

You can solve this by two approaches

- First, you can disable/change this sleep time for settings.

-Second,
I guess you are booting your android from MMC card, and once it goes to sleep mode it may not be able to remount the MMC card while waking up. I faced a similar issue when I ported Android on OMAP3530. All I did was, modified the power.c in case of 2.6.27 Kernel. Please try similar stuffs in your Kernel, I guess you should be able to solve this. ATB

Regards,
Abhishek 

Aneesh Bhasin

unread,
Nov 22, 2009, 11:52:28 PM11/22/09
to android...@googlegroups.com
Hi Sriram,


On Sat, Nov 21, 2009 at 10:07 PM, Sriram V <vshr...@gmail.com> wrote:
>
> Hi,
>   I am trying to test pm on a custom board with android.

What android version are you usnig ?

>
>   Whats happening:
>    1) Android is putting the system to sleep - calling system wide suspend
>    2) During suspend, kernel resume immediately - I get "wakeup wake lock: omap-8250-serial". and again puts it back to suspend.
>    3) This keeps happening, There is no serial activity except for printing the messages (transmission from the board) - No serial inputs from the host pc.
>    4) Is there any way to disable this?

We encountered a similar problem while booting android on one of our
board. One way is to acquire a partial wake lock (or just a wakelock
in the newer versions of android) as soon as you boot up the board.
In older android version, the way was :
echo wakelock1 > /sys/android_power/acquire_partial_wake_lock
or on newer versions :
echo wakelock1 > /sys/power/wake_lock
Please check the path as I do not have access to the board right now.

Acquiring the wake lock will prevent your system from going into
sleep. However, this is a temporary solution as you still need to
figure out why is your device not able to go to sleep.

Hope that helps...

Regards,
Aneesh

Aneesh Bhasin

unread,
Nov 22, 2009, 11:54:25 PM11/22/09
to android...@googlegroups.com, linu...@lists.linux-foundation.org
Hi Sriram

<reposting - forgot to add linux-pm to senders' list>

On Sat, Nov 21, 2009 at 10:07 PM, Sriram V <vshr...@gmail.com> wrote:
> Hi,
>   I am trying to test pm on a custom board with android.

What android version are you usnig ?


>   Whats happening:
>    1) Android is putting the system to sleep - calling system wide suspend
>    2) During suspend, kernel resume immediately - I get "wakeup wake lock:
> omap-8250-serial". and again puts it back to suspend.
>    3) This keeps happening, There is no serial activity except for printing
> the messages (transmission from the board) - No serial inputs from the host
> pc.
>    4) Is there any way to disable this?
>

Reply all
Reply to author
Forward
0 new messages