[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmoko-community
Subject:    Re: [gta02] cannot boot from NAND
From:       Radek Polak <psonek2 () seznam ! cz>
Date:       2013-12-17 12:01:07
Message-ID: 201312171301.07367.psonek2 () seznam ! cz
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Monday, December 16, 2013 10:12:08 PM Ben Wong wrote:
> > There must be some timing problem. It can be quite tricky to debug it,
> > because with logging it works and with debugging enabled it works too.
> 
> Timing with the AT communications? Would that be the chat script?

No idea, i guess it will be a lot of debug prints and recompiling to find this 
out.

> That would be a nice one to fix. If I don't notice that I've received
> a text message or call, I'll sometimes find later that the phone is
> very warm and the battery nearly dead even though I haven't been using
> it.

It seems i understand the problem and have a workaround that works on v58. The 
problem seems to be in QtMoko power management handling. You can set intervals 
for dim, screen off and suspend. There are intervals between them and it 
always goes like:

dim->screen off->suspend

If you dont specify interval between screen off->suspend QtMoko automatically 
places 100ms there. But this is probably not enough and suspend never happens.

The workaround: go to Settings->Power management->select "On battery" and fill 
in good intevals - e.g. Dim=off, Display off=30s, Suspend=40s and it will auto 
suspend ok. The trick is that Display off must be filled and must be more then 
10s less then suspend.

> > 4/ maybe fix the wifi dialog
> 
> It would be nice if it was sane. But even just ditching it and having
> something simple, even trivial like OpenWRT's ewoc-cli script, would
> be an improvement.

You can use standard debian networking (/etc/network/interfaces) even for wpa2 
connections. There are some docs on internet how to do it.

BR

Radek

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans Mono'; font-size:9pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">On Monday, December 16, 2013 10:12:08 PM Ben Wong wrote:</p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; There must be some \
timing problem. It can be quite tricky to debug it,</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">&gt; &gt; because with logging it works and with \
debugging enabled it works too.</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">&gt; </p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">&gt; Timing with the AT communications? Would that be the chat \
script?</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">No idea, i guess it will be a \
lot of debug prints and recompiling to find this out.</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; That would be a nice one \
to fix. If I don't notice that I've received</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">&gt; a text message or call, I'll sometimes find \
later that the phone is</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">&gt; very warm and the battery nearly dead even though I haven't \
been using</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; \
it.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">It seems i understand the \
problem and have a workaround that works on v58. The problem seems to be in QtMoko \
power management handling. You can set intervals for dim, screen off and suspend. \
There are intervals between them and it always goes like:</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">dim-&gt;screen \
off-&gt;suspend</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">If you dont specify interval between screen off-&gt;suspend QtMoko \
automatically places 100ms there. But this is probably not enough and suspend never \
happens.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">The workaround: go to \
Settings-&gt;Power management-&gt;select &quot;On battery&quot; and fill in good \
intevals - e.g. Dim=off, Display off=30s, Suspend=40s and it will auto suspend ok. \
The trick is that Display off must be filled and must be more then 10s less then \
suspend.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; 4/ maybe fix the \
wifi dialog</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; It would be nice if it \
was sane. But even just ditching it and having</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">&gt; something simple, even trivial like \
OpenWRT's ewoc-cli script, would</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">&gt; be an improvement.</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">You can use standard debian networking \
(/etc/network/interfaces) even for wpa2 connections. There are some docs on internet \
how to do it.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">BR</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">Radek</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p></body></html>



_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic