Hi All,
I am running Android 4.1.2 on AM335x, issuing a sleep command with echo mem > /sys/power/state.
I attempt to wake from standby with GPIO button - I see on the console that the system starts to wake up, but then falls back to sleep every time.
I found that I can successfully resume the system if I hold the touch screen while I press the button. Could the issue be that the system isn't grabbing a wakelock in time? Has anyone experienced something like this?
Many Thanks! Here is a console log of a resume attempt:
[ 270.197113] GFX domain entered low power state
[ 270.202056] Successfully transitioned all domains to low power state
[ 270.417388] PM: early resume of devices complete after 208.059 msecs
[ 270.487915] android_work: sent uevent USB_STATE=DISCONNECTED
[ 270.557525] android_work: sent uevent USB_STATE=CONNECTED
[ 270.563385] android_work: sent uevent USB_STATE=DISCONNECTED
[ 270.649291] android_work: sent uevent USB_STATE=CONNECTED
[ 270.656066] gadget: high-speed config #1: android
[ 270.661285] android_work: sent uevent USB_STATE=CONFIGURED
[ 270.699035] wakeup wake lock: event0-272
[ 270.705413] wl12xx: state: 0
[ 271.165985] wl12xx: firmware booted (Rev 6.3.10.0.132)
[ 271.183807] wl12xx: state: 2
[ 271.187347] wl12xx: adding p2p mgmt vif
[ 271.219116] PM: resume of devices complete after 794.273 msecs
[ 271.236389] Restarting tasks ...
[ 271.256835] adb_release
[ 271.302825] adb_open
[ 271.327972] done.
[ 271.393768] suspend: exit suspend, ret = 0 (2000-01-01 00:04:28.690028522 UTC)
[ 271.417449] active wake lock PowerManagerService
[ 271.422302] active wake lock rx_wake, time left 95
-- Starts to fall asleep here again?
[ 272.634765] PM: Syncing filesystems ... done.
[ 272.720733] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 272.740386] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[ 272.788787] wl12xx: down
[ 272.792205] wl12xx: down
[ 272.809478] PM: suspend of devices complete after 22.032 msecs
[ 272.824249] PM: late suspend of devices complete after 1.434 msecs