Want to use SUSPEND_TO_STANDBY instead of SUSPEND_TO_MEM

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to use SUSPEND_TO_STANDBY instead of SUSPEND_TO_MEM

207 Views
michaelrobbelot
Contributor IV

Anyone,

I have attempted several different methods for getting imx.6 solo based device running Android ICS to enter STANDBY but not MEM without success. I was wondering what others here believe would be the best mechanism for accomplishing this goal. I tried overriding the state in kernel/power/earlysuspend.c request_suspend_state(), but this only works if the USB OTG port is connected (otherwise the board locks up). I have also tried overriding the state in arch/arm/mach-mx6/pm.c, but this locks the board on boot. Thank you.

The device I'm using is on AC and does not have a battery.

Michael Robbeloth

Labels (1)
0 Kudos
1 Reply

39 Views
AnsonHuang
NXP Employee
NXP Employee

Hi, Mike

     What do you mean by standby mode not successful? Did you have the log? We support both standby mode and mem mode in our linux BSP, unless Android mask the standby mode support. So it would be helpful if you can paste he failed log. BTW, better to add "no_console_suspend" in the uboot commandline to print out whole log message during suspend/resume. Then just "echo standby > /sys/power/state", remember to remove all the wake_lock stuff in Android.

0 Kudos