iMX6.Q7A-551Board USB remote Desktop Wakeup from MEM power state

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6.Q7A-551Board USB remote Desktop Wakeup from MEM power state

Jump to solution
1,303 Views
mauriciorodrigu
Contributor II

Hi everyone. We are trying to wake up Android running on Q7A-551 with MX 6DualLite.

When Android is in "suspended mode" usb keyboard can wakeup android with a single keystroke.

But if Android goes in to deep sleep, "MEM mode" it does not react to keystrokes on the keyboard.

[egalax_i2c]:  egalax_i2c_early_suspend                                        

[egalax_i2c]:  Enter early_suspend state:1                                     

[egalax_i2c]:  Early_suspend done!!                                            

PM: Syncing filesystems ... done.                                              

PM: Preparing system for mem sleep                                             

suspend: start 1 suspend...                                                    

suspend: finish 1 suspend after:0.2598000 seconds...                           

Freezing user space processes ... (elapsed 0.01 seconds) done.                 

Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.            

PM: Entering mem sleep                                                        

mos7840 ttyUSB5: Moschip 7840/7820 USB Serial Driver converter now disconnected

from ttyUSB5                                                                  

option: option_instat_callback: error -2                                      

mos7840 ttyUSB6: Moschip 7840/7820 USB Serial Driver converter now disconnected

from ttyUSB6                                                                  

mos7840 ttyUSB7: Moschip 7840/7820 USB Serial Driver converter now disconnected

from ttyUSB7                                                                  

mos7840 ttyUSB8: Moschip 7840/7820 USB Serial Driver converter now disconnected

from ttyUSB8                                                                  

mos7840 2-1.4:1.0: device disconnected                                        

option: option_instat_callback: error -2                                      

ehci_fsl_bus_suspend begins, Host 1                                          

ehci_fsl_bus_suspend ends, Host 1                                            

USB Host suspend begins                                                      

ehci_fsl_drv_suspend, pm event                                                

host suspend ends                                                            

udc suspend begins                                                            

USB Gadget suspend ends                                                      

USB Host suspend begins                                                      

ehci_fsl_drv_suspend, pm event                                                

host suspend ends                                                            

add wake up source irq 101                                                    

add wake up source irq 99                                                    

add wake up source irq 103                                                    

add wake up source irq 51                                                    

PM: suspend of devices complete after 125.765 msecs                          

PM: late suspend of devices complete after 0.737 msecs                        

Disabling non-boot CPUs ...                                                  

CPU1: shutdown  

USB keyboard is not able to wakeup Android. At this point.

I have already tried to enable wakeup on /sys/bus/usb/devices/../power/wakeup for both device and USB Hub on the board, as indicated in i.MX 6 Linux® Reference Manual, Rev. L3.14.28_1.0.0-ga, 03/2015  "41.2.5 USB Wakeup Usage", still no success.

Has anybody been able to do this? Or has some hints to solve this?

Thanks in advance

Labels (2)
Tags (2)
0 Kudos
1 Solution
833 Views
mauriciorodrigu
Contributor II

Hi Carlos and everyonde, we finnaly made it. In the end the problem was simpler thant I tought but we had some trouble finding the right combination of commands.:

In order to enable remote wakeup from USB we had to run these commands

#Change control to auto for the right device

echo auto > /sys/devices/platform/fsl-ehci.1/usb2/2-1/2-1.2/power/control

#Enable wakeuop on fsl-ehci.1

echo enabled > /sys/devices/platform/fsl-ehci.1/power/wakeup

# Enable wakeup on USB HUB where keyboard is connected

echo enabled > /sys/bus/usb/devices/2-1/power/wakeup

#Enable wakeup on USB port keyboard is connected

echo enabled > /sys/bus/usb/devices/2-1.2/power/wakeup

After this we were able to successfully wakeup from MEM mode in Android.

Thanks

View solution in original post

0 Kudos
2 Replies
834 Views
mauriciorodrigu
Contributor II

Hi Carlos and everyonde, we finnaly made it. In the end the problem was simpler thant I tought but we had some trouble finding the right combination of commands.:

In order to enable remote wakeup from USB we had to run these commands

#Change control to auto for the right device

echo auto > /sys/devices/platform/fsl-ehci.1/usb2/2-1/2-1.2/power/control

#Enable wakeuop on fsl-ehci.1

echo enabled > /sys/devices/platform/fsl-ehci.1/power/wakeup

# Enable wakeup on USB HUB where keyboard is connected

echo enabled > /sys/bus/usb/devices/2-1/power/wakeup

#Enable wakeup on USB port keyboard is connected

echo enabled > /sys/bus/usb/devices/2-1.2/power/wakeup

After this we were able to successfully wakeup from MEM mode in Android.

Thanks

0 Kudos
833 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Mauricio,

We are internally reviewing your case.

I will post an update as soon as having news.

Best regards!

/Carlos

0 Kudos