nandblaster: can't open fs.plc for reading
Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Any tips? -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: performance work
On Tue, Dec 16, 2008 at 7:08 PM, Neil Graham l...@screamingduck.com wrote: On Tue, 2008-12-16 at 16:23 -0700, Jordan Crouse wrote: The first thing you need to do is determine which operations you really care about. I would first target the operations that deal with text and rounded corners, since those will be the most complex. Straight blits and rectangle fills are important, but less interesting, since they involve the least work in the path between you and the GPU. Fundimentally, you care about the operations that are making it slow. Those are the ones A) being used lots B) Take notable amounts of time in total and C) have room for improvement. Is there a build of cairo that can produce a log of what calls are used in typical XO use? Some good ways to find out are located here: http://wiki.laptop.org/go/Performance_tuning I personally most often use oprofile, without vmlinux (I don't know where to get a vmlinux file for the olpc kernel). -Wade ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] New xs-config and a 5.1-dev iso...
On Wed, Dec 17, 2008 at 7:18 AM, Martin Langhoff martin.langh...@gmail.comwrote: Are there any other showstoppers or serious annoyances with 0.5? In one experiment, I registered 2 XOs (XOA and XOB) to the XS and it created the moodle logins with links on the moodle login page. For some reason, XOA was given student permissions and XOB was given course creator permissions. Then, from XOA, I successfully clicked on the link to login to moodle as XOB and vice versa. Is it intentional to make the moodle login on the honor system? Anna Schoolfield Birmingham ___ Server-devel mailing list server-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
olpc-update from 703 to 8.2 wipes out Journal
I updated an XO from 703 to 8.2 with the latest olpc-update, and to my disappointment the journal content was wiped. Is this to be expected? /Ties ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: nandblaster: can't open fs.plc for reading
Hi Emiliano! On Wed, Dec 17, 2008 at 02:22:37PM -0200, Emiliano Pastorino wrote: Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Judging by the description on the afformentioned page, the fs.plc file has the format described at http://wiki.laptop.org/go/OFW_NAND_FLASH_Updater It is basically a script used by OFW during the update process to build any partitions on the NAND and to validate the eblocks. The bulk of the script is a bunch of sha256 digests for each 128KiB piece (erase-block, or eblock) of the image you're flashing. You can see such scripts by unzipping an fs.zip from one of our signed builds and examining the file data.img. Any tips? Ironically I just built a simple script to generate such files because it will help us in getting your custom images ready for secure reflash. Instructions regarding that process will be forthcoming this afternoon. In the meantime I suspect you can resolve the NANDBlaster issue by using the script. You can obtain the script from: git-clone git://dev.laptop.org/users/erik/image-digestor Run it as follows against the image file you are trying to NANDBlast: image-digestor.sh image_file_name After a minute or so it will produce a file called image_file_name.ofw_update_script. Rename this file fs.plc, put it on the USB alongside fs.img, and start the NANDBlaster again by following the instructions on the Multicast NAND Updater page. Hopefully that resolves the issue. Please indicate if you encounter more problems. Best, Erik ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Fixed Puritan bug on F10/Intrepid
On Tue, Dec 16, 2008 at 03:03:08PM -0500, Reuben K. Caron wrote: Michael, The build was successfully made on both F10 and Intrepid. How could I slip in a language pack? How could I set the Timezone for the build? How could I set the default language for sugar? Well, first, figure out how would you normally do these things. Then add the necessary files to the compilation directory and modify the 'install_hacks.py' file (or add a custom stage) to apply the changes. Would it help for me to work out an example for you in a subsequent reply? (Would you like to work out one as an example and post it for others to enjoy?) Thanks, Michael P.S. - You should try out the latest version of the ui and 767 compilation -- I worked up a nice automatic caching feature and I improved the interactive debugging mode too! (Be slightly wary though; the code is far from well-tested.) P.P.S. - You can use 'git pull' to pull down the latest versions of the ui and compilation. If you decide you don't like them, you can go back to the earlier versions with a combination of 'git log' to find out the commit-hash identifying the version you want and 'git reset --hard hash' to move to it. Again, let me know if a more verbose tutorial would be helpful. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: performance work
On Tue, 2008-12-16 at 16:23 -0700, Jordan Crouse wrote: I recommend running the Cairo benchmarks on the XO again with acceleration turned off in the X driver. This will give you a good indication of which operations are being accelerated and which are not. Done. http://screamingduck.com/Cruft/cairo_benchmark_XO_NoAccel.txt At a cursory glance it looks like an overall improvement without acceleration except for lines-xlib, add-xlib and over-xlib ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Loosing the Activity window after displaying a OpenFile dialog box
On Wed, Dec 17, 2008 at 12:37:55PM +0530, shivaprasad javali wrote: Hi , In the application that I am developing for the XO there is a Open button which displays an Open File dialog box and lets you choose which file to open in the activity. But when I click on the button and the dialog box is displayed, I loose my application window and I come back to the Sugar home screen after choosing a file to open. The thing works perfectly on a normal Fedora machine and it's only when I am running on the OLPC that I loose the application window. I can see that the Activity is still running if I go to terminal activity and type in ps -A, but there is no window for my application. Could anyone think of what the problem might be? Is the window manager for sugar different from a normal Fedora distibution. If so how? Yes. The window manager used by Sugar is Matchbox, which has only a limited concept of floating windows (it appears only transient windows are rendered as floating and the rest get their own full screens). This is an issue that in theory is not problematic, or only minorly so, but in the practice of software development can be quite a pain. Perhaps you should set the WM_TRANSIENT_FOR property on the OpenFile dialog? Below is the section from the ICCCM describing this property. Note that Sugar doesn't have any concept of files from the UI-level so unless you are opening a view into the journal users will not be able to find anything interesting. I hope this is helpful. Without access to your source I am just guessing. Best, Erik from http://tronche.com/gui/x/icccm/sec-4.html 4.1.2.6. WM_TRANSIENT_FOR Property The WM_TRANSIENT_FOR property (of type WINDOW) contains the ID of another top-level window. The implication is that this window is a pop-up on behalf of the named window, and window managers may decide not to decorate transient windows or may treat them differently in other ways. In particular, window managers should present newly mapped WM_TRANSIENT_FOR windows without requiring any user interaction, even if mapping top-level windows normally does require interaction. Dialogue boxes, for example, are an example of windows that should have WM_TRANSIENT_FOR set. It is important not to confuse WM_TRANSIENT_FOR with override-redirect. WM_TRANSIENT_FOR should be used in those cases where the pointer is not grabbed while the window is mapped (in other words, if other windows are allowed to be active while the transient is up). If other windows must be prevented from processing input (for example, when implementing pop-up menus), use override-redirect and grab the pointer while the window is mapped. Erik ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: nandblaster: can't open fs.plc for reading
Emiliano, Great to hear that it works for you! Thanks for the valuable testing. To avoid future confusion about this filetype I have updated git://dev.laptop.org/users/erik/image-digestor so that it refers to a 'placement control file' and produces image file basename.plc as output. This should make things slightly clearer semantically. Please git-pull. Erik On Wed, Dec 17, 2008 at 04:28:54PM -0200, Emiliano Pastorino wrote: It worked. I'll continue with my tests. Thanks again, Erik! On Wed, Dec 17, 2008 at 2:50 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Thanks, Erik! I'll try it right now On Wed, Dec 17, 2008 at 2:46 PM, Erik Garrison e...@laptop.org wrote: Hi Emiliano! On Wed, Dec 17, 2008 at 02:22:37PM -0200, Emiliano Pastorino wrote: Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Judging by the description on the afformentioned page, the fs.plc file has the format described at http://wiki.laptop.org/go/OFW_NAND_FLASH_Updater It is basically a script used by OFW during the update process to build any partitions on the NAND and to validate the eblocks. The bulk of the script is a bunch of sha256 digests for each 128KiB piece (erase-block, or eblock) of the image you're flashing. You can see such scripts by unzipping an fs.zip from one of our signed builds and examining the file data.img. Any tips? Ironically I just built a simple script to generate such files because it will help us in getting your custom images ready for secure reflash. Instructions regarding that process will be forthcoming this afternoon. In the meantime I suspect you can resolve the NANDBlaster issue by using the script. You can obtain the script from: git-clone git://dev.laptop.org/users/erik/image-digestor Run it as follows against the image file you are trying to NANDBlast: image-digestor.sh image_file_name After a minute or so it will produce a file called image_file_name.ofw_update_script. Rename this file fs.plc, put it on the USB alongside fs.img, and start the NANDBlaster again by following the instructions on the Multicast NAND Updater page. Hopefully that resolves the issue. Please indicate if you encounter more problems. Best, Erik -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
9.1 Planning Meeting Today (Wed.) 2PM US ET #olpc-meeting
Hi All, We are on for the weekly 9.1 planning meeting today (Wed. 12/17) at 2PM US East Coast Time. Its an IRC meeting on freenode.net #olpc-meeting. Here are the minutes from last week: http://lists.laptop.org/pipermail/devel/2008-December/021740.html Per Michael's request, I blocked two hours for the meeting. Tha agenda is: 10 minutes - Review status of last week action items. 30 minutes - XO Camp review and status. 45 minutes - 9.1.0 status. Schedule review, status of major features, page updates and roadmap scrub status. 20 minutes - Trac scrub and conventions review. 15 minutes - set agenda for next week and review action items. Open action items from last week are: - Action item: Greg to edit the camp proposals to focus on top 9.1 priorities and remove most other items. - Action item: Joe to read schedule and update as needed by next meeting: Wed. 12/17. - Action item: Ed to read schedule and update as needed by next meeting: Wed. 12/17 - Action item - Ed to set a date for start of Trac scrub. He will tell us that date by Friday 12/12. Thanks, Greg S ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: nandblaster: can't open fs.plc for reading
Thanks, Erik! I'll try it right now On Wed, Dec 17, 2008 at 2:46 PM, Erik Garrison e...@laptop.org wrote: Hi Emiliano! On Wed, Dec 17, 2008 at 02:22:37PM -0200, Emiliano Pastorino wrote: Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Judging by the description on the afformentioned page, the fs.plc file has the format described at http://wiki.laptop.org/go/OFW_NAND_FLASH_Updater It is basically a script used by OFW during the update process to build any partitions on the NAND and to validate the eblocks. The bulk of the script is a bunch of sha256 digests for each 128KiB piece (erase-block, or eblock) of the image you're flashing. You can see such scripts by unzipping an fs.zip from one of our signed builds and examining the file data.img. Any tips? Ironically I just built a simple script to generate such files because it will help us in getting your custom images ready for secure reflash. Instructions regarding that process will be forthcoming this afternoon. In the meantime I suspect you can resolve the NANDBlaster issue by using the script. You can obtain the script from: git-clone git://dev.laptop.org/users/erik/image-digestor Run it as follows against the image file you are trying to NANDBlast: image-digestor.sh image_file_name After a minute or so it will produce a file called image_file_name.ofw_update_script. Rename this file fs.plc, put it on the USB alongside fs.img, and start the NANDBlaster again by following the instructions on the Multicast NAND Updater page. Hopefully that resolves the issue. Please indicate if you encounter more problems. Best, Erik -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: nandblaster: can't open fs.plc for reading
It worked. I'll continue with my tests. Thanks again, Erik! On Wed, Dec 17, 2008 at 2:50 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Thanks, Erik! I'll try it right now On Wed, Dec 17, 2008 at 2:46 PM, Erik Garrison e...@laptop.org wrote: Hi Emiliano! On Wed, Dec 17, 2008 at 02:22:37PM -0200, Emiliano Pastorino wrote: Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Judging by the description on the afformentioned page, the fs.plc file has the format described at http://wiki.laptop.org/go/OFW_NAND_FLASH_Updater It is basically a script used by OFW during the update process to build any partitions on the NAND and to validate the eblocks. The bulk of the script is a bunch of sha256 digests for each 128KiB piece (erase-block, or eblock) of the image you're flashing. You can see such scripts by unzipping an fs.zip from one of our signed builds and examining the file data.img. Any tips? Ironically I just built a simple script to generate such files because it will help us in getting your custom images ready for secure reflash. Instructions regarding that process will be forthcoming this afternoon. In the meantime I suspect you can resolve the NANDBlaster issue by using the script. You can obtain the script from: git-clone git://dev.laptop.org/users/erik/image-digestor Run it as follows against the image file you are trying to NANDBlast: image-digestor.sh image_file_name After a minute or so it will produce a file called image_file_name.ofw_update_script. Rename this file fs.plc, put it on the USB alongside fs.img, and start the NANDBlaster again by following the instructions on the Multicast NAND Updater page. Hopefully that resolves the issue. Please indicate if you encounter more problems. Best, Erik -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Downloading Scratch project to XO
The simplest would be something like if [ -n $object_id ] ; then filename=$SUGAR_ACTIVITY_ROOT/instance/temp.sb copy-from-journal -o $object_id $filename #... append $filename to Scratch command line ... fi (assuming the Scratch wrapper still basically looks like the Etoys one) - Bert - On 17.12.2008, at 00:51, John Maloney wrote: Hi, Bert. Thanks for the help on this. To clarify, what I was doing was using the clipboard to move a downloaded Scratch project file. I dragged it from the Journal to the clipboard, then went to the Scratch activity and dropped it onto the Scratch window. So that's a somewhat different path from trying to open the project directly in the Journal. It would be great to get both paths working eventually. Re: But this retrieval could be done in the Scratch wrapper script. Cool! That would be an easy solution for me if the wrapper script is not too complex. Could you give me a hint about what the wrapper script would look like? Meanwhile, I will try to make the drag-n-drop-from-clipboard solution work. -- John On Dec 16, 2008, at 6:35 PM, Bert Freudenberg wrote: Not quite, Sugar will not actually pass the file name of the Journal entry when launching the activity. Instead, it passes the id of a datastore object, and the activity is supposed to retrieve that from the datastore. But this retrieval could be done in the Scratch wrapper script. - Bert - On 17.12.2008, at 00:35, John Maloney wrote: Hi, Bert. Re: does Scratch accept a .sb file on its command line? Yes, it does. The problem is that the journal is changing the file extension to something like .bin, and Scratch doesn't think a .bin file is a Scratch project file and simply ignores it. I believe the issue is just that we need one extra file in the Scratch activity info to tells the Journal that Scratch handles the file extensions .sb and .sprite. I figured out what that file should have in it a few weeks back but haven't yet had a chance to try it. I'll give it a try and, if it works, I'll release a new version of Scratch on the XO that includes that file. -- John On Dec 15, 2008, at 2:46 PM, Bert Freudenberg wrote: John, does Scratch accept a .sb file on its command line? If so, the launcher script could get the file from the Journal and pass it on. - Bert - On 15.12.2008, at 18:53, John Maloney wrote: Hi, Phillipp. Thanks for reporting this problem. I believe there is a way to tell the XO to associate the .sb file extension with Scratch. I will look into that and let you know if I figure it out. -- John On Dec 14, 2008, at 8:03 PM, Philipp Kocher wrote: Hi I would like to download Scratch projects from a local server to the XO. On the server I added the following line to the file /etc/ mime.types: application/scratch sb The apache server is now sending files with sb-extension with mime type application/scratch. On the XO the mime type gets stored in the datastore metadata- file. After adding the following line to the Scratch activity/ activity.info file, Scratch gets started when clicking on the Scratch project in the Journal: mime_types = application/scratch The problem is that the project doesn't get opened. The scratch start script bin/scratch-activity gets called with the -u argument holding a datastore object ID, but the script doesn't handle the -u argument. How can I convert a datastore object ID to a filename, so scratch can open the project? And how do I get the necessary permissions to access the file? Thanks, Philipp Pepyride School Cambodia ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Debugging tips for presence over Telepathy/Gabble?
Le mardi 16 décembre 2008 à 12:19 -0200, Martin Langhoff a écrit : Looking for Telepathy/Gabble hints... With the new ejabberd in 0.5 (2.0.1 + Collabora's patches) people have reported very unreliable Network View listings. The problem seems to be that everyone disappears after a short while, and if you leave it for a few hs, everyone reappears. The thread starting with this message has quite a bit of good info - including the fact that the problem is visible with standard xmpp clients too - http://lists.laptop.org/pipermail/server-devel/2008-December/002658.html I am starting to work on reproducing it here, with a small number of XOs. Haven't worked on this area before -- so I am looking for good hints on this from people who've been doing this lots ;-) env variables GABBLE_DEBUG=all and LM_DEBUG=net would give you debug info and XMPP stanzas exchanged. Few months ago I filled shared roster bug on ejabberd BTS. Maybe you are hitting one of these issue? https://support.process-one.net/browse/EJAB-730 https://support.process-one.net/browse/EJAB-731 https://support.process-one.net/browse/EJAB-732 G. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
9.1.0 Meeting Minutes
Greg, Ed, Simon, Chris, Deepak, Sayamindu, Dan, cjl, Ben, Morgan, Marco, SJ and possibly others met on IRC on Wed. 12/17. Minutes: - XO Camp - Page (http://wiki.laptop.org/go/XOCamp_2) needs updating. See Greg's action item below. Focus on design and requirements review of 9.1.0 target features. http://wiki.laptop.org/go/9.1.0#Features Comment that we should have an open time for other topics. Noted: OLPC might be able to fund its own employees, and isn't able to fund anyone else. Action item for SJ to move fundraising link to Sugar site (see below). Comments that sugar or Bernie or community may be able to raise money for others to attend. - 9.1.0 plan review: http://wiki.laptop.org/go/9.1.0 - Feature set is mostly chosen. Need to parse the language work a little more. Action item for Ed to review feature set and ack that is the right must have list. Comments from other welcome. Greg suggested that Arabic should be added to the must have list. Will do that unless there are objections heard soon. Discussion of how to choose the activity set in the manufactured image. Noted that Mel now has the contact info for all activities authors. Discussion of how many activities which run in 8.2 are likely to run unmodified in 9.1.0. Some key ones needing update were noted: Read, Browse, others. Activity compatibility policy link shared by Morgan: http://sugarlabs.org/go/DevelopmentTeam/API_policy Agreement to discuss activities again next week. Discussion of which activities might break when power save is on. No follow up noted. Requirement #9 at http://wiki.laptop.org/go/Feature_roadmap/Improved_battery_life is supposed to say all activities must work with power save on. I will talk to Chris and see if that should be clarified. Discussed need to get better engineering traction on: Activation/lease/signing/image customization. Schedule mentioned. More details in action items below. - Trac conventions and triage plan. - Deferred to next week. See also action items. - Other - Note from Deepak: Status for power stuff is that I believe we are at 700-800ms for resume to userspace, but need to fix a timekeeping bug to get exact data. I will start looking at the more interesting problems of parallelizing some kernel bits next. I will also take a look at and comment on all 9.1 kernel bugs in next week. *** Action items: - Action item: Greg to edit the camp proposals to focus on top 9.1 priorities and remove most other items. Also set exact times and meetings in to the schedule. Also add Sugar 0.84 - 9.1.0 meeting. GS - finish by next week, 12/24 - Action item: Ed to set a date for start of Trac scrub. He will tell us that date by Friday 12/19 - Action item: Ed and Joe to review 9.1 schedule and update as needed. http://wiki.laptop.org/go/9.1.0#Schedule - Action item: Ed to review 9.1.0 feature set. Ensure that all fit the goal. Stretch goal to pick engineers to work on them and to review requirements to make sure they are clear. Action item: SJ to move this URL to sugar labs site. *** Next meeting Wed. 12/24 2PM US ET IRC freenode.net #olpc-meeting. Yes we are on the day before Xmas! Agenda: 5 minutes - review last weeks action items. 10 minutes XO Camp status 25 minutes - 9.1.0 page and feature development status. Also activity compatibility and activity set selection. Lastly, Trac conventions and scrub status. 10 minutes - Synchronizing with Sugar release cycle 10 minutes - set action items and agenda for next week. Corrections, comments, and additions welcome. Its an open meeting so anyone working on the project can join. Simon/erikos is especially invited :-) Thanks, Greg S ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Minutes of Power in 9.1.0 meeting
Hi Greg, * Chris to make some additions to requirement linking in the existing documentation, including what happens when the lid is closed. I believe Joe is waiting for Chris to update the requirements before he writes the test cases. I am waiting for the test cases so I can explain to people exactly how much longer the battery will last. I've added these new sections to the requirements (added to the end of the list in order to avoid renumbering the list). I also added a link to the most recent test plan we have for power management, which would be a fine model for the new one. http://wiki.laptop.org/go/Feature_roadmap/Improved_battery_life Thanks, - Chris. -- Chris Ball c...@laptop.org ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Minutes of Power in 9.1.0 meeting
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg Smith wrote: Comments and questions welcome. I think it would be good to clarify what the 9.1.0 plans are for #7958 (DCON shows old image with noise artifacts for the duration of suspend) and #8893 (image jumps vertically for a single frame during resume). These two tickets seem to have been confused on the Improve_battery_life page. - --Ben -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklJi68ACgkQUJT6e6HFtqSxFACfRos1S+/hlXUg63ta59EhyrOx c5EAn29HrPNZwQOec6wnUrQPSehu7MKA =S9+b -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Minutes of Power in 9.1.0 meeting
Hi, I think it would be good to clarify what the 9.1.0 plans are for #7958 (DCON shows old image with noise artifacts for the duration of suspend) and #8893 (image jumps vertically for a single frame during resume). These two tickets seem to have been confused on the Improve_battery_life page. Thanks. I have a feeling they're both caused by the same bug -- the kernel missing DCONLOAD at resume time. If they aren't, #8893 seems much more important than #7958 (which I don't recall seeing in the past few months) to me, so we'd start out with #8893 and move on to #7958 if it still exists and we get time. I've updated the wiki (Requirement 12 addressed by..) to say so. - Chris. -- Chris Ball c...@laptop.org ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Help runnning a script after Installing an activity from .xo
On Wed, Dec 17, 2008 at 12:31:31PM +0530, shivaprasad javali wrote: So I have to modify the /etc/sysconfig/modules/olpc-1.modules file so that I ask the XO to load the OSS module when it boots. Why when it boots? Why not when the activity starts? #!/usr/bin/python import os os.system(/bin/su -c 'modprobe snd-pcm-oss' root) Don't remove the module on termination, in case another activity needs it. Also, isn't there another way to cause the module to be loaded other than explicit loading? -- James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Minutes of Power in 9.1.0 meeting
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Ball wrote: Hi, I think it would be good to clarify what the 9.1.0 plans are for #7958 (DCON shows old image with noise artifacts for the duration of suspend) and #8893 (image jumps vertically for a single frame during resume). These two tickets seem to have been confused on the Improve_battery_life page. Thanks. I have a feeling they're both caused by the same bug -- the kernel missing DCONLOAD at resume time. I don't know much about the DCON, but this doesn't make sense to me. I thought DCONLOAD was only used at suspend time, not resume time. Having DCONLOAD fail or be skipped at suspend explains #7958, but for #8893 the correct image is shown during suspend, indicating that DCONLOAD succeeded. For #8893, the artifact is seen at resume time, and meshes perfectly with an explanation given to me by Ajax: the GPU is not genlocked to the DCON, so it starts displaying the frame at a totally random point in the refresh cycle, leading to the top of the image being somewhere in the middle of the screen. Ajax suggested that the software workaround would be to give the GPU a resolution of 1200x100 and then poll for the DCON's vertical-blanking-interval signal before making the switch. I am not clear as to whether this was implemented and then reverted, or never implemented. If they aren't, #8893 seems much more important than #7958 (which I don't recall seeing in the past few months) to me, so we'd start out with #8893 and move on to #7958 if it still exists and we get time. I've updated the wiki (Requirement 12 addressed by..) to say so. OK. I think your prioritization is reasonable, but #7958 definitely still exists. I've seen it recently. It's just very infrequent, and seemingly more frequent on some machines than others. I recall one user who brought in her G1G1 to our launch party at John Harvard's, showing #7958 on almost every suspend. Everybody keep your eyes open for a machine that gets weird noise on the screen during suspend. - --Ben -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklJk/sACgkQUJT6e6HFtqTYSQCfTlztXwiy4YI5cmOAoOgCRnuN 8K8AoKB8bA8itjzP6wp2t2tBgtk2VDx5 =KLyj -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Help runnning a script after Installing an activity from .xo
On 18.12.2008, at 00:51, qu...@laptop.org wrote: On Wed, Dec 17, 2008 at 12:31:31PM +0530, shivaprasad javali wrote: So I have to modify the /etc/sysconfig/modules/olpc-1.modules file so that I ask the XO to load the OSS module when it boots. Why when it boots? Why not when the activity starts? #!/usr/bin/python import os os.system(/bin/su -c 'modprobe snd-pcm-oss' root) An activity cannot become root. Activities do not run as user olpc. - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Help runnning a script after Installing an activity from .xo
2008/12/16 shivaprasad javali jbs...@gmail.com Hi, I am developing an activity for the XO. I have the .xo file ready to install but I still have one problem. After Installing the activity I need to make the XO run a script. I need to do this because the Application makes use of the OSS module to render sound which is not loaded by default on the XO. So I have to modify the /etc/sysconfig/modules/olpc-1.modules file so that I ask the XO to load the OSS module when it boots. As I understand it the .xo file is just a zip file and when you install it will just be unzipped and put in the proper location. So is there any way I can get it to run a script after installing and be in the super user mode when I run the script. I also need to run the script so that the proper localisation files suitable for the language of the XO to be copied to proper locations. I dont want to create a different .xo file for each language. I think this is beyond the .xo file system. For Colors! Wacom support (which is an optional component of the activity, in my case) I provide a link to an install script on the activity wiki page, and then along with the users, try to convince the OLPC guys to include my module in their builds :) -Wade ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Downloading Scratch project to XO
Hi Bert, John There is a bug in copy-from-journal, it is adding an additional dot before the file extension. Otherwise it is working. [o...@localhost ~]$ copy-from-journal -o 07474cf4-4883-4ded-a994-ab5511cfc29c /tmp/test.sb /home/olpc/.sugar/default/data/07474cf4-4883-4ded-a994-ab5511cfc29c - /tmp/test..sb My workaround in scratch-activity looks like this: if [ -n $object_id ] ; then filename=$SUGAR_ACTIVITY_ROOT/instance/temp.sb copy-from-journal -o $object_id $filename filename=$SUGAR_ACTIVITY_ROOT/instance/temp..sb else filename= fi # run Squeak VM with Scratch image exec /usr/bin/squeak \ -vm-display-X11 \ -swapbtn \ -sugarBundleId $bundle_id \ -sugarActivityId $activity_id \ ScratchXO.image \ $filename Philipp Bert Freudenberg wrote: The simplest would be something like if [ -n $object_id ] ; then filename=$SUGAR_ACTIVITY_ROOT/instance/temp.sb copy-from-journal -o $object_id $filename #... append $filename to Scratch command line ... fi (assuming the Scratch wrapper still basically looks like the Etoys one) - Bert - On 17.12.2008, at 00:51, John Maloney wrote: Hi, Bert. Thanks for the help on this. To clarify, what I was doing was using the clipboard to move a downloaded Scratch project file. I dragged it from the Journal to the clipboard, then went to the Scratch activity and dropped it onto the Scratch window. So that's a somewhat different path from trying to open the project directly in the Journal. It would be great to get both paths working eventually. Re: But this retrieval could be done in the Scratch wrapper script. Cool! That would be an easy solution for me if the wrapper script is not too complex. Could you give me a hint about what the wrapper script would look like? Meanwhile, I will try to make the drag-n-drop-from-clipboard solution work. -- John On Dec 16, 2008, at 6:35 PM, Bert Freudenberg wrote: Not quite, Sugar will not actually pass the file name of the Journal entry when launching the activity. Instead, it passes the id of a datastore object, and the activity is supposed to retrieve that from the datastore. But this retrieval could be done in the Scratch wrapper script. - Bert - On 17.12.2008, at 00:35, John Maloney wrote: Hi, Bert. Re: does Scratch accept a .sb file on its command line? Yes, it does. The problem is that the journal is changing the file extension to something like .bin, and Scratch doesn't think a .bin file is a Scratch project file and simply ignores it. I believe the issue is just that we need one extra file in the Scratch activity info to tells the Journal that Scratch handles the file extensions .sb and .sprite. I figured out what that file should have in it a few weeks back but haven't yet had a chance to try it. I'll give it a try and, if it works, I'll release a new version of Scratch on the XO that includes that file. -- John On Dec 15, 2008, at 2:46 PM, Bert Freudenberg wrote: John, does Scratch accept a .sb file on its command line? If so, the launcher script could get the file from the Journal and pass it on. - Bert - On 15.12.2008, at 18:53, John Maloney wrote: Hi, Phillipp. Thanks for reporting this problem. I believe there is a way to tell the XO to associate the .sb file extension with Scratch. I will look into that and let you know if I figure it out. -- John On Dec 14, 2008, at 8:03 PM, Philipp Kocher wrote: Hi I would like to download Scratch projects from a local server to the XO. On the server I added the following line to the file /etc/mime.types: application/scratch sb The apache server is now sending files with sb-extension with mime type application/scratch. On the XO the mime type gets stored in the datastore metadata-file. After adding the following line to the Scratch activity/ activity.info file, Scratch gets started when clicking on the Scratch project in the Journal: mime_types = application/scratch The problem is that the project doesn't get opened. The scratch start script bin/scratch-activity gets called with the -u argument holding a datastore object ID, but the script doesn't handle the -u argument. How can I convert a datastore object ID to a filename, so scratch can open the project? And how do I get the necessary permissions to access the file? Thanks, Philipp Pepyride School Cambodia ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Journal integration for Scratch
Hi John Do you plan a journal integration for scratch? At the moment it is not possible to delete scratch projects easily (just in terminal) and our students have difficulty to understand the file and folder structure in the dialog with the very small font. If you don't want to change the core application, there might be a workaround. 1. create a directory projects/journal 2. if scratch gets opened without a datastore reference, a default project (e.g. scratch_project) gets copied to projects/journal and opened. 3. if scratch gets opened with a datastore reference, the files gets copied (copy-from-journal) to the projects/journal directory and opened. 4. the name of the default project still has to be changed with save as 5. after quit the files in the directory projects/journal get copied to the journal (copy-to-journal) and deleted in projects/journal The scratch projects could be erased in the journal. What do you think? One more thing, the scratch icon is not shown in the journal for files with the scratch mimetype. I think the file /usr/share/sugar/data/mime.defaults has to be adapted to include the scratch-mimetype. Best regards, Philipp ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
[Server-devel] Exploding wireless interfaces on your laptop
I spent a good part of yesterday trying to diagnose why an active antenna was failing to work on my test mauhine. Not only it was failing, over time stranger and stranger messages would appear in dmesg, random strings, chunks of hex. The machine would get less and less stable, things would fail strangely. Ghosts. For a while I thought it was an incompatibility between the newer kernels from Fedora updates and the Libertas firmware. The Libertas driver devs have warned me about this risk. Or perhaps the AA hardware was fried (the lights didn't blink correctly...). Cosmic rays couldn't be discounted either. It was, however, something a lot more mundane. This test machine is a laptop, and sports its own wifi gear (centrino). Our device naming scheme for the pair of devices that the Libertas appears as is wlanN/mshN. However, the built-in card took over wlan0 and so the AA was wlan1/msh0. And some things would still talk to wlan0 as if it were a libertas. The trivial local workaround: blacklist the iwlagn driver so the machine forgets about it's internal card. For 0.6 we'll have to rename the wlanN side of the libertas to get it out of the way. Some conventional laptops do make good candidates for XS kit. back on ejabberd then, martin -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Collaboration unreliable 0.5
On Wed, Dec 17, 2008 at 12:55 PM, Martin Langhoff martin.langh...@gmail.com wrote: I'm trying to reproduce the problem. Any hints as to how long it takes for it to happen? What triggers laptops not seeing eachother? I'll keep trying stuff... but any hint... I just created a jabber login called anna-test via the webadmin interface and logged in via pidgin. I didn't see anyone online, though I logged out and logged back in repeatedly. My previously established login could see seven users online, which matched the online users according to webadmin. Only after I restarted the ejabberd service could the anna-test login see other users. This would explain why the issue seemed to resolve itself for us as the server matured. I know I've rebooted at some point, thus restarting ejabberd, after all my regular users were registered. Anna Schoolfield Birmingham ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Exploding wireless interfaces on your laptop
On Wed, 2008-12-17 at 11:12 -0200, Martin Langhoff wrote: It was, however, something a lot more mundane. This test machine is a laptop, and sports its own wifi gear (centrino). Our device naming scheme for the pair of devices that the Libertas appears as is wlanN/mshN. However, the built-in card took over wlan0 and so the AA was wlan1/msh0. And some things would still talk to wlan0 as if it were a libertas. The trivial local workaround: blacklist the iwlagn driver so the machine forgets about it's internal card. Or you could edit /etc/udev/rules.d/70-persistent-net.rules and rename the offending device to be something else, and rename/edit the ifcfg- file to match the new device name. Jerry ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Debugging tips for presence over Telepathy/Gabble?
Le mardi 16 décembre 2008 à 12:19 -0200, Martin Langhoff a écrit : Looking for Telepathy/Gabble hints... With the new ejabberd in 0.5 (2.0.1 + Collabora's patches) people have reported very unreliable Network View listings. The problem seems to be that everyone disappears after a short while, and if you leave it for a few hs, everyone reappears. The thread starting with this message has quite a bit of good info - including the fact that the problem is visible with standard xmpp clients too - http://lists.laptop.org/pipermail/server-devel/2008-December/002658.html I am starting to work on reproducing it here, with a small number of XOs. Haven't worked on this area before -- so I am looking for good hints on this from people who've been doing this lots ;-) env variables GABBLE_DEBUG=all and LM_DEBUG=net would give you debug info and XMPP stanzas exchanged. Few months ago I filled shared roster bug on ejabberd BTS. Maybe you are hitting one of these issue? https://support.process-one.net/browse/EJAB-730 https://support.process-one.net/browse/EJAB-731 https://support.process-one.net/browse/EJAB-732 G. ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Exploding wireless interfaces on your laptop
On Wed, Dec 17, 2008 at 6:03 PM, Martin Langhoff martin.langh...@gmail.com wrote: How do you debug this thing? Can you give me a hand? ;-) Right, so I've told udev to get into debug mode, and what it tells me is *very* interesting. When I plug in the antenna (which will trigger 2 device-add events) the first device works out alright... for the second one, the log looks like this udevd-event[4104]: run_program: '/lib/udev/mesh-namer' returned with status 0 udevd-event[4104]: match_rule: set ENV 'INTERFACE_NAME=wmesh0' udevd-event[4104]: udev_rules_get_name: rule applied, 'eth1' becomes 'wlan0' udevd-event[4104]: rename_netif: changing net interface name from 'eth1' to 'wlan0' there's some WTF-ery happening here. Our mesh-namer returns the name we want it to return - and it gets ignored...? cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] New xs-config and a 5.1-dev iso...
On Tue, Dec 16, 2008 at 12:08 PM, Martin Langhoff martin.langh...@gmail.com wrote: - A new iso candidate http://xs-dev.laptop.org/xs/other/?C=M;O=D That iso is taking several attempts to upload - I suspect the local ISP is throttling connections. This is what it fixes: http://dev.laptop.org/query?group=statusmilestone=xs-0.5.1 and I am working on the ejabberd issue. Are there any other showstoppers or serious annoyances with 0.5? (Other than the crashing Libertas driver if you run it on your laptop?) cheers, martin -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Collaboration unreliable 0.5
On Wed, Dec 17, 2008 at 5:25 PM, Anna ascho...@gmail.com wrote: I just created a jabber login called anna-test via the webadmin interface and logged in via pidgin. I didn't see anyone online, though I logged out and logged back in repeatedly. My previously established login could see seven users online, which matched the online users according to webadmin. Only after I restarted the ejabberd service could the anna-test login see other users. That looks like a bug Guillaume mentioned - https://support.process-one.net/browse/EJAB-731 This would explain why the issue seemed to resolve itself for us as the server matured. I know I've rebooted at some point, thus restarting ejabberd, after all my regular users were registered. That would make sense and seems to match the bug above. On the other hand, I started with a blank ejabberd mnesia DB, and registered 2 users and it just worked... Hmmm, I may have restarted it to enable debugging - will retest... cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
[Server-devel] Blog Integration Forewarded Workflow Simplification
What do you think about the moodle Elgg integration? Is that too much extra baggage for the OLPC project, or could it be a nice solution for blog integration? I'm not sure how we are going to be able to tackle some of your more ambitious moodle modifications (such as blog integration) working upstream without absolute support of the moodle developers. -- Forwarded message -- From: Lucas Wojciehcowski msa.swim...@gmail.com Date: Tue, Dec 16, 2008 at 1:52 PM Subject: Re: [PATCH] Workflow Simplification To: Martin Langhoff martin.langh...@gmail.com 2) I understand what you're saying. I think this code change will only effect students. 3) Ok, I can make that little change, although I don't think it would throw an error... PHP is soft typed... I don't think I tested it without a value set. I was thinking that I would be able to get the configuration file from the users computer with the XO colors, and parse that file through javascript. From there, I'm not sure if it would be more efficient to simply call from a library of all possible color combinations or generate the images with a some sort of svg render. On Tue, Dec 16, 2008 at 7:34 AM, Martin Langhoff martin.langh...@gmail.comwrote: Hi - I've been a bit snowed under :-) some notes... On Sat, Dec 13, 2008 at 2:16 PM, Lucas Wojciehcowski msa.swim...@gmail.com wrote: 1) This does NOT happen before the page loads. Unfortunately I can't use PHP to redirect the user gracefully... The place were it makes sense to put the redirection is after the page begins to load. The redirect() function is built into moodle, and uses javascript. I would feel more comfortable using the php header to do an immediate server-side redirect, but I would rather leave the program flow intact. Hmmm, ok. 2) This does not redirect admins, only users. I know, but we won't have admins - there's an admin acct that exists, but nobody uses it. No access to it. Instead, the teachers in the school get a role that is a slightly customised course creator. 3) Do you want me to work upstream? I'm sure I can figure out how to add a configuration variable and submit a more polished patch by tonight. I just ran in sub 20 degree wind, and my hands don't have enough dexterity to code! No - just checking for the option is ok, but we do have to get the code in shape for eventual inclusion upstream. In your revised patch, youcheck for the variable in a way that will make PHP throw a warning if the value is not initialised. In Moodle we generally do if (!empty($CFG-foo)) { // does not throw warning instead of if ($CFG-foo) { // Warning: undefined value 4) I saw those pages, and can't wait to tackle some more of those problems. One little superficial feature I think would be nice to add is having the user's avatars reflect their XO colors. That would not be too hard to do with a little bit of javascript. I'm really excited by the idea working with the XO web apps. Cool - in terms of the XO colours, how would you do that? (I have an overly complex plan, will take a while to get it done...) cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
[Server-devel] stability of XS 0.5
Given that we still have issues cropping up with XS 0.5, are we still going to call it stable? Sameer -- Dr. Sameer Verma, Ph.D. Associate Professor of Information Systems San Francisco State University San Francisco CA 94132 USA http://verma.sfsu.edu/ http://opensource.sfsu.edu/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel