Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Langhoff
On Wed, May 2, 2012 at 12:13 AM, Ajay Garg ajaygargn...@gmail.com wrote: Just that, we do not wish to set up a mesh-network, as per say. I think you are missing the background reason here. AFAIK, reasons to disable mesh network on XO-1: - Mesh can easily saturate RF, so dense usage scenarios

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Anish Mangal
On Wed, May 2, 2012 at 11:49 AM, Martin Langhoff martin.langh...@gmail.com wrote: On Wed, May 2, 2012 at 12:13 AM, Ajay Garg ajaygargn...@gmail.com wrote: Just that, we do not wish to set up a mesh-network, as per say. I think you are missing the background reason here. AFAIK, reasons to

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Langhoff
On Wed, May 2, 2012 at 2:25 AM, Ajay Garg ajaygargn...@gmail.com wrote: I agree. But there is no working lower-level solution :\ Let's fix that. Messing with Sugar won't help you. Earlier in the thread someone pointed to you the scripts to trigger on resume (by powerd). Do those work? Not work?

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Thanks Martin (a ton !!) On Wed, May 2, 2012 at 12:32 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Wed, May 2, 2012 at 2:25 AM, Ajay Garg ajaygargn...@gmail.com wrote: I agree. But there is no working lower-level solution :\ Let's fix that. Great !!! Messing with Sugar

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Abente
I think (guessing by the responses) the original problem here is that, if you disable the mesh AFTER NM has taken the device, NM crashes. This a regression bug, considering that this didn't happened in fedora-11 based builds. So the solution here is to find another place to place the script,

Re: [Sugar-devel] [PATCH Browse] Graphic for the cancel loading button in the URL entry changed #3499

2012-05-02 Thread Simon Schampijer
On 04/27/2012 11:58 AM, Manuel Quiñones wrote: Now features a square black background, to distingish it from the upcoming clear URL entry button. Signed-off-by: Manuel Quiñonesma...@laptop.org Hi Manu, thanks for the patch, I commented on the visual aspect in

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Langhoff
On Wed, May 2, 2012 at 4:07 AM, Martin Abente martin.abente.lah...@gmail.com wrote: I think (guessing by the responses) the original problem here is that, if you disable the mesh AFTER NM has taken the device, NM crashes. This a regression bug, considering that this didn't happened in fedora-11

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Abente
How hard and sensible do you think it could be to backport that patch? :D (Assuming that touching the kernel is an option for someone, hehe) On Wed, May 2, 2012 at 5:21 AM, Jon Nettleton jon.nettle...@gmail.comwrote: On Wed, May 2, 2012 at 10:42 AM, Martin Langhoff martin.langh...@gmail.com

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Martin, just one small query : In one of the earlier mails, it was said that the mac address for msh0 is the same as eth0. So, would blacklisting the (same) device, be feasible? I mean, would that not _also_ disable general wifi network detections? Regards, Ajay On Wed, May 2, 2012 at 12:58

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Langhoff
On Wed, May 2, 2012 at 5:32 AM, Ajay Garg ajaygargn...@gmail.com wrote: In one of the earlier mails, it was said that the mac address for msh0 is the same as eth0. Ah, sorry, you're correct, that won't help. So your options are - a kernel module parameter, as Jon proposes, in modprobe.d/ or

Re: [Sugar-devel] [PATCH sugar] Create a default unencrypted keyring, OLPC #10290

2012-05-02 Thread Simon Schampijer
Thanks Sascha for commenting, On 04/23/2012 11:13 PM, Sascha Silbe wrote: Excerpts from Simon Schampijer's message of 2012-04-16 12:33:05 +0200: This patch does create an ununcrypted default keyring if there is not one available already. This will stop prompts for unlocking the keyring after

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Paul Fox
martin wrote: On Wed, May 2, 2012 at 3:22 AM, Ajay Garg ajaygargn...@gmail.com wrote: The /etc/powerd/postresume.d/disable_mesh.sh doesn't work. So we need to understand why it does not work. Is it a race condition? Perhaps it is better fixed as a udev script -- triggering when the

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Good News. I managed to get this working (albeit via changes in sugar). The details are at :: http://git.sugarlabs.org/dextrose/mainline/commit/4ac1a5300f4c43608b0f009a23d966d404a15632 Regards, Ajay On Wed, May 2, 2012 at 6:02 PM, Paul Fox p...@laptop.org wrote: martin wrote: On Wed, May

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
On Wed, May 2, 2012 at 7:57 PM, Kevin Gordon kgordon...@gmail.com wrote: On Wed, May 2, 2012 at 10:18 AM, Ajay Garg ajaygargn...@gmail.com wrote: Good News. I managed to get this working (albeit via changes in sugar). The details are at ::

[Sugar-devel] [PATCH Browse] Fix for the MIME type handling of a request SL #3512

2012-05-02 Thread Manuel Quiñones
We were not returning the right value, the callback should return True if the signal is handled, False otherwise. This fixes http://bugs.sugarlabs.org/ticket/3512 Signed-off-by: Manuel Quiñones ma...@laptop.org --- browser.py | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-)

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Samuel Greenfeld
It's worth noting that half the battle can be won by overriding the following XO-1 specific line in OLPC OS Builder's kspost.50.xo1-tweaks.inc: gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /desktop/sugar/network/adhoc false Setting this to

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
On Wed, May 2, 2012 at 7:59 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Wed, May 2, 2012 at 10:18 AM, Ajay Garg ajaygargn...@gmail.com wrote: Good News. I managed to get this working (albeit via changes in sugar). The details are at ::

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Anish Mangal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/02/2012 07:59 PM, Martin Langhoff wrote: On Wed, May 2, 2012 at 10:18 AM, Ajay Garg ajaygargn...@gmail.com wrote: Good News. I managed to get this working (albeit via changes in sugar). The details are at ::

[Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Manuel Kaufmann
Decode (using 'utf-8') the string inserted by the user in the URL address bar to search with SQLite into places' database. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- webtoolbar.py |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webtoolbar.py b/webtoolbar.py

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Well, could someone point me to the kernel fix, which could solve the problem by backporting. That should be an interesting exercise. Regards, Ajay On Wed, May 2, 2012 at 8:44 PM, Anish Mangal an...@activitycentral.comwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/02/2012 07:59

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Martin Langhoff
On Wed, May 2, 2012 at 11:07 AM, Ajay Garg ajaygargn...@gmail.com wrote: I believe that the number of packets being forwarded in this, would be (much) less than in the scenario when the users are actually connected to a mesh-network-channel. Kindly affirm/reject my above notion :) I am a very

[Sugar-devel] [PATCH v2 Browse] Fix for the MIME type handling of a request SL #3512

2012-05-02 Thread Manuel Quiñones
We were not returning the right value, the callback should return True if the signal is handled, False otherwise. This fixes http://bugs.sugarlabs.org/ticket/3512 - v1 - v2: fixed regression with PDF handling. Signed-off-by: Manuel Quiñones ma...@laptop.org --- browser.py | 11

Re: [Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Manuel Quiñones
Hi humitos, 2012/5/2 Manuel Kaufmann humi...@gmail.com: Decode (using 'utf-8') the string inserted by the user in the URL address bar to search with SQLite into places' database. Signed-off-by: Manuel Kaufmann humi...@gmail.com ---  webtoolbar.py |    3 ++-  1 file changed, 2

Re: [Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Manuel Kaufmann
On Wed, May 2, 2012 at 1:24 PM, Manuel Quiñones ma...@laptop.org wrote: Works for me in my dev machine and in the XO.  Are we safe to assume that the text in GtkEntry is utf-8 ? I don't know. I'm really new on this :) , but it depends on the codification that we are using with sugar. I guess

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Mikus Grinbergs
Another comment from the unwashed: Years back, I used only ethernet to connect my XOs. Nowadays, I'm using both wired and wireless to connect between XOs. [By the way, I normally run my XOs with suspend disabled - so I have not paid much attention to problems associated with 'resume'.]

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Martin, just out of curiosity .. a logical query comes to my mind. Why, and to whom, are packets forwarded, even though no user has joined any channel? Please do not take this as arrogance; I just wish to clear up some logical mind-blocks :D More importantly, this would clear up some of my

Re: [Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Daniel Drake
On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones ma...@laptop.org wrote: Works for me in my dev machine and in the XO.  Are we safe to assume that the text in GtkEntry is utf-8 ? All strings in GTK+ are in UTF-8. However, python tends to work in UTF16. I am surprised that it is not

Re: [Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Chris Leonard
On Wed, May 2, 2012 at 2:01 PM, Daniel Drake d...@laptop.org wrote: On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones ma...@laptop.org wrote: Works for me in my dev machine and in the XO.  Are we safe to assume that the text in GtkEntry is utf-8 ? All strings in GTK+ are in UTF-8. However,

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Paul Fox
martin wrote: On Wed, May 2, 2012 at 11:07 AM, Ajay Garg ajaygargn...@gmail.com wrote: I believe that the number of packets being forwarded in this, would be (much) less than in the scenario when the users are actually connected to a mesh-network-channel. Kindly affirm/reject my

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Thanks Paul. I will test this, and get back to you once done. Thanks a ton Regards, Ajay On Thu, May 3, 2012 at 2:21 AM, Paul Fox p...@laptop.org wrote: martin wrote:   On Wed, May 2, 2012 at 11:07 AM, Ajay Garg ajaygargn...@gmail.com wrote:   I believe that the number of packets

[Sugar-devel] I know America 4

2012-05-02 Thread Alan Jhonn Aguiar Schwyn
Hi! After months of changes, this new version comes out.The changes are not visible because the change is within.Changed all .txt with information from each country in .pyThis should improve performance a bit, but I did not try.But this allows for the use gettext strings with allthe names of

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Hi all. One generic query (not necessarily related to NM crash during resume-upon-suspend) :: I cannot seem to find any grub.conf on my XO-1, wherein I could add the kernel boot parameter. So, does XO-1 have any alternative to grub.conf ? Regards, Ajay On Thu, May 3, 2012 at 2:24 AM, Ajay

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Paul Fox
ajay wrote: Hi all. One generic query (not necessarily related to NM crash during resume-upon-suspend) :: I cannot seem to find any grub.conf on my XO-1, wherein I could add the kernel boot parameter. So, does XO-1 have any alternative to grub.conf ? look at olpc.fth. in

Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

2012-05-02 Thread Ajay Garg
Paul, here are the test results :: == USE-CASE 1 == a) Created file '/etc/modprobe.d/libertas.conf'. b) Ensured that '/etc/modprobe.d/libertas.conf' contained only the following line :: options libertas libertas_disablemesh=1 c) Ensured that there is no echo 0