TeamApexQ / apexq

Documentation and general information
6 stars 0 forks source link

Failure to deep sleep -- inconsistent and unpredictable #35

Closed lbdroid closed 11 years ago

lbdroid commented 11 years ago

Sometimes, possibly following some kind of crash, the phone will become unable to enter deep sleep. None of the usual workaround for temporary failures work, like rebooting, battery pull, even full wipe and reinstall of system image. The phone will be stuck in that mode.

It appears to be related to a "usb connected" mode, where when the phone is plugged into a usb host, it will not enter deep sleep in order to utilize the usb function, such as ADB.

There is a workaround for the time being, and that is to plug the phone into a USB host, and then unplug it. This will reset the USB state and allow the phone to enter deep sleep normally.

lbdroid commented 11 years ago

Fixed with https://github.com/TeamApexQ/android_kernel_samsung_apexq/commit/79433dc4bd4d78ce8f33c607d2b2ece83b891112 Problem was usb otg was init'ing wrong and setting a wake lock that wouldn't be cleared unless plugged and unplugged from a usb host device. Config option CONFIG_USB_HOST_NOTIFY no longer exists.