Hi Jagan,

>From the attached logs, its obvious that in the non-working case (w/o the
USB cable),
the device has entered complete suspend ( Userspace processes frozen )
and hence the Sensor-HAL code wont be active.

>From the logs you have shared, it appears that the device after going into
suspend,
never wakes-up. ( even after the external IRQ on the proximity sensor line)

Ideally, if the device is suspended,
the proximity-sensor IRQ should wake-up the device & psensor_irqhandler
should be called.
the HAL will come into the picture ONLY after that.

Do verify that the proximity sensor IRQ line is in fact waking-up the
device.
i.e. the following log should be present in the wake-up path when you move
your ear away.

psensor_irqhandler: Starts ##########

Can you please confirm that the device is indeed waking up?

regards
CVS

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to