<br><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 5:04 AM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Ajay.<br>
<br>
Can you confirm this is on XO-1.75 with 13.1.0 os11? </blockquote><div><br>Ahh yes. It is on XO-1.75 with 13.1.0 os11.<br><br>Sorry for not being clear previously :-\<br><br><br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I think you<br>
mentioned XO-1.75 and 13.1.0 in a previous reply, but you might have<br>
changed the configuration since then.<br>
<br>
At step c, where the modem is not detected, I take it you mean that<br>
the Sugar frame icon does not appear. I know you said your nm_test.py<br>
script does not list the device.<br>
<br>
I wanted to test your nm_test.py. It seems reliable. In the same<br>
test, I was unable to reproduce your problem. My test is below.<br>
<br>
I suggest in your case obtaining kernel dmesg output for two<br>
scenarios:<br>
<br>
- the modem is inserted after Sugar has started,<br></blockquote><div><br>Ok, so here are the steps ::<br><br><br>a)<br>Ensure that a pen-drive is inserted in one USB-slot; and the modem in another.<br><br>b)<br>Reboot.<br>
<br>c)<br>The modem-icon does not appear in the frame.<br><br><br>The "/var/log/messages" at this stage are attached as "case_1_messages"<br>The "dmesg" messages at this stage are attached as "case_1_dmesg".<br>
<br>======================<br><br><br>d)<br>Reboot.<br><br>e)<br>The modem-icon does not appear in the frame.<br><br>f)<br>Remove (unplug) the modem.<br><br>g)<br>Re-plug the modem.<br><br>h)<br>The modem-icon now appears in the frame.<br>
<br><br>The "/var/log/messages" at this stage are attached as "case_2_messages"<br>
The "dmesg" messages at this stage are attached as "case_2_dmesg".<br><br>=================<br><br><br>I proceeded further with an additional workflow.<br><br>i)<br>Unmount and remove the pen-drive.<br>
<br>j)<br>Reboot.<br><br>k)<br>The modem-icon appears in the frame.<br><br>l)<br>Insert the pen-drive (so that log-files can be copied on this external storage).<br><br><br>The "/var/log/messages" at this stage are attached as "case_3_messages"<br>
The "dmesg" messages at this stage are attached as "case_3_dmesg".<br><br>===================<br><br><br>Please let me know if I could provide any other info.<br><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
- the modem is inserted before power on.<br>
<br>
So that the kernel response to the USB device can be checked.<br>
<br>
--<br>
<br>
I tested with 13.1.0 os12 on XO-4, and 12.1.0 os21 on XO-1.75 with a<br>
Huawei E173 bound to service vendor Optus in Australia.<br>
<br>
The modem was inserted in the socket and the laptop switched on. I<br>
waited for Sugar to be available.<br>
<br>
The modem does appear in the frame. I used My Settings to configure<br>
APN, then selected Connect using the frame icon.<br>
<br>
The connection completes and Browse can be used, but the frame icon<br>
does not change from saying "Connecting" (SL #4255).<br>
<br>
At this point, and before connecting, your nm_test.py script reports<br>
device 0 with type 2, and device 1 with type 8.<br>
<br>
At Terminal prompt the command "nmcli dev" properly lists /dev/ttyUBS0<br>
as type gsm state connected.<br>
<br>
"nmcli con" properly lists the connection.<br>
<br>
"nmcli con down uuid <uuid>" properly terminates the connection, and<br>
the frame icon properly reports status of "Disconnected".<br>
<br>
When I remove the modem from the socket, your nm_test.py script<br>
properly reports removed device 1 type 8, and when re-run does not<br>
report device 1 any longer.<br>
<br>
(Unrelated, why can't I copy a URL from the Browse activity location<br>
bar? I had gone to <a href="http://lists.laptop.org" target="_blank">lists.laptop.org</a>, to devel@ archives, to grab your<br>
nm_test.py attachment.)<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Nov 21, 2012 at 04:16:39PM +0530, Ajay Garg wrote:<br>
> Hi all.<br>
><br>
> I tested on os11, with all power-management disabled.<br>
><br>
> 0.<br>
> Insert a pen-drive.<br>
><br>
> a)<br>
> Inserted modem in another slot; the modem is detected.<br>
><br>
> b)<br>
> Reboot.<br>
><br>
> c)<br>
> Modem is NOT detected.<br>
><br>
> d)<br>
> Remove modem.<br>
><br>
> e)<br>
> Insert modem; the modem is detected.<br>
><br>
><br>
> I tried the above steps 5 times; and the results were same.<br>
><br>
><br>
> Also, please find attached a sample python script, which lists all the<br>
> detected network-devices.<br>
> When this script is run as "python nm_test.py" in step c), the modem-device is<br>
> not detected by this script as well; whereas in other cases, this script<br>
> detects the device.<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> ===============================================================================<br>
> =<br>
><br>
> Another sequence ::<br>
><br>
><br>
> 0.<br>
> Ensure that there is no pen-drive inserted in any of the USB slots.<br>
><br>
> a)<br>
> Inserted modem; the modem is detected.<br>
><br>
> b)<br>
> Reboot.<br>
><br>
> c)<br>
> Modem is detected.<br>
><br>
> d)<br>
> Remove modem.<br>
><br>
> e)<br>
> Insert modem; the modem is detected.<br>
><br>
><br>
> I tried the above steps 5 times; and the results were same.<br>
><br>
><br>
> ===============================================================================<br>
> ================<br>
><br>
><br>
> I will try the same steps with os12, once I am finished downloading it.<br>
><br>
><br>
> ===============================================================================<br>
> ================<br>
><br>
><br>
> I don't have a XO-1.5; so can't try on it :-\<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Wed, Nov 21, 2012 at 3:18 PM, Richard A. Smith <<a href="mailto:richard@laptop.org">richard@laptop.org</a>> wrote:<br>
><br>
> On 11/21/2012 01:07 AM, Jerry Vonau wrote:<br>
><br>
><br>
><br>
> Dropping the power to the usb bus is making the modem play peek-a-boo<br>
> with the kernel: <a href="http://dev.laptop.org/ticket/10708" target="_blank">http://dev.laptop.org/ticket/10708</a>.<br>
> <<a href="http://dev.laptop.org/ticket/10708" target="_blank">http://dev.laptop.org/ticket/10708</a>><br>
><br>
><br>
> And just to be clear its more than just a power dropping problem. Both<br>
> 1.75 and XO-4 both have the ability to keep the USB bus powered during<br>
> suspend (with an EC firmware change) but on resume the kernel resets the<br>
> USB bus. I don't know if the kernel has an option not to do that.<br>
><br>
><br>
> --<br>
> Richard A. Smith <<a href="mailto:richard@laptop.org">richard@laptop.org</a>><br>
> One Laptop per Child<br>
> _______________________________________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
><br>
><br>
><br>
> Regards,<br>
> Ajay<br>
><br>
<br>
<br>
> _______________________________________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</div></div></blockquote></div><br><br clear="all"><br><br><font face="arial, sans-serif">Regards,<br><br>Ajay Garg</font><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font face="arial, sans-serif">Dextrose Developer</font><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Activity Central: </span><a href="http://activitycentral.com/" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">http://activitycentral.com</a><br>