Android suspend mode with USB modem connection.

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

Android suspend mode with USB modem connection.

958 Views
kangjianwei
Contributor I

Hi IMX7D

I add one LTE modem with USB connection to the imx7D,  we press power button let the Android to sleep mode. we find that the LCD can half light, and can not screen off.  if we remove the USB modem, we press the power button. the android can go into sleep mode and LCD screen off.

if we connect the USB modem. we check the ''dumpsys power", we can not find any locks. but the Android can be blocked to sleep mode.  Can you tell me  where is block in the Android source code? we need entry to sleep mode when the usb modem connection.

dumpsys power log as here:

Looper state:
  Looper (PowerManagerService, tid 28) {737a88a}
    (Total messages: 0, polling=true, quitting=false)
Wake Locks: size=0
Suspend Blockers: size=4
  PowerManagerService.WakeLocks: ref count=0
  PowerManagerService.Display: ref count=0
  PowerManagerService.Broadcasts: ref count=0
  PowerManagerService.WirelessChargerDetector: ref count=0
Display Power: state=OFF
Wireless Charger Detector State:
  mGravitySensor={Sensor name="Invensense Gravity", vendor="Invensense", version=1, type=9, maxRange=9.81, resolution=1.0E-5, power=6.0, minDelay=4444}
  mPoweredWirelessly=false
  mAtRest=false
  mRestX=0.0, mRestY=0.0, mRestZ=0.0
  mDetectionInProgress=false
  mDetectionStartTime=0 (never)
  mMustUpdateRestPosition=false
  mTotalSamples=0
  mMovingSamples=0
  mFirstSampleX=0.0, mFirstSampleY=0.0, mFirstSampleZ=0.0
  mLastSampleX=0.0, mLastSampleY=0.0, mLastSampleZ=0.0
Labels (1)
0 Kudos
1 Reply

601 Views
igorpadykov
NXP Employee
NXP Employee

Hi kang

one can try procedures given in sect.39.2.4 USB Wakeup Usage,

39.2.5 How to Close the USB Child Device Power attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------