RE: Get serial number or XO name from command line or python

2011-05-28 Thread LASKE, Lionel (C2S)

Hi all,

Thanks for all your answers. The serial was exactly what I expected. Great.
About the XO name, my question was not clear. What I'm looking for is the 
name in the Sugar Control Panel (Me). 
Any way to get it ?

Regards.

Lionel.


-Message d'origine-
De : Chris Ball [mailto:c...@laptop.org] 
Envoyé : samedi 28 mai 2011 04:05
À : Henry Vélez Molina
Cc : LASKE, Lionel (C2S); devel@lists.laptop.org
Objet : Re: Get serial number or XO name from command line or python

Hi,

On Fri, May 27 2011, Henry Vélez Molina wrote:
 Also you could use this script:
 
 #!/usr/bin/python -tt
 import subprocess
 getserial = subprocess.Popen(['cat /ofw/serial-number'], shell=True,
 stdout=subprocess.PIPE)
 for line in getserial.stdout:
   print(line.decode().strip())

There's no need to spawn a shell, and then spawn cat inside a shell.
Python knows how to open files:

print open(/ofw/serial-number).readline().strip()

-- 
Chris Ball   c...@laptop.org   http://printf.net/
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Get serial number or XO name from command line or python

2011-05-28 Thread LASKE, Lionel (C2S)

Hi Bert,

Thanks it's exactly what I'm looking for.

Best regards from France.

Lionel.

--
Date: Sat, 28 May 2011 12:25:43 +0200
From: Bert Freudenberg b...@freudenbergs.de
Subject: Re: Get serial number or XO name from command line or python
To: OLPC Devel devel@lists.laptop.org
Message-ID: 7e6e9a6c-047f-4663-a343-d79736b01...@freudenbergs.de
Content-Type: text/plain; charset=us-ascii


On 28.05.2011, at 08:55, LASKE, Lionel (C2S) wrote:

 
 Hi all,
 
 Thanks for all your answers. The serial was exactly what I expected. Great.
 About the XO name, my question was not clear. What I'm looking for is the 
 name in the Sugar Control Panel (Me). 
 Any way to get it ?

Depends on the Sugar version, and is quite hard to make work universally.

In older versions, you could ask the PresenceService for the ownerBuddy, and 
access its nick. Or directly access the file:

${HOME}/.sugar/${$SUGAR_PROFILE}/config

In newer versions, it's stored in gconf:

gconftool-2 -g /desktop/sugar/user/nick

Both of these assume you are logged in as the Sugar user. If you are running 
the script as root, you need to guess the user name. On an XO the user normally 
is olpc, on SoaS it typically is liveuser. If all else fails you could look 
for all user homes that have a .sugar directory. If there is only one you are 
lucky, otherwise you should fail and ask for the right one.

Also, watch out for non-ascii nick names, and funny characters. Kids frequently 
use them, unaware there may be problems in command line scripts.

- Bert -



--

Message: 5
Date: Sat, 28 May 2011 08:25:57 -0700 (PDT)
From: Yioryos Asprobounitis mavrot...@yahoo.com
Subject: stop sharing an activity
To: OLPC Devel devel@lists.laptop.org
Message-ID: 638544.93017...@web65504.mail.ac4.yahoo.com
Content-Type: text/plain; charset=us-ascii

I could not find a way to stop sharing an activity even when no peers are 
connected or even present. 
This was true in os860 and os20, XO-1 and XO-1.5 and activities like write and 
Turtle blocks.
If this is indeed a feature and not a bug or something I miss, could someone 
point me to the relevant discussion and/or rational of once public, always 
public?
Thx


--

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


End of Devel Digest, Vol 63, Issue 54
*
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Get serial number or XO name from command line or python

2011-05-27 Thread LASKE, Lionel (C2S)

Hi all,

Is there a simple way to get the XO serial number and/or the XO name from the 
command line and/or from a python script ?

Lionel.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


OLPC France repair workshop report

2010-02-20 Thread LASKE, Lionel (C2S)

Hi all,

Last Thursday, OLPC France had a XO repair workshop.

During few hours, 6 of us tried to repair non working XOs that we’ve got in our 
stock.
A report (in French but easy to translate) with photos is available here: 
http://olpc-france.org/wiki/index.php?title=Compte-rendu_atelier_réparation_18/02/2010

Thanks to 3 Adam’s Serial Adapter, 6 XOs was bring to life again and will serve 
to our XO library and/or pilot projects.
After getting few mixing developer keys, we hope to fix 4 others XOs.
Finally one XO have the “infinite For+ loop” symptom at boot so few luck to 
boot again.

Best regards from France.

Lionel.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


F11 for XO 1.5 RC is great !

2009-12-06 Thread LASKE, Lionel (C2S)
Hi all,

I’ve just upgrade to q3a18 and F11 for XO 1.5 RC.

To upgrade I’ve used the olpc-update command but it didn’t work (from os48), 
including with the –rf option. So I’ve finally done a fs-update.
Error was something like “read only file system” (sorry, I didn’t write the 
exact message).

F11 for XO 1.5 RC is great.
It’s really great to see a working Camera in record activity.
I’ve the “WiFi gone” issue but it disappear after stopping the power economy 
feature.
One other cool thing: I’ve got very surprised to see my XO-1 on the Network 
screen. So I’ve done a Chat session between a XO-1 and a XO-1.5 and it 
perfectly works. Very cool !

Regarding my issue with Dailymotion I’m not sure to understand the way of 
working of the Dailymotion website. Some video works, some others don’t work. 
Is all DM video are viewable in OGG ? Not sure. I’ve asked the question to a DM 
guy.

Another issue on the RC is the “turn screen” button on the lower left of the 
screen: it do nothing.
Not sure there is a ticket on it.

BTW, thanks to all for this great RC.

Best regards from France.

Lionel.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


updates.laptop.org XO 1.5 and other question

2009-11-29 Thread LASKE, Lionel (C2S)

Hi all,

I’ve just tested the olpc-update to upgrade from OS45 to OS46: it works great !
Cool ! Thanks for that.

By the way I’ve got three questions about XO 1.5:

-  “test-all” command end with a “general protection exception” error 
after SD test (I’m in Q3A16).

-  I’ve tried to play with the dailymotion open video website 
http://openvideo.dailymotion.com which support OGG and it don’t seems to work 
with the XO. One OLPC France guy works for DM, maybe we could help on it.

-  What about video support in Record activity ? Camera seems to start 
working when using “test /camera”

Best regards from France

Lionel.



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


OLPC France repair workshop report

2009-11-22 Thread LASKE, Lionel (C2S)

Hi all,

OLPC France has organized a XO repair workshop on November 19th at /tmp/lab 
near Paris.
Detail report is on: 
http://olpc-france.org/wiki/index.php?title=Compte-rendu_atelier_r%C3%A9paration_19/11/2009

We analyzed three XO:

· One was coming back from our Nosy Komba deployment,

· One come from a G1G1 buyer 
(http://rt.laptop.org/Ticket/Display.html?id=43180),

· One come from our stock.

All XO had the “black screen” symptom. We used a serial adapter to diagnose the 
problem.

We fixed the one come from G1G1 (2007 probably) using Fix clock workaround.
One XO displays a continuous “For+” message on the Putty console: do you have 
any idea of what it mean ?
One XO displays nothing on the Putty console: does it mean that the XO is… dead 
?

Thanks for your help.

Best regards from France.

Lionel.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: OS40 feedback

2009-11-15 Thread LASKE, Lionel (C2S)

 Did you try a USB keyboard? That would have told us whether it was
 because HAL crashed, or because of the firmware bug.

No sorry. I didn't know that it could help.
I will try next time.
In the meantime I'm going to upgrade to q3a16.


 In TurtleArt, moving tiles with a number (forward, left, ...) let a trace on
 the screen. The font used to draw number seems to be too large.

 Please file a ticket for that.

Done.
https://dev.laptop.org/ticket/9678 


Thanks.

Lionel.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


OS40 feedback

2009-11-14 Thread LASKE, Lionel (C2S)
Hi all,

I've just finished to upgrade to OS40 with q3a15.
The upgrade work well but the keyboard and touchpad stop working on the Name: 
screen.
Problem solved after removing the battery and reboot.
But I thought this issue was related to the firmware. I'm wrong ?

Another issue not seen this ticket in the track:
In TurtleArt, moving tiles with a number (forward, left, ...) let a trace on 
the screen. The font used to draw number seems to be too large.
The trace disappear when the screen refresh. I've tried to do a screen capture 
but the screen is refreshed before the capture...
This issue was also in the OS38.

Best regards from France.

Lionel.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: OS38 don't boot

2009-11-09 Thread LASKE, Lionel (C2S)

 It was the shallow copy that take a long time and let me think that
 the laptop was hang. So I stupidly powered off that laptop without
 waiting :-(

 How long does it take?

#9623, testing for something else, I noticed a filesystem write
 performance which was low compared to read performance.

About 2 minutes I guess.
I don't know if it's related to an issue but the migration from OS32 to OS34 
was not so long.

Lionel.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


OS38 don't boot

2009-11-07 Thread LASKE, Lionel (C2S)
Hi all,

I've upgraded the XO 1.5 using the os38.zd. I'm on q3a15.

It seems to work (no error message) but unfortunately at the end of the process 
Sugar don't boot : hang on the first dot.
Don't work better after removing the battery.

Any idea ?

Lionel.


P.S.:Capture of the problem here: 
http://olpc-france.org/wiki/images/thumb/4/41/IMG_0186.JPG/450px-IMG_0186.JPG
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: OS38 don't boot

2009-11-07 Thread LASKE, Lionel (C2S)

I've tried and... it works now.
It was the shallow copy that take a long time and let me think that the 
laptop was hang. So I stupidly powered off that laptop without waiting :-(
Sorry to don't have enough patience.

Lionel.


-Message d'origine-
De : Paul Fox [mailto:p...@laptop.org] 
Envoyé : samedi 7 novembre 2009 22:47
À : LASKE, Lionel (C2S)
Cc : OLPC Devel
Objet : Re: OS38 don't boot 

lionel -- please try booting again, this time hold the check
key down while booting.  (that's the rightmost key in the group
of 4 to the right of the screen:  square, circle, X, and check.)

that should give more information about what's failing.

paul

c2s wrote:
  Hi all,
  
  I've upgraded the XO 1.5 using the os38.zd. I'm on q3a15.
  
  It seems to work (no error message) but unfortunately at the end of the 
  process 
  Sugar don't boot : hang on the first dot.
  Don't work better after removing the battery.
  
  Any idea ?
  
  Lionel.
  
  
  P.S.:Capture of the problem here: 
  http://olpc-france.org/wiki/images/thumb/4/41/IMG_0186.JPG/450px-IMG_0186.JPG
  part 2 text/plain 129
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel

=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: XO 1.5 hang on Type your name screen

2009-10-30 Thread LASKE, Lionel (C2S)

Oops, sorry.
Post to the wrong devel list :-(

Lionel.

De : LASKE, Lionel (C2S)
Envoyé : vendredi 30 octobre 2009 15:05
À : 'sugar-de...@lists.sugarlabs.org'
Objet : XO 1.5 hang on Type your name screen

Hi all,

I've just upgraded our XO 1.5 to q13a13 firmware and to os34.

By the way, I've got two issues:

-  First: the system hang (no response from mouse and keyboard) when 
displaying the Type your name screen.

-  Second: I can't stop the booting process. Pressing the check mark 
then the Esc key don't stop the process.  :-(

Any idea to leave solve this ?

Best regards from France.

Lionel.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: XO 1.5 hang on Type your name screen

2009-10-30 Thread LASKE, Lionel (C2S)

Thanks Ed but I can't upgrade to q3a15 due to the keyboard issue :-(

Lionel.


De : Ed McNierney [mailto:edmcnier...@gmail.com] De la part de Ed McNierney
Envoyé : vendredi 30 octobre 2009 15:12
À : LASKE, Lionel (C2S)
Cc : OLPC Devel
Objet : Re: XO 1.5 hang on Type your name screen

Lionel -

Step 1 is to take Mitch's advice of earlier today and upgrade to q3a15:

http://wiki.laptop.org/go/OLPC_Firmware_q3a15

- Ed


On Oct 30, 2009, at 10:06 AM, LASKE, Lionel (C2S) wrote:



Oops, sorry.
Post to the wrong devel list :-(

Lionel.

De : LASKE, Lionel (C2S)
Envoyé : vendredi 30 octobre 2009 15:05
À : 'sugar-de...@lists.sugarlabs.orgmailto:'sugar-de...@lists.sugarlabs.org'
Objet : XO 1.5 hang on Type your name screen

Hi all,

I've just upgraded our XO 1.5 to q13a13 firmware and to os34.

By the way, I've got two issues:
-  First: the system hang (no response from mouse and keyboard) when 
displaying the Type your name screen.
-  Second: I can't stop the booting process. Pressing the check mark 
then the Esc key don't stop the process.  :-(

Any idea to leave solve this ?

Best regards from France.

Lionel.

___
Devel mailing list
Devel@lists.laptop.orgmailto:Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Live from SugarCamp

2009-05-15 Thread LASKE, Lionel (C2S)

Thanks to Ubicast, the OLPC France/SugarLabs  SugarCamp will be webcast with 
few delayed seconds on http://live.ubicast.eu/ubicast/live.html

We'll try to exchange on the IRC channel: irc://irc.freenode.net/olpcfrance

See you soon in Paris or on the web.

Best regards from France.

Lionel.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


OLPC France CodeCamp 25/11 Report

2008-12-06 Thread LASKE, Lionel (C2S)
Hi all,

You could find on http://olpc-france.org/wiki/index.php?title=CodeCampReport 
the detail report (including photo  video) for the OLPC France CodeCamp held 
on 25 November in Paris.

The purpose of this first OLPC France CodeCamp was to deeply explore the OLPC 
project, Sugar and the XO. During this intense day, the 40 attendees have been 
able to learn all what they need to know to be able to contribute to the 
project.


* The learning workshop was dedicated to draft the requirements for a 
french version of WikiBrowse and to assess the possibility of doing animation 
movies with the XO.

* The translation workshop was dedicated to the translation of the 
FLOSS Manual.

* The School Server workshop was dedicated to the network configuration 
of low-power platforms.

* The Sugar workshop gathered people around the development of a Mind 
Mapping activity and around video integration.

* The Mono workshop let people write development tutorials about 
designing Sugar Activity for C#/Mono developers.

Thanks to all the participants.

Lionel.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel