In gconf-based Sugar, how do I read config values (nickname, etc)...
from bash / commandline scripts that may not be executing in the user session. For example - olpc-netstatus may be invoked from a VT running as root - ds-backup scripts are invoked from from cron 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] In gconf-based Sugar, how do I read config values (nickname, etc)...
On Tue, Nov 3, 2009 at 09:55, Martin Langhoff martin.langh...@gmail.com wrote: from bash / commandline scripts that may not be executing in the user session. For example - olpc-netstatus may be invoked from a VT running as root - ds-backup scripts are invoked from from cron If it's only for reading, I think the following should work: gconftool-2 --direct --config-source=xml:readwrite:$HOME/.gconf -g key Regards, Tomeu -- «Sugar Labs is anyone who participates in improving and using Sugar. What Sugar Labs does is determined by the participants.» - David Farning ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] In gconf-based Sugar, how do I read config values (nickname, etc)...
On Tue, Nov 3, 2009 at 11:15 AM, Tomeu Vizoso to...@sugarlabs.org wrote: If it's only for reading, I think the following should work: gconftool-2 --direct --config-source=xml:readwrite:$HOME/.gconf -g key Excellent - thanks! 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] In gconf-based Sugar, how do I read config values (nickname, etc)...
I used this as root: su -c gconftool-2 --get /desktop/sugar/user/nick olpc -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
On Sugar 0.84 - status of the Chat/collab leader issue...
We have had major issues for a while with any collaboration where the leader (the node that created the collaboration instance) goes away. In Sugar 0.82 all sorts of confusion ensues, with the exact symptoms varying between the programs used. Is this expected to be fixed in 0.84 or 0.86? In looking at interaction with the XS, I am testing various aspects of collaboration... I don't want to pester people with things that are known not to work (and to require major engineering!). 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: OFW Q3A15
Mitch, Does q3a15 automatically throttle the processor in case of overheating? If so, is there a way to check if it is working? cat /proc/cpuinfo maybe? Thanks! On Fri, Oct 30, 2009 at 6:52 AM, Mitch Bradley w...@laptop.org wrote: http://wiki.laptop.org/go/OLPC_Firmware_q3a15 Lots of good stuff. Please help me test it! My trac tickets are at http://dev.laptop.org/report/41 . If you click on the Action Needed column, the test in release tickets will collate together. Those tickets are ostensibly fixed in q3a15. It would be good to verify those, especially if you have already participated in the ticket. Don't limit yourself to testing just those fixes, though. I need to know about any regressions or anything else that doesn't work right. We are getting close to the end game for XO-1.5 shipment, so now is the time to find problems. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Ing. Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 5773 int.: 213 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
We can set a new baseline for Sugar, but the behavior you are describing is largely one determined by the activities themselves. This was the subject of Ben Schwartz's GSoC project. He made great headway, but there remains the problem that most activities are not utilizing his approach. Something else to discuss in Bolzano. (I am thinking we should have a day dedicated to bringing activities up to 0.86 standards.) -walter On Tue, Nov 3, 2009 at 6:32 AM, Martin Langhoff martin.langh...@gmail.com wrote: We have had major issues for a while with any collaboration where the leader (the node that created the collaboration instance) goes away. In Sugar 0.82 all sorts of confusion ensues, with the exact symptoms varying between the programs used. Is this expected to be fixed in 0.84 or 0.86? In looking at interaction with the XS, I am testing various aspects of collaboration... I don't want to pester people with things that are known not to work (and to require major engineering!). 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 ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
On Tue, Nov 3, 2009 at 2:11 PM, Walter Bender walter.ben...@gmail.com wrote: We can set a new baseline for Sugar, but the behavior you are describing is largely one determined by the activities themselves. I understood it was a limitation in Telepathy itself, or in how Sugar uses it (hence the need to address it in Sugar or in the Sugar Stack. Either way, I read in your reply that I shouldn't have hopes for it. Understood - thanks! 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
Hi Martin, On 3 Nov 2009, at 13:18, Martin Langhoff wrote: On Tue, Nov 3, 2009 at 2:11 PM, Walter Bender walter.ben...@gmail.com wrote: We can set a new baseline for Sugar, but the behavior you are describing is largely one determined by the activities themselves. I understood it was a limitation in Telepathy itself, or in how Sugar uses it (hence the need to address it in Sugar or in the Sugar Stack. Fairly sure this is not a limitation in Telepathy/Sugar. The only activity I'm aware of using a hub and spoke topology is Write, and I believe a recent AbiWord release has improved the collaboration code so that allows a re-election of a new hub, of the original goes away (also supports text colour highlighting for different users) – very keen to see this land in an image and give it a test. Other activities that support some form of collaboration like Chat, Browse, Etoys, TurtleArt, Arithmetic, Maze, Pippy, etc, etc, don't care who started the activity first, or who goes away. Regards, --Gary Either way, I read in your reply that I shouldn't have hopes for it. Understood - thanks! 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 ___ 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: First semi-version of Simple Digital Library Index
SDLI can run two ways: 1. A content team uses the app as a normal desktop java app and exports it all 2. The content team just puts together the folder contents (e.g. PDFs, media, etc) and then SDLI runs on the XS from the command line to generate the browsing pages / indexes etc. Also the XS can simply have an apache config that points to the directory where the SDLI export lives... then plain vanilla apache can serve it. The problems that I wanted to solve were: 1. Making library creation fast and simple - existing systems just needed too much time for meta data arrangement etc. 2. In a limited connectivity environment how do we serve content quickly and efficiently to schools? Infoslicer grabs info. SDLI arranges large quantities of information in a way that can be browsed, searched, etc (e.g. you could use infoslicer to grab multiple bits, categorize them, and then use SDLI to make an index) We use webdump (a open source app we programmed based on httrack) to grab websites and package them into a format suitable for offline use. Regards, -Mike 2009/11/2 Martin Langhoff martin.langh...@gmail.com: On Sun, Nov 1, 2009 at 8:21 PM, Mike Dawson mikeofmanches...@gmail.com wrote: Finally made a first version of Simple Digital Library Index that we have designed here to make libraries easier in limited connectivity scenarios: Good to hear it is progressing! How would the workflow be? I imagine something like... 1 - A content team puts together their own library based on SDLI. How does this work? Is SDLI running on a local server? 2 - The team exports their library... a version? snapshot? the items marked as QA'd? 3 - The exported library is installed / updated on the XS 4 - The XS serves it (maybe with added smarts such as a search system...)? The XS can embed it in Moodle courses? 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
On Tue, Nov 3, 2009 at 2:41 PM, Gary C Martin g...@garycmartin.com wrote: Other activities that support some form of collaboration like Chat, Browse, Etoys, TurtleArt, Arithmetic, Maze, Pippy, etc, etc, don't care who started the activity first, or who goes away. Are you positive about this? I don't meant to troll -- but I am seeing issues (with Chat for example) where if the leader goes, 3rd parties cannot join anymore. It may be due to a problem somewhere, or it may be that it's just not supported. If it's expected to work, part of the supported Sugar featureset -- I'll follow it through. If it's not supposed to work, I'll stress about something else ;-) 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: First semi-version of Simple Digital Library Index
On Tue, Nov 3, 2009 at 2:58 PM, Mike Dawson mikeofmanches...@gmail.com wrote: 1. A content team uses the app as a normal desktop java app and exports it all Tell me more about this model. The content team is going to be preparing content for 5 000 XSs, each in one of 5 000 schools. Some of those schools have a very limited, unreliable internet connection. Others have no internet connection. 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Backup and Recovery
On Tue, Nov 3, 2009 at 3:01 PM, Hamilton Chua hamilton.c...@gmail.com wrote: Thanks for the confirmation. I am in the process of debugging. The only change that made it get that far was to the journalentrybundle.py file. Ok - that sounds like the right place to be hacking in ;-) Adding the get_bundle_id def (it just returns None btw) allowed it to go a step further and unzip the backup file. But get_bundle_id is a method that returns the id as defined in the metadata. Maybe that should come from an inherited class? We definitely need the eyes of someone who understands that code (Tomeu?) However, please see the new error I am getting below. It deflates the backup file but right after that it errors out complaining about a missing __zip_file. I noticed that it assumes the files extracted from the backup data is an ActivityBundle. Is that correct ? No idea -- I am not familiar with the code that appears in the stacktrace... I'm tempted to just upgrade sugar to 0.86 but there might be those still using strawberry who are reluctant to upgrade but would like to get backup and restore working for strawberry, so finding exactly what to change/fix on strawberry might be useful. Definitely useful -- as I need this to work on 0.84 for the new F11-based builds! cheers, m Archive: /home/liveuser/.sugar/default/data/8419a696-5a24-4595-aeda-7488e72605fa inflating: /tmp/83366588-d84b-4f00-acc1-3e5f32525540/83366588-d84b-4f00-acc1-3e5f32525540 inflating: /tmp/83366588-d84b-4f00-acc1-3e5f32525540/_metadata.json caution: excluded filename not matched: mimetype sugar.bundle.activitybundle.ActivityBundle object at 0x9e7ad6c Traceback (most recent call last): File /usr/lib/python2.6/site-packages/dbus/connection.py, line 214, in maybe_handle_message self._handler(*args, **kwargs) File /usr/lib/python2.6/site-packages/jarabe/journal/model.py, line 377, in _datastore_updated_cb updated.send(None, object_id=object_id) File /usr/lib/python2.6/site-packages/sugar/dispatch/dispatcher.py, line 125, in send response = receiver(signal=self, sender=sender, **named) File /usr/lib/python2.6/site-packages/jarabe/journal/journalactivity.py, line 250, in __model_updated_cb self._check_for_bundle(kwargs['object_id']) File /usr/lib/python2.6/site-packages/jarabe/journal/journalactivity.py, line 283, in _check_for_bundle registry.install(bundle) File /usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py, line 344, in install elif not self.add_bundle(install_path): File /usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py, line 194, in add_bundle bundle = self._add_bundle(bundle_path) File /usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py, line 208, in _add_bundle bundle = ActivityBundle(bundle_path) File /usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py, line 51, in __init__ Bundle.__init__(self, path) File /usr/lib/python2.6/site-packages/sugar/bundle/bundle.py, line 65, in __init__ if os.path.isdir(self._path): File /usr/lib/python2.6/genericpath.py, line 41, in isdir st = os.stat(s) TypeError: coercing to Unicode: need string or buffer, NoneType found Exception AttributeError: 'ActivityBundle' object has no attribute '_zip_file' in bound method ActivityBundle.__del__ of sugar.bundle.activitybundle.Acti vityBundle object at 0x9e7ad6c ignored * On Mon, 2009-11-02 at 16:47 +0100, Martin Langhoff wrote: On Mon, Nov 2, 2009 at 4:43 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I have backported the changes to the strawberry release and restore seems to be working now. Good to hear you've narrowed it down. I'll probably have to apply similar patches on the OLPC F11 Sugar :-) 4) Browse downloads the file and puts it in the Journal 5) I click Show in Journal 6) I see the Activity+Backup file details. 7) Click back to journal That's weird. On the 8.2.1 XO OS release, the process is skips step 67. The downloading message in Browse.xo does mention Activity+Backup (I tweaked the apparent filename that browse downloads to get that msg), but after that the Journal has only added the entry you want. Is the above how more or less restore should work or behave ? I was sort of expecting the Activity+Backup file to be replaced by the restored data in the Journal. Your expectations are right, and I think you are seeing another bug in the Browse.xo - Journal interop. 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-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
Martin Langhoff wrote: On Tue, Nov 3, 2009 at 2:41 PM, Gary C Martin g...@garycmartin.com wrote: Other activities that support some form of collaboration like Chat, Browse, Etoys, TurtleArt, Arithmetic, Maze, Pippy, etc, etc, don't care who started the activity first, or who goes away. Are you positive about this? I don't meant to troll -- but I am seeing issues (with Chat for example) where if the leader goes, 3rd parties cannot join anymore. That is remarkable, and worth investigating. The Chat activity in particular is designed to survive loss of the initiator, and has been since the very first release. One related issue is http://bugs.sugarlabs.org/ticket/934 . Once the initiator leaves, the initiator can no longer re-join due to an issue in the GUI. That bug contains a patch, but it's unclear to me whether that patch was ever applied. Maybe Tomeu can clarify the situation. --Ben signature.asc Description: OpenPGP digital signature ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: OFW Q3A15
If you think you might be having troubles with overheating on your XO-1.5, the heat spreader is suspect. After removal (to change the SD, check out the motherboard, etc) and sometimes even before then, the heat spreader doesn't make good contact with the VX855 and the CPU. I suggest bending the feet of the heat spreader slightly, as shown in the attached diagram, to apply more force on the processor/cpu. This is being worked on in C build prototypes. Cheers, wad On Nov 3, 2009, at 7:56 AM, Emiliano Pastorino wrote: Mitch, Does q3a15 automatically throttle the processor in case of overheating? If so, is there a way to check if it is working? cat /proc/cpuinfo maybe? Thanks! On Fri, Oct 30, 2009 at 6:52 AM, Mitch Bradley w...@laptop.org wrote: http://wiki.laptop.org/go/OLPC_Firmware_q3a15 Lots of good stuff. Please help me test it! My trac tickets are at http://dev.laptop.org/report/41 . If you click on the Action Needed column, the test in release tickets will collate together. Those tickets are ostensibly fixed in q3a15. It would be good to verify those, especially if you have already participated in the ticket. Don't limit yourself to testing just those fixes, though. I need to know about any regressions or anything else that doesn't work right. We are getting close to the end game for XO-1.5 shipment, so now is the time to find problems. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel HeatSpreader.pdf Description: Adobe PDF document ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: restarting public_rpms machinery
Hi Dan, Hi Chris, I'd like to restart the public_rpms machinery to clean up the hacky ~user/xo1.5-rpms system (since it looks like it is soon to be used by me, Sayamindu and now Martin, plus we should not exclude others). Sounds good. Do you know how that system worked? xs-dev:~cscott/private_git/collect-pkgs.py performed the rsyncs and changelog parsing. I put some notes at http://dev.laptop.org/ticket/9594 but I need access to xs-dev to finish investigating and get things running again. Can you add a user account for me? Should be done now. Thanks, - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
On Tue, Nov 3, 2009 at 15:07, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: Martin Langhoff wrote: On Tue, Nov 3, 2009 at 2:41 PM, Gary C Martin g...@garycmartin.com wrote: Other activities that support some form of collaboration like Chat, Browse, Etoys, TurtleArt, Arithmetic, Maze, Pippy, etc, etc, don't care who started the activity first, or who goes away. Are you positive about this? I don't meant to troll -- but I am seeing issues (with Chat for example) where if the leader goes, 3rd parties cannot join anymore. That is remarkable, and worth investigating. The Chat activity in particular is designed to survive loss of the initiator, and has been since the very first release. One related issue is http://bugs.sugarlabs.org/ticket/934 . Once the initiator leaves, the initiator can no longer re-join due to an issue in the GUI. That bug contains a patch, but it's unclear to me whether that patch was ever applied. Maybe Tomeu can clarify the situation. It wasn't applied because without nobody else giving it a look and doing some testing it was too risky. It's not too late to make a new bugfix release that is shipped in SoaS2 or even in 0.84 on F11 on XO-1. Regards, Tomeu -- «Sugar Labs is anyone who participates in improving and using Sugar. What Sugar Labs does is determined by the participants.» - David Farning ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
XO-2 canceled, replaced by XO-1.75 and XO-3.0
The ever entertaining Prof. Negroponte surpasses all expectations in his latest performance: http://www.xconomy.com/boston/2009/11/02/negroponte-outlines-the-future-of-olpc-hints-at-paperlike-design-for-third-generation-laptop/ The usual OLPCNews analysis at http://www.olpcnews.com/people/negroponte/negroponte_xo-175_goes_arm_xo-2_is_cancelled.html --Ben signature.asc Description: OpenPGP digital signature ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: OFW Q3A15
Emiliano Pastorino wrote: Mitch, Does q3a15 automatically throttle the processor in case of overheating? Yes If so, is there a way to check if it is working? cat /proc/cpuinfo maybe? Here is a test you can do with Open Firmware: ok show-temperature (cr many That command runs the CPU in full-on C0 state - no halts or other power-saving states - and displays the temperature. If you have no heat spreader, the temperature will soon rise to 100 degrees C, and then the throttling will start, maintaining the temperature between 95 and 100 degrees. With the heat spreader, the temperature should stay much lower, never reaching the 100 degree throttle point. In my current setup with the plastic back off, the board with the heat-spreader goes up to about 45 degrees. There is a way to check the temperature under Linux. It involves the lmsensors package, but I don't know the exact details. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Terminal.xo patch: do not die if the cwd is gone
Attached is a trivial patch that handles gracefully the situation where cwd does not exist anymore or is no longer accessible to the olpc user. Without it, - mount a usb disk - open Terminal.xo, change directory to /media/my-usb-disk/ - close Terminal.xo - unmount / remove usb disk - try to open Terminal.xo = fails to start 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 fix_cwd_restore.patch Description: Binary data ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] XO-2 canceled, replaced by XO-1.75 and XO-3.0
Well, at least that gets the journalists off our backs and chasing a wild goose, so we can focus on getting XO-1.5 (and in my case XS 0.7 work) done... :-) cheers, m On Tue, Nov 3, 2009 at 4:51 PM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: The ever entertaining Prof. Negroponte surpasses all expectations in his latest performance: http://www.xconomy.com/boston/2009/11/02/negroponte-outlines-the-future-of-olpc-hints-at-paperlike-design-for-third-generation-laptop/ The usual OLPCNews analysis at http://www.olpcnews.com/people/negroponte/negroponte_xo-175_goes_arm_xo-2_is_cancelled.html --Ben ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: OFW Q3A15
There is a way to check the temperature under Linux. It involves the lmsensors package, but I don't know the exact details. Yes, that's what I've been using. The package is lm_sensors, if installed, you just have to type sensors and you get the temperature in ºC. I've already checked that temperature never goes beyond 100ºC, so it is working. But how does it work? Is it just underclocking? I've checked /proc/cpuinfo, but clock is always at ~1GHz -- Ing. Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 5773 int.: 213 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] XO-2 canceled, replaced by XO-1.75 and XO-3.0
creates lots of work for me clarifying geese, ganders and goslings for journalists you mean ;-) Sean On Tue, Nov 3, 2009 at 5:34 PM, Martin Langhoff martin.langh...@gmail.com wrote: Well, at least that gets the journalists off our backs and chasing a wild goose, so we can focus on getting XO-1.5 (and in my case XS 0.7 work) done... :-) cheers, m On Tue, Nov 3, 2009 at 4:51 PM, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: The ever entertaining Prof. Negroponte surpasses all expectations in his latest performance: http://www.xconomy.com/boston/2009/11/02/negroponte-outlines-the-future-of-olpc-hints-at-paperlike-design-for-third-generation-laptop/ The usual OLPCNews analysis at http://www.olpcnews.com/people/negroponte/negroponte_xo-175_goes_arm_xo-2_is_cancelled.html --Ben ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- 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 ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
public_rpms system for F11 builds
Hi, I've revived the old public_rpms system for the new F11 builds. For anyone that doesn't know, this is a way of making custom RPMs available for OLPC OS builds. Normally, RPMs come from regular Fedora repositories, but this system allows us to throw in RPMs from other sources. We aim to keep our delta from Fedora as small as possible, so this system should only ever see light use. Please question yourself thoroughly before adding a package to this system... (examples of what we put here: important OLPC-specific packages which can't be included in Fedora, OLPC's fork of the unmaintained Sugar-0.84, the OLPC kernel) There are 3 repos: 1. f11 - RPMs to be available to both F11-for-XO1 and F11-for-1.5 builds 2. f11-xo1.5 - RPMs for the XO-1.5 build (not for XO-1) 3. f11-xo1 - RPMs for the XO-1 build (not for XO-1.5) Any dev.laptop.org user can use this -- simply put RPM packages in ~/public_rpms/reponame e.g. I would put things in /home/dsd/public_rpms/f11 The f11-xo1 and f11-xo1.5 repos should only be used sparingly, since we want to be sharing as much as possible between the 2 builds. (the only reason for creating these 2 is because each XO HW version needs a different kernel) They are collected and turned into a single flat repository every 30 minutes here: http://xs-dev.laptop.org/~dsd/repos/ Packages you put here won't be *included* in the build unless they are listed in the fedora-xo build scripts (or unless they are a dependency of something listed there). What I'll be working on next: 1. I'll make the kernel autobuild scripts put the kernel packages here 2. I'll make it so that if you put a package here, this package will be automatically excluded from the F11 repositories during the OS build so that the F11 packages won't kick out the OLPC ones when version numbers get higher. 3. I'll work on making sure that the yum configuration (these repos and excludes) present on the system at the end of the build exactly matches the one used during the build. Daniel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Terminal.xo patch: do not die if the cwd is gone
Thanks! This is SL bug #1483 - I was planning to fix it in my next round of Terminal updates. BTW you can work around this issue by opening a new tab. On Tue, Nov 3, 2009 at 11:04 AM, Martin Langhoff martin.langh...@gmail.com wrote: Attached is a trivial patch that handles gracefully the situation where cwd does not exist anymore or is no longer accessible to the olpc user. Without it, - mount a usb disk - open Terminal.xo, change directory to /media/my-usb-disk/ - close Terminal.xo - unmount / remove usb disk - try to open Terminal.xo = fails to start 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 ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Emacs love and window sizing
The good news for emacs lovers is that yum install emacs works almost ok out of the box. With some glitches -- mischievously designed by the vim cabal that festers around OLPC... ;-) - You do need to apply this patch: http://lists.sugarlabs.org/archive/sugar-devel/2009-August/017918.html - The default font is huge - this is something I can probably tame from .emacs - Emacs gets its window size wrong -- and the status bar is not and command buffer are not completely visible. I am not sure how to give emacs or the wm the right window size. Hints? The font and window sizing issues go away if you run console emacs using DISPLAY= emacs /path/to/file which is a bit of a wonky workaround, but gets the job 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Terminal.xo patch: do not die if the cwd is gone
On Tue, Nov 3, 2009 at 11:04 AM, Martin Langhoff martin.langh...@gmail.com wrote: Attached is a trivial patch that handles gracefully the situation where cwd does not exist anymore or is no longer accessible to the olpc user. frankly, i think the whole state-saving notion in Terminal (and other terminal emulators i've seen) is flawed, and a bad idea, for exactly this sort of reason. shell sessions are _not_ restartable without far more work than is being done now: enviroment variables are lost, background jobs are lost, aliases are gone, mount points are different, etc etc. unlike the relatively closed application environment that most activities live in, a terminal shell has the whole system as its current state. far better to not pretend to be restoring something which cannot be done -- the current behavior gives a very misleading impression of how shells work. if one wants to preserve state, the solution is obvious: don't kill Terminal in the first place -- just switch away from it. (i understand the desire for restoring scrollback -- that's useful history. but i think the old text should be greyed out, and/or there should be a big *End of previous session scrollback* message separating it from the new text.and current directory should not be restored.) paul Without it, - mount a usb disk - open Terminal.xo, change directory to /media/my-usb-disk/ - close Terminal.xo - unmount / remove usb disk - try to open Terminal.xo = fails to start cheers, m -- =- paul fox, pgf at laptop.org ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: public_rpms system for F11 builds
On Tue, Nov 3, 2009 at 10:28 PM, Daniel Drake d...@laptop.org wrote: Hi, I've revived the old public_rpms system for the new F11 builds. For anyone that doesn't know, this is a way of making custom RPMs available for OLPC OS builds. Normally, RPMs come from regular Fedora repositories, but this system allows us to throw in RPMs from other sources. We aim to keep our delta from Fedora as small as possible, so this system should only ever see light use. Please question yourself thoroughly before adding a package to this system... (examples of what we put here: important OLPC-specific packages which can't be included in Fedora, OLPC's fork of the unmaintained Sugar-0.84, the OLPC kernel) There are 3 repos: 1. f11 - RPMs to be available to both F11-for-XO1 and F11-for-1.5 builds 2. f11-xo1.5 - RPMs for the XO-1.5 build (not for XO-1) 3. f11-xo1 - RPMs for the XO-1 build (not for XO-1.5) Another possible use-case is to quickly test a new package before pushing it in Fedora's bodhi system which includes it in the official F-11 update stream (I use this method for large/tricky changes in olpc-utils) Thanks, Sayamindu -- Sayamindu Dasgupta [http://sayamindu.randomink.org/ramblings] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Terminal.xo patch: do not die if the cwd is gone
On Tue, Nov 3, 2009 at 6:08 PM, paul fox p...@laptop.org wrote: frankly, i think the whole state-saving notion in Terminal (and other terminal emulators i've seen) is flawed, and a bad idea, for I agree. The patch above is merely an attempt at fixing a OMG! Can't use my Terminal! moment. Happy to help fix my work environment where possible ;-) if one wants to preserve state, the solution is obvious: ... use GNU Screen! :-) -- now that would be something: GNU Screen integrated with xterm. 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Terminal.xo patch: do not die if the cwd is gone
Martin Langhoff wrote: use GNU Screen! :-) -- now that would be something: GNU Screen integrated with xterm. Not to toot my own horn, but GNU Screen + OpenSSH + Terminal.xo = ShareTerm : http://lists.sugarlabs.org/archive/sugar-devel/2009-May/014165.html Doesn't help you with persistence, though, unless you really want to leave Screen running forever. --Ben signature.asc Description: OpenPGP digital signature ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: OFW Q3A15
Rafael Ortiz On Tue, Nov 3, 2009 at 10:54 AM, Mitch Bradley w...@laptop.org wrote: Emiliano Pastorino wrote: Mitch, Does q3a15 automatically throttle the processor in case of overheating? Yes If so, is there a way to check if it is working? cat /proc/cpuinfo maybe? Here is a test you can do with Open Firmware: ok show-temperature (cr many That command runs the CPU in full-on C0 state - no halts or other power-saving states - and displays the temperature. If you have no heat spreader, the temperature will soon rise to 100 degrees C, and then the throttling will start, maintaining the temperature between 95 and 100 degrees. With the heat spreader, the temperature should stay much lower, never reaching the 100 degree throttle point. In my current setup with the plastic back off, the board with the heat-spreader goes up to about 45 degrees. Testing with the back plastic on temperature could go to 90, running ok show-temperature (cr many for an hour or more, lets hope the new heat spreader design can lower that threshold. There is a way to check the temperature under Linux. It involves the lmsensors package, but I don't know the exact details. ___ 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: OFW Q3A15
Emiliano Pastorino wrote: There is a way to check the temperature under Linux. It involves the lmsensors package, but I don't know the exact details. Yes, that's what I've been using. The package is lm_sensors, if installed, you just have to type sensors and you get the temperature in ºC. I've already checked that temperature never goes beyond 100ºC, so it is working. But how does it work? Is it just underclocking? The CPU changes the clock ratio dynamically when the temperature gets too high. I've checked /proc/cpuinfo, but clock is always at ~1GHz I don't know the details of how /proc/cpuinfo gets the clock information. You can see the clock transitions in Open Firmware as follows: ok 198 .msr show-temperature (cr many In the unthrottled case, the MSR value will be 04060a06.04000a06. In the throttled case it will be 04060a06.040c0406. The fields in that value are AABBCCDD.EEFFGGHH, where AA is the lowest supported clock ratio BB is the lowest supported voltage CC is the highest supported clock ratio DD is the highest supported voltage EE is the lowest configured clock ratio FF contains status bits GG is the current clock ratio HH is the current voltage All of the voltage fields are 06, which means that the voltage doesn't change. The minimum clock ratio is 04, meaning 400 MHz, the maximum is 0a (decimal 10) meaning 1 GHz. The GG field is normally 0a - full speed - but changes to 04 briefly when the processor throttles back to drop the temperature from 100 to 95. The FF status field changes from 00 to 0c when throttling is in process. It is possible that /proc/cpuinfo is reporting the correct information, but the throttling happens too briefly to notice the change. The CPU runs at full speed until the temperature reaches 100, then it drops back to 400 MHz, but very quickly resumes full speed operation when the temperature drops to 95. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] On Sugar 0.84 - status of the Chat/collab leader issue...
Hey, I mentioned this to Walter on IRC the other day, but I'd very much like to participate in anything telepathy based, especially, maybe moving to mission control 5 and letting go of the admittedly antiquated sugar presence now, I do need some guidance though, as I am by no means a python guru, though I've really digested telepathy and have a pretty good feeling for the dbus bindings it has, as well as the way D-tubes work. I didnt realise the power of having basically networked dbus until I really got the d-tubes. It even lends a great deal of power to things like LTSP, by being able to remotely control rudimentary elements that are otherwise quite difficult (remote volume control, rmote power off, remote switch users, remote control of many kinds... I could imagine almost a remote dashboard... much like italc, but with more power. and able to do things I havent even thought about yet I know its exciting stuff though I dont thnink I'll be able to make it to Bolzano, but I understand there will be a strong remote presences... so I'd be happy to help out in that area, kind regards, David Van Assche On Tue, Nov 3, 2009 at 4:30 PM, Tomeu Vizoso to...@sugarlabs.org wrote: On Tue, Nov 3, 2009 at 15:07, Benjamin M. Schwartz bmsch...@fas.harvard.edu wrote: Martin Langhoff wrote: On Tue, Nov 3, 2009 at 2:41 PM, Gary C Martin g...@garycmartin.com wrote: Other activities that support some form of collaboration like Chat, Browse, Etoys, TurtleArt, Arithmetic, Maze, Pippy, etc, etc, don't care who started the activity first, or who goes away. Are you positive about this? I don't meant to troll -- but I am seeing issues (with Chat for example) where if the leader goes, 3rd parties cannot join anymore. That is remarkable, and worth investigating. The Chat activity in particular is designed to survive loss of the initiator, and has been since the very first release. One related issue is http://bugs.sugarlabs.org/ticket/934 . Once the initiator leaves, the initiator can no longer re-join due to an issue in the GUI. That bug contains a patch, but it's unclear to me whether that patch was ever applied. Maybe Tomeu can clarify the situation. It wasn't applied because without nobody else giving it a look and doing some testing it was too risky. It's not too late to make a new bugfix release that is shipped in SoaS2 or even in 0.84 on F11 on XO-1. Regards, Tomeu -- «Sugar Labs is anyone who participates in improving and using Sugar. What Sugar Labs does is determined by the participants.» - David Farning ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Samuel Goldwyn - I'm willing to admit that I may not always be right, but I am never wrong. - http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: XO-2 canceled, replaced by XO-1.75 and XO-3.0
Damn. I'm always the last to know On Nov 3, 2009, at 10:51 AM, Benjamin M. Schwartz wrote: The ever entertaining Prof. Negroponte surpasses all expectations in his latest performance: http://www.xconomy.com/boston/2009/11/02/negroponte-outlines-the- future-of-olpc-hints-at-paperlike-design-for-third-generation-laptop/ The usual OLPCNews analysis at http://www.olpcnews.com/people/negroponte/ negroponte_xo-175_goes_arm_xo-2_is_cancelled.html --Ben ___ 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: [Server-devel] Backup and Recovery
Martin, Thanks for the confirmation. I am in the process of debugging. The only change that made it get that far was to the journalentrybundle.py file. Adding the get_bundle_id def (it just returns None btw) allowed it to go a step further and unzip the backup file. However, please see the new error I am getting below. It deflates the backup file but right after that it errors out complaining about a missing __zip_file. I noticed that it assumes the files extracted from the backup data is an ActivityBundle. Is that correct ? I'm tempted to just upgrade sugar to 0.86 but there might be those still using strawberry who are reluctant to upgrade but would like to get backup and restore working for strawberry, so finding exactly what to change/fix on strawberry might be useful. * Archive: /home/liveuser/.sugar/default/data/8419a696-5a24-4595-aeda-7488e72605fa inflating: /tmp/83366588-d84b-4f00-acc1-3e5f32525540/83366588-d84b-4f00-acc1-3e5f32525540 inflating: /tmp/83366588-d84b-4f00-acc1-3e5f32525540/_metadata.json caution: excluded filename not matched: mimetype sugar.bundle.activitybundle.ActivityBundle object at 0x9e7ad6c Traceback (most recent call last): File /usr/lib/python2.6/site-packages/dbus/connection.py, line 214, in maybe_handle_message self._handler(*args, **kwargs) File /usr/lib/python2.6/site-packages/jarabe/journal/model.py, line 377, in _datastore_updated_cb updated.send(None, object_id=object_id) File /usr/lib/python2.6/site-packages/sugar/dispatch/dispatcher.py, line 125, in send response = receiver(signal=self, sender=sender, **named) File /usr/lib/python2.6/site-packages/jarabe/journal/journalactivity.py, line 250, in __model_updated_cb self._check_for_bundle(kwargs['object_id']) File /usr/lib/python2.6/site-packages/jarabe/journal/journalactivity.py, line 283, in _check_for_bundle registry.install(bundle) File /usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py, line 344, in install elif not self.add_bundle(install_path): File /usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py, line 194, in add_bundle bundle = self._add_bundle(bundle_path) File /usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py, line 208, in _add_bundle bundle = ActivityBundle(bundle_path) File /usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py, line 51, in __init__ Bundle.__init__(self, path) File /usr/lib/python2.6/site-packages/sugar/bundle/bundle.py, line 65, in __init__ if os.path.isdir(self._path): File /usr/lib/python2.6/genericpath.py, line 41, in isdir st = os.stat(s) TypeError: coercing to Unicode: need string or buffer, NoneType found Exception AttributeError: 'ActivityBundle' object has no attribute '_zip_file' in bound method ActivityBundle.__del__ of sugar.bundle.activitybundle.Acti vityBundle object at 0x9e7ad6c ignored * On Mon, 2009-11-02 at 16:47 +0100, Martin Langhoff wrote: On Mon, Nov 2, 2009 at 4:43 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I have backported the changes to the strawberry release and restore seems to be working now. Good to hear you've narrowed it down. I'll probably have to apply similar patches on the OLPC F11 Sugar :-) 4) Browse downloads the file and puts it in the Journal 5) I click Show in Journal 6) I see the Activity+Backup file details. 7) Click back to journal That's weird. On the 8.2.1 XO OS release, the process is skips step 67. The downloading message in Browse.xo does mention Activity+Backup (I tweaked the apparent filename that browse downloads to get that msg), but after that the Journal has only added the entry you want. Is the above how more or less restore should work or behave ? I was sort of expecting the Activity+Backup file to be replaced by the restored data in the Journal. Your expectations are right, and I think you are seeing another bug in the Browse.xo - Journal interop. cheers, m ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] First semi-version of Simple Digital Library Index
On Tue, Nov 3, 2009 at 2:58 PM, Mike Dawson mikeofmanches...@gmail.com wrote: 1. A content team uses the app as a normal desktop java app and exports it all Tell me more about this model. The content team is going to be preparing content for 5 000 XSs, each in one of 5 000 schools. Some of those schools have a very limited, unreliable internet connection. Others have no internet connection. 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