Re: [Sugar-devel] [PATCH olpc-netutils] Change mode of "logtemp" files to be able to remove them OLPC #11851
On Sun, May 13, 2012 at 4:41 PM, Manuel Kaufmann wrote: > This is a workaround to be able to remove the files copied by > "olpc-log" to a temporal directory. Thanks! Applied, added the BZ# to the inline comment, pushed, cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] os-9 testing
> Tested the os9 build for a few basic tests, reports below: ... > ? Pippy > ? warnings in the terminal console before any example related text > appears (annoying) ... See http://bugs.sugarlabs.org/ticket/3492 Pippy -import pippy produces warnings Tony ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [PATCH olpc-netutils] Change mode of "logtemp" files to be able to remove them OLPC #11851
This is a workaround to be able to remove the files copied by "olpc-log" to a temporal directory. The problem is that "olpc-log" is coping files from /proc and those files are being copied preserving "mode" attributes and they are read-only, so "olpc-log" fails when it tries to remove them. The correct way to do this would be using "cp --no-preserve=mode" to copy those files but it is buggy and doesn't work as the documentation says. Signed-off-by: Manuel Kaufmann --- usr/bin/olpc-log |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usr/bin/olpc-log b/usr/bin/olpc-log index 2f43318..dce14ce 100755 --- a/usr/bin/olpc-log +++ b/usr/bin/olpc-log @@ -66,6 +66,9 @@ function proc { cp -r -t $target/proc/$pid /proc/$pid/{cmdline,environ,limits,mounts,net,oom_adj,oom_score,sched,smaps,stat,status} &> /dev/null echo -n . done + + # cp --no-preserve=mode is buggy + chmod -R u+w $target echo -n = } -- 1.7.7.6 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] os-9 testing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Tested the os9 build for a few basic tests, reports below: 12.1.0 os-9 testing on a XO-1.5 HS ? Does not suspend on lid close ? Hangs while shutdown (at the ul-warning screen) ? Journal detects /run/media/olpc/OLPCRoot as a mount and shows the files present in it ? Journal view -> invoke journal icon palette -> shows free space (is wrong IMO) Since we now have the documents directory the 'free space' shown is applicable to both the documents AND journal ? Write to journal feature -> Mouse icon for 'typing cursor' icon too small ? Too small in browse ? Okay in memorize ? Perhaps it has got to do something with gtk2/gtk3 toolkit versions? ? TTS - seems to work okay ? Connecting to jabber.sl.o shows many peers. Collab not tested Activities ? Speak ? starts stops fine, basic operations fine ? Pippy ? warnings in the terminal console before any example related text appears (annoying) ? Measure ? Start/stop okay ? Basic operations okay ? Write ? Start/stop okay ? Basic operations okay ? Record ? Start/stop okay ? Record video/picture okay ? Line at bottom of video (seems a XO-1.5 specific issue) ? Paint ? Start/stop okay ? Basic operations okay ? Moon ? Start/stop okay ? Basic operations okay ? Help ? Fails to start ? Clock ? Start/stop okay ? The clock is cut off from the bottom (about 10%) ? Chat ? Start/stop okay ? Chatting not tested ? Physics ? Rough handling (too many objects) crashed the activity ? Ruler ? Start/stop okay ? Basic operations okay ? Maze ? Start/stop okay ? Basic operations okay ? Calculator ? Start/stop okay ? Basic operations okay - -- Anish -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPsBrlAAoJEBoxUdDHDZVptvUH/3jdZyqsXCZWN4eeRRZBbZVW +0VeDUJefu5x2w2fKVH71HR9DunTAWEg2t5HvwJav6t/CSJWuhLvfOhCAPbYZEm6 omf7scBHhiesRY9aPdhCzS8C5YTmPoeUQLROLlTj/qSmrAJnLaT9xVCK3wRaPR4X VGInV7kriiu/avoLZqUin2X9tSV5Kp0iEd4ZFDtIxGhCuNqo8EBy0YFFNR+nlbhy w5lpnRybXDrlJisgxlL1sCu3sn2dgTMbYlvXQ+e0eOaZMC9DeybK9IZj4UKv0jMn lN0LBf02G/C0bK/6oZ3HGLDSBpReCmow4Q5m/YKOjmlKXzHtlRqUMX1MxUZ3D9Q= =tTM9 -END PGP SIGNATURE- ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Error display accentuated characters from journal in Write
Sure, you could download it here : http://olpc-france.org/download/Test%20accents.odt Thanks to you. Lionel. De : godi...@gmail.com [mailto:godi...@gmail.com] De la part de Gonzalo Odiard Envoyé : dimanche 13 mai 2012 22:06 À : Lionel Laské Cc : sugar-devel@lists.sugarlabs.org Objet : Re: [Sugar-devel] Error display accentuated characters from journal in Write Can you send me a file generated to do tests? Thanks Gonzalo On Sun, May 13, 2012 at 4:35 PM, Lionel Laské wrote: Hi all, Teachers from our Saint-Denis experimentation has an issue using Write activity with accentuated characters. Children could use accentuated characters correctly with the Write activity (see a sample here [1]). However, the issue appears when reading from the journal a previously recorded text. In this case, Write displays incorrectly accents (see [2], same text than [1] read from the Journal). It seems that its just a display error because the work around is to delete any character then everything gone right. Any idea about this ? FYI, were using 11.3.0 with Write 77. BTW Ive got the same result with Write 79. Best regards from France. Lionel. [1] http://olpc-france.org/download/accent_1.png [2] http://olpc-france.org/download/accent_2.png ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Error display accentuated characters from journal in Write
Can you send me a file generated to do tests? Thanks Gonzalo On Sun, May 13, 2012 at 4:35 PM, Lionel Laské wrote: > Hi all, > > ** ** > > Teachers from our Saint-Denis experimentation has an issue using Write > activity with accentuated characters. > > ** ** > > Children could use accentuated characters correctly with the Write > activity (see a sample here [1]). > > However, the issue appears when reading from the journal a previously > recorded text. In this case, Write displays incorrectly accents (see [2], > same text than [1] read from the Journal). It seems that it’s just a > display error because the work around is to delete any character then > everything gone right. > > ** ** > > Any idea about this ? > > ** ** > > FYI, we’re using 11.3.0 with Write 77. BTW I’ve got the same result with > Write 79. > > ** ** > > Best regards from France. > > ** ** > > Lionel. > > ** ** > > [1] http://olpc-france.org/download/accent_1.png > > [2] http://olpc-france.org/download/accent_2.png > > ** ** > > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] XO names when sharing with server
> David Leeming writes: > I am sure this has been covered before, but would appreciate a > reference to the thread... > his is the relevant ticket: SL#2355 [1]. ? Did you use freshly-installed clients (XO-1s) or did you retain any data >From previous installations (either by upgrading or restoring from backup after flashing)? Yes, newly installed clients and server. But let me confirm that again in a couple of days when I have a chance to reproduce it again. > Sascha > [1] https://bugs.sugarlabs.org/ticket/2355 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Error display accentuated characters from journal in Write
Hi all, Teachers from our Saint-Denis experimentation has an issue using Write activity with accentuated characters. Children could use accentuated characters correctly with the Write activity (see a sample here [1]). However, the issue appears when reading from the journal a previously recorded text. In this case, Write displays incorrectly accents (see [2], same text than [1] read from the Journal). It seems that its just a display error because the work around is to delete any character then everything gone right. Any idea about this ? FYI, were using 11.3.0 with Write 77. BTW Ive got the same result with Write 79. Best regards from France. Lionel. [1] http://olpc-france.org/download/accent_1.png [2] http://olpc-france.org/download/accent_2.png ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Sugar Code Sprint in eduJAM! update
Hi! We're currently working in the Sugar Code Sprint in Montevideo. Yo can follow-up our work in http://wiki.sugarlabs.org/go/EduJAM/2012/CodeSprint. We're online on #sugar as well. We'll continue working until tomorrow night. See you online guys! Regards, Pablo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ASLO] Release Graficar-4
Activity Homepage: http://activities.sugarlabs.org/addon/4534 Sugar Platform: 0.86 - 0.96 Download Now: http://activities.sugarlabs.org/downloads/file/28038/chart-4.xo Release notes: Changes: * Chart from clipboard * Rename with Chart * Use gtk-add and gtk-remove icons * Fix helpbutton scrollbar bug Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Log 2/2] Log collector adds user's logs and list installed activities
On Sun, May 13, 2012 at 8:51 AM, Sascha Silbe wrote: > This won't work if Sugar isn't installed in /usr (e.g. when using > sugar-jhbuild). Why do you say this won't work? If the user doesn't have any activity installed there, that directory won't exist and the for won't be executed. That's all. There is no problem there. On the other hand, I was talking with Martin these days and he told me there is a command called "olpc-log" that work in a similar way (collecting information and creating a tar.bz2 file), so maybe we should use this command inside log collector function to make them consistent. What do you think? (I'm taking a look at "olpc-log" command because I didn't know it) -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend
On Sat, May 12, 2012 at 5:40 PM, Jerry Vonau wrote: > Don't think OOB is used to generate the initramfs, from the kernel spec > file: You are correct as to current state of play. It _used_ to be generated during the OOB run. Now it is build during the kernel build. This makes things rather tricky -- currently to get a kernel driver param such as this one you need to install it _on the machine where you build your kernel rpm_. This is at best awkward -- the kernel build environment better be a chroot :-/ So currently Ajay will need to rebuild the kernel rpm in a chroot where he has installed that libertas.conf he desires. Luckily, we don' t mess with this too much. At some point however, I hope that hacking in the initrd gets a bit more practical. cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend
Thanks Martin and Jerry. I followed the following steps :: a) Listed "lsinitrd /boot/initrd.img". It did not show any "/etc/modprobe.d/libertas.conf". b) Extracted "/boot/initrd.img" into a temporary folder. Obviously, no "/etc/modprobe.d/libertas.conf" was seen. c) Generated the required "/etc/modprobe.d/libertas.conf" with the content "options libertas libertas_disablemesh=1" in the tmp folder. d) Re-compressed the temp-folder to "/boot/initrd.img". e) Listed "lsinitrd /boot/initrd.img". This time, "/etc/modprobe.d/libertas.conf" was listed. f) Rebooted XO-1. g) Mesh-icons were still observed :( h) Note that I did this, without OOB (i.e. I was just wanting to test that whether this would work at all). I guess that there is something else we might be missing. So, I think that the only solution left now, is to put the "rmmod/modprobe" hack in olpc-configure. Would it be an acceptable upstream solution (the change in olpc-utils) ? Martin (Langhoff) / Daniel (Drake) ? Looking forward to comments and replies. Thanks and Regards, Ajay On Sun, May 13, 2012 at 3:10 AM, Jerry Vonau wrote: > On Sat, 2012-05-12 at 15:20 -0400, Martin Langhoff wrote: > > On Sat, May 12, 2012 at 4:38 AM, Ajay Garg > wrote: > > > I tried the "rmmod/modprobe" hack in "olpc-configure", and it worked > > > (obviously because, this time the "/etc.modprobe.d/libertas.conf" > could be > > > fetched/read from persistent storage). Mesh-icons were no more visible > in > > > the neighborhood-view (both during reboot, and resume-from-suspend). > > > > > > But I too felt that this is more of a hack, and not a clean solution. > > > > Well, as you pointed out in later emails, the initramfs generation > > will pick it up from there. I'd forgotten about that -- sorry. > > > > So what you want to do is get libertas.conf into some package > > (olpc-utils) or install it from an OOB module -- the xo1 module is a > > good candidate. > > > > In fact I'm liking the OOB module option. I think we would accept a > > patch to OOB's xo1 module, where based on an option it creates this > > file. Just have to make sure it's created before dracut is used to > > generate the initramfs. > > > > Hi Martin: > > Don't think OOB is used to generate the initramfs, from the kernel spec > file: > > # set to 1 to build the initramfs during kernel-build time > # set to 0 to build the initramfs during %post on the host > %define buildinitramfs 1 > > Doesn't that mean the kernel rpm provides pre-build initrd.img > and actrd.img? Doesn't OOB just sign what is in the kernel rpm? > > Think you would need to re-create initrd.img as needed then place the > revised initrd.img into the image via OOB, to be signed by OOB. > > Jerry > > > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH v2 Terminal] Prevent Sugar capture z and q send them to vte SL #3222 OLPC #11836 Used the same approach than the solution for the Escape capture when the activity
Manuel Kaufmann writes: > On Thu, May 10, 2012 at 11:05 AM, Manuel Quiñones wrote: >> Tested-by: James Cameron > > I tested this patch and it works. Thanks for testing! If you put a Tested-By: line similar to James' in your mail, Patchwork [1] will pick it up automatically and if the maintainer is following the Code Review process [2] as recommended, that line will appear in the commit message of the public git repository. Not only does this give an indication of how well a commit was tested, but it also credits you as having spent the time for testing. Sascha [1] https://patchwork.sugarlabs.org/project/sugar/list/ [2] https://wiki.sugarlabs.org/go/Development_Team/Code_Review#Internal_process_.28maintainers_only.29 -- http://sascha.silbe.org/ http://www.infra-silbe.de/ pgpdJzNuyLC1u.pgp Description: PGP signature ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Log 2/2] Log collector adds user's logs and list installed activities
Manuel Kaufmann writes: [logcollect.py] > @@ -229,10 +229,11 @@ class MachineProperties: > > def installed_activities(self): > s = '' > -for path in glob.glob('/usr/share/activities/*.activity'): > +for path in glob.glob('/usr/share/sugar/activities/*.activity'): This won't work if Sugar isn't installed in /usr (e.g. when using sugar-jhbuild). Unfortunately there doesn't seem to be public / documented API to query for this; the best we have right now is jarabe.config.activities_path. It's been there ever since we started supporting system-installed activities [1], so until we provide a better way it should be safe (albeit a bit hacky) to use jarabe.config.activities_path. > s += os.path.basename(path) + '\n' > > -for path in glob.glob('/home/olpc/Activities/*'): > +home = os.path.expanduser('~') > +for path in glob.glob(os.path.join(home, 'Activities', '*')): > s += '~' + os.path.basename(path) + '\n' Using sugar.env.get_user_activities_path() would be more future-proof, matching what Sugar itself is doing. Sascha [1] https://git.sugarlabs.org/sugar/mainline/commit/d0cd8e27bdd3ef6745f2ec1ff02cc191ffbd2af8 -- http://sascha.silbe.org/ http://www.infra-silbe.de/ pgpK8ummznD1o.pgp Description: PGP signature ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] XO names when sharing with server
David Leeming writes: > I am sure this has been covered before, but would appreciate a reference to > the thread... This is the relevant ticket: SL#2355 [1]. Did you use freshly-installed clients (XO-1s) or did you retain any data From previous installations (either by upgrading or restoring from backup after flashing)? Sascha [1] https://bugs.sugarlabs.org/ticket/2355 -- http://sascha.silbe.org/ http://www.infra-silbe.de/ pgpBxF6tMYzNV.pgp Description: PGP signature ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel