Helge Hafting schrieb:
> Tilman Baumann wrote:
>> If your laptop can not provide full power in suspend, it ought to tell
>> it's devices so.
>>
> I guess the phone checks now and then to see if power is critically low
> when it isn't suspended/off. If so, it could also check if charging is
> working as expected and synthesize a "unplug" event if it isn't.
A shutdown should be a 'unplug' (logic wise not power wise). The fact that
it can still dribble out some mA out of the port shold not indicate that
the phone has sufficient power.
Because the dribble-charge mode which is engaged on dumb chargers (or dead
hosts) is known to be not necessarily enough to sustain the load to keep
the device on line.
So auto suspend should definitely engage. If not, this is a bug.
framework should definitely care for the available power levels (100mA
(dumb dribble charge), 500mA (enumerated usb device mode), 1A (fast
charger mode). Not for the fact that there is some voltage on the port.
>> It would be interesting to reproduce this. Maybe you can put your laptop
>> to sleep and then check the logs on your freerunner and check the power
>> status in the settings app.
>
> I will.
I would be really interested in the results.
Because I believe I had similar issues once in a while. I have the
suspicion that frameworkd on some occasions does not recognizes a change
in carge mode.
For example if I bootup the system with usb plugged in, it sometimes only
seems to go in charge mode after I plug it out and in again. Which
probably creates a event that notifies frameworkd about the new stat. And
if this notification does not happen it will not engage charging mode.
But this is only a untested theory and maybe GTA01 specific.
--
MFG
Tilman Baumann
_______________________________________________
Shr-devel mailing list
[hidden email]
http://lists.projects.openmoko.org/mailman/listinfo/shr-devel