Re: Re (2): low battery shutdown

2016-03-01 Thread Richard Smith

> OK, thanks.


From:   James Cameron , Tue, 23 Feb 2016 06:18:55 +1100

If a couple of full charge and discharge cycles don't fix the
inconsistency, the battery is close to end of usable life.

I agree with Paul that power-logs will be useful if Peter wants to
dive deeper into the technical causes.


Unfortunately, I never got around to implementing any sort of dynamic 
calibration for the %/mAh.  The algorithm still treats your battery as 
if it were new.


As others have said your battery is probably just showing its age.  1.5 
was built in 2010-2011 so unless you got a new battery its 5 or so years 
old.  That was the design life goal for each generation.


The rating was 50% available capacity after 2000 cycles. Only 30% loss 
in 5 years of use is actually quite good.  A typical Li battery would 
have long been trash.  It's one of the reasons we used LiFePO4 chemistry.


If you do run the capacity test I'd be interested in seeing your results.

--
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: I'm down in Uruguay this Xmas.

2015-12-21 Thread Richard Smith

On 12/09/2015 04:44 PM, Richard A. Smith wrote:


and the response from the ceibal@ address was that they would pass my
info on to people on the project.  However, I've not heard back from
anybody.

Anyone here know of someone I could contact @Ceibal who's involved with
the XO's they have?


Thanks to everyone who responded to me.

I was able to get in touch with someone at Plan Ceibal and I'm going to 
be able to tour the office.


It will be fun to finally see the Plan Ceibal offices.

--
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] [UKids] NUC and solar power questions

2014-06-20 Thread Richard Smith

On 06/20/2014 12:07 PM, George Hunt wrote:



2. Is the 10 amp charge controller (described on the website)
sufficient or would a 20 amp be better?



If you are considering other charge controllers I'll note that with the 
PV-136 a MPPT controller is basically required.


http://www.solarelectricsupply.com/unisolar-pvl-136-solar-laminate-solar-panel-546

Vmp of the panel at the NOC they specify is 30.8V.  A 24V PWM only 
system would be close but a PWM only controller @ 12V will yield 
terrible PV performance.


The manual doesn't give any specifications about the max amperage for 
the load (ie the XOs).  If this is the same as the max battery current 
10A than 10 XO's at full load could exceed that.  17W peak per/XO 170W 
total @12V is 14 amps.  You would hit peak XO draw if you are both using 
the XO and charging a low battery at the same time.


If you think there's any chance of increasing the number of XO's 
serviced in the future then I's suggest you go with the 20A.


The 10A is also assuming adequate airflow across the cooling fins the 
20A controller is going to give you more headroom for sub-optimal 
airflow installations.


--
Richard A. Smith
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: 13.2.0 development build 5 released

2013-05-07 Thread Richard Smith
On Tue, May 7, 2013 at 3:12 AM, Hal Murray hmur...@megapathdsl.net wrote:

 I've got an XO-1 setup to reboot every 4 hours.

 It's stuck with the XO in the middle of the circle of dots.  The dots are
 moving, so it's not totally dead.
 Ctrl-Alt-F2 doesn't work.  Is there anything I can do to collect some useful
 info?

Boot with the check key held so you turn off pretty boot and see where
its hanging at.

--
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: 13.2.0 development build 5 released

2013-05-07 Thread Richard Smith
 rich...@laptop.org said:
 Boot with the check key held so you turn off pretty boot and see where its
 hanging at.

 It works most of the time.  It's only occasionally that it hangs.

 Is there something I can edit that will turn off pretty boot?

Assuming your laptop is not in secure mode:

Edit /versions/boot/current/boot/olpc.fth

At the end of the file add the word 'visible' just before 'olpc-fth-boot-me'

so after the edit it would look like the following:

   boot
;
visible
olpc-fth-boot-me

--
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Developer key request issue ?

2013-04-04 Thread Richard Smith
 Hi Richard,

 Waooo 71K  Does a big deployment is coming ?

Nope. Its for an existing deployment.

 I can wait. It's not urgent for this one.
 BTW I will probably ask you for others (some XO on our Nosy Komba
 deployment) later in the month.

Sure. Happy to help.  Just send me a file of serial numbers or the
output of the collector key.

--
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[Server-devel] New ds-backup for 12.1

2013-04-01 Thread Richard Smith
I have a new ds-backup client package for 12.1 available here:

http://dev.laptop.org/~rsmith/ds-backup-client-0.15-1.fc17.noarch.rpm

This is both a bugfix and a feature release.  The bugfix is that the
ds-backup is broken on 12.1 and greater OS releases.  It will never
actually do a backup because we dropped suid root for ping and ds-backup
uses ping to establish if there is a net connection.  This package fixes
that.

The new feature is that ds-backup now backs up the power-logs directory and
the olpc users documents directory.  The power-logs backup will be useful
to me to make it easier to get power logs from deployments using a school
server.  I hope the documents backup will be useful to other people in the
future.

No changes to the ds-server code is needed but there isn't any UI for doing
the restore so that will have to be addressed before the documents back up
is useful in general practice.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Testing] 13.2.0 development build 2 released

2013-03-27 Thread Richard Smith
On Wed, Mar 27, 2013 at 1:53 PM, Mikus Grinbergs mi...@bga.com wrote:
 On 03/27/2013 12:32 AM, Hal Murray wrote:

 On my XO-1, keys F1, F2, F3, and F4 don't do anything.

 Same for me.

Works for me.  The 5 machines in my XO-4 testbed work correctly.
Mikus, I know you probably are testing on XO-1. Hal what generation of
XO are you using?

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OS Builder output img ?

2013-03-25 Thread Richard Smith

 Here is a screen capture from the XO-1 I'm using to test the procedure:
 http://laske.fr/tmp/SHF8080270B.jpg

You appear to be using a developer key.  If you are going to be
installing a custom build on all the laptops I would encourage you to
disable the security system altogether as the last step in your
olpc.fth step with 'disable-security'.  Then some of the gotchas that
occur with secure laptops won't happen.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Auckland Testing Summary 23 March 2013

2013-03-25 Thread Richard Smith
 Battery life on XO-4 C2 seems significantly improved over previous builds.
 We would be interested in a confirmation or otherwise of this in the power
 log analysis.

 I guess you are comparing to 13.1.0 build 36?
 The big difference here is that 13.1.0 build 36 has automatic power
 management disabled, it is now enabled in 13.2.0 (not 100% stable just
 yet, but we continue to shake out the bugs).

Its probably the firmware change rather than a build specific change.
We turned off unused cores and in q7b23 and that made almost 800mW
worth of difference across the board in operational power draw.  I'll
do a plot of your power logs though and confirm.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OS Builder output img ?

2013-03-25 Thread Richard Smith
On Mon, Mar 25, 2013 at 5:20 PM,  lio...@olpc-france.org wrote:

 Hi Richard,

 You appear to be using a developer key.  If you are going to be installing
 a custom build on all the laptops I would encourage you to disable the
 security
 system altogether as the last step in your olpc.fth step with
 'disable-security'.  Then some of the gotchas that occur with secure laptops
 won't happen.

 Yes you're right, I'm using an unlock stick [1]. What sort of problem
 could occur?

Well for one you have to have those keys present for your installed os
to run either on that stick or by copying the developer key to the XO.
 But then you have to make sure that the developer key is re-installed
anytime you reflash the XO.  Also if for some other reason the dev
keys are removed from the laptop it will stop booting the OS.  Other
than that the most common gotcha with running XO's in secure mode is
that if you have RTC clock problems then the laptop can stop booting
and you have to have a developer key to fix them.  Getting developer
keys after the laptops have been deployed can be a lot of extra effort
to obtain and then distribute to the XO.

Its also just less hassle.  If you are installing a customized
non-signed build then you have to have the laptops un-secure to boot
it so the one-time disable of the security system means that you won't
ever have to mess with it again unless you re-enable it.

: installer
copy-nand u:\21007xx0.img eval
change-tag LO fr_FR.UTF-8 eval
;

Note that if you want to also disable the security system in this
script then we will need a slightly different approach.  By default
each time you change a tag the laptop will reboot.  So to change
multiple tags in one go you need to use a tag change that won't reboot
the laptop.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OS Builder output img ?

2013-03-25 Thread Richard Smith
On Mon, Mar 25, 2013 at 7:07 PM, James Cameron qu...@laptop.org wrote:
 On Mon, Mar 25, 2013 at 06:50:00PM -0400, Richard Smith wrote:

  But maybe you don't need to do that, if you are only changing one tag?
  How many tags are you changing?  If one, then finish the script with
  the tag change.

 I mentioned that he could also disable security.  So he would be
 deleting the 'wp' tag too.

 Really?  disable-security changes the wp tag to ww rather than
 deleting it.  Do you think he should delete it instead?

The effect is the same.  We did ww and wp because 'w' is a 0x77 and
'p' is a 0x70 so you could change the w to a p with a single write
without an erase cycle in-between.  We never really used that feature
though.

 Is there a risk of having to reboot to enable writes?

I was just pondering this as well.  Its been a while,  but IIRC think
this may thwart any attempt to do it in a single pass.  The write
protect on the SPI flash is set very early so OFW has to issue a
special command to reboot without the lock.  No way around it as you
can only unlock with a reboot.  I suppose you could do the security
disable first and then when you see that its 'ww' rather than 'wp'
continue on with the re-flash and then the LO change as the last step.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OS Builder output img ?

2013-03-25 Thread Richard Smith
 special command to reboot without the lock.  No way around it as you
 can only unlock with a reboot.  I suppose you could do the security
 disable first and then when you see that its 'ww' rather than 'wp'
 continue on with the re-flash and then the LO change as the last step.

I had a vague recollection of doing something like this many moons ago
to automate the conversion of a large amount of laptops to an Arabic
keyboard.  I managed to dig up the script.  IIRC this script was for
XO-1.5 but since then I think we added this support back into XO-1
firmware.  I did a quick check on a unit I have with q2f13 and all
then necessary words existed.  I offer it up as example code.   Seems
I did exactly what I was suggesting in the previous mail.  Do the
disable-security first and and ignore the error if security has been
disabled.

the line:

['] disable-security catch drop

does that nicely.  It will reboot the 1st time then clear security the
2nd time.  On laptops that have already had security disabled it just
continues on.


\ Automate arabic conversion

visible
unfreeze

\ ka-dir$ is not used in this script but kept so the code is
\ idential to the stuff from the mfg scripts
\ Location of the files containing KA tag data
: ka-dir$  ( -- adr len )   http:\\10.1.0.1\ka\  ;

: put-ascii-tag  ( value$ name$ -- )
   2swap  dup  if  add-null  then  2swap  ( value$' key$ )
   ($add-tag) ( )
;

: put-ka-tag  ( value$ key$ -- )
   2over  8 min  ka-dir$  %s%s sprintf  ( value$ key$ filename$ )
   . Fetching KA tag file  2dup type cr ( value$ key$ filename$ )
   $read-file  if ( value$ key$ )
  . ERROR: No KA tag file for  2swap type cr  ( key$ )
  true  abort KA file not found ( key$ )
  2drop   ( )
   else   ( value$ key$ file-data$ )
  2swap ($add-tag)( value$ )
  2drop   ( )
   then
;

: special-tag?  ( value$ key$ -- true | value$ key$ false )
   2dup  KA $=  if  ( value$ key$ )
  put-ka-tag  true  exit
   then   ( value$ key$ )
   false
;

: put-tag  ( value$ key$ -- )
   special-tag?  if  exit  then   ( value$ key$ )
   put-ascii-tag
;

: compare-tag ( value$ key$ -- success? )
find-tag 0= if false exit then
?-null $= 0=
;

: arabic? ( -- true/false )

olpc  KM  compare-tag if false exit then
us,araKL  compare-tag if false exit then
olpc2,olpcKV  compare-tag if false exit then
ar_EG.UTF-8   LO  compare-tag if false exit then
   true
;

: arabic-tags  ( -- )

   get-mfg-data

KM  ($delete-tag)
KL  ($delete-tag)
KV  ($delete-tag)
LO  ($delete-tag)

olpc  KM  put-tag
us,araKL  put-tag
olpc2,olpcKV  put-tag
ar_EG.UTF-8   LO  put-tag

   flash-write-enable
   (put-mfg-data)

   kbc-on
;

: make-arabic

arabic? if
. Tags already correct cr
else
. Changing tags cr
arabic-tags
then
;

: go-arabic ( -- )
d# 5000 ms
['] disable-security catch drop
make-arabic
nb
;

go-arabic


-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-21 Thread Richard Smith
On Thu, Mar 21, 2013 at 6:30 AM,  tkk...@nurturingasia.com wrote:

 I used the testing repo. Installation, registration and access went well on 
 my XO 1.75.

Interesting.  So I wonder whats up with my setup.  I'm slightly
different in that I'm not using a AP rather I have a USB network
adapter in the client XO and I'm connecting directly to the USB
adapter on the XS.  The network functions fine it just won't register.
 Same setup works if I connect to a 0.7 XS and if I nmap the 0.7 XS I
see that port 8080 is open.

On the client XO please install nmap sudo yum -y install nmap and
then sudo nmap schoolserver (assuming you took the default domain)
and post the results.  I'm curious if you have something on 8080.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-21 Thread Richard Smith
On Thu, Mar 21, 2013 at 4:34 PM, Jerry Vonau jvo...@shaw.ca wrote:
 On Thu, 2013-03-21 at 14:33 -0400, Richard Smith wrote:
 On Thu, Mar 21, 2013 at 6:30 AM,  tkk...@nurturingasia.com wrote:

  I used the testing repo. Installation, registration and access went well 
  on my XO 1.75.

 Interesting.  So I wonder whats up with my setup.  I'm slightly
 different in that I'm not using a AP rather I have a USB network
 adapter in the client XO and I'm connecting directly to the USB
 adapter on the XS.

 That places 2 network adaptors on the client XO and might interfere with
 name resolution, just want to be sure what is the contents
 of /etc/resolv.conf are. Can you post that info and maybe the output of
 route -n from the XO client please?

Its back at my apartment atm and I'm headed out for the weekend but I
might be able to give you that before I leave. If not then Sunday
night when I return.  I be very surprised if its a network connection
or name resolution problem on the client though.  I can ping
schoolserver, I can browse schoolserver, I can surf the internet (via
schoolserver) and in the tcpdump traces I clearly see the name
resolution completing and then the attempt to connect to the school
servers IP at port 8080 and receiving a reset in response.

 The network functions fine it just won't register.

 We saw this once while testing, and has come up on the mailing list
 before, it appears that registration fails if the XS doesn't have a live
 internet connection(even with the XS-0.7). Does this new XS really have
 internet access?

Yes it has internet access and it works fine on my test XS-0.7 which
does not have internet access.  I'm using Sameer's virtual box XS-0.7
and there is no upstream network.  Only a single bridged eth device
which on the VM host side is not even assigned an IP.

  Same setup works if I connect to a 0.7 XS and if I nmap the 0.7 XS I
 see that port 8080 is open.

 I can see via netstat -nat that 8080 is open on the XS

I'll check my XS and see if its the same.

 On the client XO please install nmap sudo yum -y install nmap and
 then sudo nmap schoolserver (assuming you took the default domain)
 and post the results.  I'm curious if you have something on 8080.


 My XO's using the build-in wifi for access to the XS can register
 without any issues. Lets see what's up with the add-on network adaptor
 setup.

I've got an AP I can use to test with as well but I just didn't want
to go through all the hassle of setting that up for 1 XO.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-21 Thread Richard Smith
 That places 2 network adaptors on the client XO and might interfere with
 name resolution, just want to be sure what is the contents
 of /etc/resolv.conf are. Can you post that info and maybe the output of
 route -n from the XO client please?

domain local
search local
nameserver 172.18.96.1

ernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
0.0.0.0 172.18.96.1 0.0.0.0 UG0  00 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00 eth0
172.18.96.0 0.0.0.0 255.255.224.0   U 0  00 eth1
224.0.0.0   0.0.0.0 240.0.0.0   U 0  00 eth0

 I can see via netstat -nat that 8080 is open on the XS

That's a difference for me.  I have no 8080 on my XS.

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 0.0.0.0:40330   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:50544   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:43690.0.0.0:*   LISTEN
tcp0  0 172.18.96.1:53  0.0.0.0:*   LISTEN
tcp0  0 172.30.42.68:53 0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:530.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:31280.0.0.0:*   LISTEN
tcp0  0 172.18.96.1:56296   172.18.100.204:5298 ESTABLISHED
tcp0  0 127.0.0.1:4369  127.0.0.1:50781 ESTABLISHED
tcp0  0 127.0.0.1:50781 127.0.0.1:4369  ESTABLISHED
tcp6   0  0 :::5280 :::*LISTEN
tcp6   0  0 :::5222 :::*LISTEN
tcp6   0  0 :::5223 :::*LISTEN
tcp6   0  0 :::80   :::*LISTEN
tcp6   0  0 :::5298 :::*LISTEN
tcp6   0  0 :::47347:::*LISTEN
tcp6   0  0 :::22   :::*LISTEN

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-20 Thread Richard Smith
On Tue, Mar 19, 2013 at 7:16 PM, Richard Smith rich...@laptop.org wrote:
 Dunno.  Where do I look for the version?

 rpm -q xs-config

 0.8.2.100.18.g8895685-1

I tried a 2nd install on a XO-1.5 I had and received exactly the same
results.  (Without the MN tag problem).  The install appeared to go
smoothly.  ejabberd claimed it could not start up. Reboot and the same
httpd problem with pathagar exists.  Fixing that still does not
correct the registration problem.

Running tcpdump on the exchange shows that the request to the webcache
port is responded to with a RST.  Nmap the sever and there's nothing
running on port 8080.  So whatever is supposed to be servicing that
didn't happen.  Other services look ok.  ssh, dns, http are up, squid
is up on 3128,  xmpp on 5222 and 5280 and presence is on 5298.
Identical behavior on the 1.75 server install.

So I'd say either all my machines are broken somehow or there's been a
regression.  I'm going to bail and use XS .7 for my dev purposes as
this yak is starting to get hairy.  I can still run some diagnostics
on the machines if you find you can't duplicate the failure and want
more info.

I've also discovered that the terminal command prompt appears to have
broken line wrapping.  If you type really long lines in the terminal
activity it will wrap back to the beginning of the same line rather
than the next line.  The command still works but it makes it difficult
to review things when you look at history.

Hope this helps.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] ds-backup broken in 12.1

2013-03-20 Thread Richard Smith
I discovered today that ds-backup.sh is broken in 12.1 and beyond.
The problem is that the 'ping' command changed to no longer being suid
root. ds-backup.sh uses ping to check if the network connection to the
schoolserver is functional.  Since ping won't run as user olpc it
always exits.

The fix is to add the use of sudo to the ping command.  I'll fix that
and get a new rpm built but for people who have 12.1 already deployed
and want to use this you will need to fix ds-backup.sh

Give that this has been broken for a long time and nobody seems to
have noticed I'm guessing there aren't very many users of ds-backup
with XO's running 12.1.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-20 Thread Richard Smith
 If you would be so brave to try the latest rpm, please start with the
 testing enabled repo[1].

Done. With a fresh install of 12.1 as just trying to remove the dot
files and re-run the config script didn't work very well.

 Reboot and the same
 httpd problem with pathagar exists.

 This is should now be fixed.

Yes. httpd started on its own this time.

 Fixing that still does not
 correct the registration problem.

 There was a strange issue when parsing /domain_config.d/, I wrongly
 assumed that dhclient, where the hostname is being set, would run first
 based on the filename. This has been resolved.

 Running tcpdump on the exchange shows that the request to the webcache
 port is responded to with a RST.  Nmap the sever and there's nothing
 running on port 8080.

 That most likely was a result of the above hostname failure.

Nope.  Same problem.  I've not seen any problems with the hostname.
Its set to schoolserver  the .local domain is setup and both clients
and server properly resolve schoolserver into the right respective IP.
 tcpdump shows the client is issuing a request to 8080 and its getting
a RST back because nothing is responding at that port.  Whats supposed
to be servicing port 8080?  Whatever it is is not functioning.

 than the next line.  The command still works but it makes it difficult
 to review things when you look at history.


 This alteration has been removed.

yes and there is a # back in my root prompt.  :)

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-19 Thread Richard Smith
I want to try and make some tweaks to the ds_backup so I need a
working school server.

I grabbed a random XO 1.75 I had with 12.1.0-21 installed and tried to
install XSCE 0.2.1 but I was not successful in getting a working
config.

After installing xs-config-xo and runnign bootstrap-xo I received the message
Not an XO pleasea run 'xs-config' So I did. xs-config: command not found.

Searching for xs-config in the xs-config-xo package with rpm -ql I find that
xs-config is not in that that package so I took a look at bootstrap-xo
to see why it was unhappy.

It was unhappy because I have a bastard machine and I have no MN
manufacturing tag.  :)

However, looking at script I would recommnd that rather than read the
mfg tags directly you try to source
/usr/share/olpc-utils/olpc-utils-functions and use the facilties of
that script.  There are functions that will let you read mfg tags in
an XO generation independent way and functions that will let you
determine what
XO generation you are using.

I noticed several occurrences of error messages the debug output of
xs-setup a message of:

 /usr/bin/xs-setup-functions: line 242: [: missing ']'

You may want to start using [[ ]] rather than [ ] for tests as [[ ]]
is much more tolerant and supports several enhancements over [ ]

The rest of the installation appears to have gone ok except that
ejabberd didn't seem to start up.  The message was

Failed RPC connection to the note ejabberd@schoolserver: nodedown

On reboot various ejabber things seems to be running so perhaps that
was expected.

If I go to a root shell I don't get an expected # in my prompt.  The
difference between olpc@ and root@ is hard to notice.  I'd like to see
a # added when you are root.

Because I don't have a full deployment infra setup I ran into this
http://sugardextrose.org/issues/2685 . Also nothing in the
instructions indicate that when you set up a local AP for the XO lan
you have to disable any dhcpd server that might be running on the AP.
Obvious to me but perhaps not obvious to others and multiple dhcp
servers can be a bitch to debug.

Trying to register the XSCE with itself fails.  Can't connect to the server

Trying to register a client XO to the schoolsever fails as well.  The
IP the the client received looks good. I can ping schoolserver and
schoolserver.local and browsing the Internet works. Trying to browse
to http://schoolserver or schoolserver.local dosen't work.  Nmaping
the server with my laptop shows that nothing is
running on port 80.

There's nothing in /var/log/httpd but systemctrl status httpd.service
indicates there were startup errors and looking
in /var/log/messages I find that httpd is choking on line 9 of
/etc/httpd/conf.d/pathagar.conf which is:

PythonHandler django.core.handlers.modpython

rpm -q django shows its not installed so I tried yum -y install django
but no dice.  Still won't start up.
Ideas? I've run out of time for now to try and sort this out.

Cheers.
-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-19 Thread Richard Smith
On Tue, Mar 19, 2013 at 6:20 PM, Tim Moody timmo...@sympatico.ca wrote:
 I have installed 0.2.1 on an XO 1.75 successfully in one go and the XO 1.75

I'll try a 2nd machine.

 server and another XO were both able to register and connect to schoolserver
 (without http:// I sometimes get a google search instead of the url), so
 either we have regressed or we didn't handle your non-MN machine.

I added the correct MN tag so the install would continue.

 Not sure if you reflashed for each iteration of installing, but I don't
 think we restart very well.

Didn't have to restart.

 Thanks for the suggestion on reading manf tag.  I have puzzled over the
 missing ']', because the syntax looks right; thanks again for the
 suggestion.

This is a perfect example.  The problem is that  does not work
inside of [ ] for that line to work with  it needs to be:

if [ -e $SETUPSTATEDIR/etckeeper ]  [ $# -gt 1 ];

Change the [ ] to [[ ]] and the original line will work.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-19 Thread Richard Smith

 Odd that should of been disabled in the base install, which version of
 xs-config is installed?

Dunno.  Where do I look for the version?

 PythonHandler django.core.handlers.modpython

 rpm -q django shows its not installed so I tried yum -y install django
 but no dice.  Still won't start up.
 Ideas? I've run out of time for now to try and sort this out.


 I'd just rename /etc/httpd/conf.d/pathagar.conf and retrying to restart
 apache as a quick fix.

Worked. Thanks.

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-19 Thread Richard Smith
 Dunno.  Where do I look for the version?

 rpm -q xs-config

0.8.2.100.18.g8895685-1

-- 
Richard A. Smith
One Laptop per Child
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: Solution for Unimplemented package interface procedure error on XO-1.5?

2013-01-30 Thread Richard Smith

 The way you describe sounds even easier than doing the regular USB firmware
 upgrade
 (http://wiki.laptop.org/go/Upgrading_firmware#Upgrading_using_a_USB_drive)
 which I was going for.

I fail to see how what dsd suggests is going to be easier for you.
With the usb drive you do one copy then just boot each machine with
the usb drive plugged in vs having to copy that file into the right
spot on every machine you want to upgrade.  If the machine won't boot
(like yours) then you have to do the copy using OFW and get the
command line right every time.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: 13.1.0 development build 7 released

2012-10-18 Thread Richard Smith
 Wireless networking should now work reliably - fingers crossed.

Still doesn't work if you click on a AP (xo-1.5) in the network
screen.  But now selecting connect works so there was some progress.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: My XO-1.5 Lights

2012-10-17 Thread Richard Smith
On Sat, Oct 13, 2012 at 10:58 AM, Aaron Bedford aaronbedf...@gmail.com wrote:
 While on battery or the charger I noticed the green lights will flicker. The
 power light does it the battery light will too along with the wifi lights.
 They flicker the same way the lights in a house would during a storm when
 then power goes in and out but not completely off.

 Is this common with this board


Which board?

If its a 1.5 or 1.75 can you try to stop at OFW and do an

ok mppt-off

First and then let it boot.  If you still get flicker then something
is up with your external adapter or the power source its plugged into.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: My XO-1.5 Lights

2012-10-17 Thread Richard Smith
On Wed, Oct 17, 2012 at 10:28 AM, Richard Smith smithb...@gmail.com wrote:
 On Sat, Oct 13, 2012 at 10:58 AM, Aaron Bedford aaronbedf...@gmail.com 
 wrote:

 While on battery or the charger I noticed the green lights will flicker. The
 power light does it the battery light will too along with the wifi lights.
 They flicker the same way the lights in a house would during a storm when
 then power goes in and out but not completely off.

 Is this common with this board

Some clarification is needed.  Are you reporting repeated flicker
while charging or just when you connect and disconnect the external
power?

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: My XO-1.5 Lights

2012-10-17 Thread Richard Smith
On Wed, Oct 17, 2012 at 11:07 AM, Aaron Bedford aaronbedf...@gmail.com wrote:

 It does it all the time on and off the charger. And like i said before it
 flickers everytime i push a button like volume up or down. It still
 flickers.

Does the flicker from your button presses happen when external power
is connected?

Also which model XO and which AC adapter (white wall or green brick)?
There's a manufacturer name on the AC adapter please report that too.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: My XO-1.5 Lights

2012-10-17 Thread Richard Smith
 Does the flicker from your button presses happen when external power
 is connected?

Sorry. That should be NOT connected.  ie when you are on battery.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 21]

2012-07-19 Thread Richard Smith
On Wed, Jul 18, 2012 at 11:43 PM, Yioryos Asprobounitis
mavrot...@yahoo.com wrote:


 At which point exactly the - insert battery step goes between - Remove 
 battery and - ok bg-acr@ .bg-acr ?

Ooops.  That's kind of important.  Sorry. Updated list below.  You
need to insert the battery after you do batman-start because
batman-start disables the EC's charging system.  Its stays disabled
until you do batman-stop or until you reset the EC.

 --- On Wed, 7/18/12, Richard Smith rich...@laptop.org wrote:

 - Start with the XO in a clean working condition. ie remove
 all power and battery.
 - Boot the XO. Sugar or OFW either will work.
 - Run on battery and allow the battery to discharge until is
 says its  90%
 - Connect power and let the battery charge to full.
 - Reboot XO and stop at OFW.
 - ok batman-start
 - ok 0 bg-acr!
 - Verify the ACR is really zero.
 - ok bg-acr@ .bg-acr
 (Should print zero)
 - Remove battery
 (Wait 24 hours, you can do whatever you want with the XO)
 - Boot XO and stop at OFW
 - ok batman-start
 - Insert battery
 - ok bg-acr@ .bg-acr


-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 21]

2012-07-18 Thread Richard Smith
 On an XO-1
 The reading is -4610.42 (!?)

Its a 2's compliment number. Negative values are normal.  But you need
more than 1 reading.  A single reading of the ACR doesn't tell you
anything unless you reset it to a known value before you start.

 Reboot to Sugar and got very little battery
 At no point the charge light came up (green, red, or orange/yellow)

 run 0 bg-acr! and then bat-recover. Indeed the battery looked drained (6.9 
 Volts) and charged but took took just few mAh before it jumped to 7.4 volts. 
 Still no battery LED

We are running debugging commands outside the EC.  All reporting
normal battery status reporting is invalid until you run a discharge
and recharge cycle
Also bat-recover is useless for this problem.

 I may be way off, but judging from the erratic readings and LED behavior I 
 would think that might be an issue with the battery EC. Anyway to talk to 
 it and make it behave?

Yes you are way off because you don't understand what you are doing.
I'll be more specific in my instructions.

 Though if interested I think would be much more efficient if you check the 
 battery in person ;)

I'm mildly curious but what if you send it to me and then the problem
does not duplicate?  I'd rather sort it out in the known problem case.

 If not, let me have clear what you want exactly since is not clear to me from 
 your latter mail if after the first run, AC is needed and the XO should start 
 with AC only or battery only of both together, or doesn't matter.

Here's a specific procedure.  We are going to zero the ACR register so
that you don't have to keep track of the prior reading.

- Start with the XO in a clean working condition. ie remove all power
and battery.
- Boot the XO. Sugar or OFW either will work.
- Run on battery and allow the battery to discharge until is says its  90%
- Connect power and let the battery charge to full.
- Reboot XO and stop at OFW.
- ok batman-start
- ok 0 bg-acr!
- Verify the ACR is really zero.
- ok bg-acr@ .bg-acr
(Should print zero)
- Remove battery
(Wait 24 hours, you can do whatever you want with the XO)
- Boot XO and stop at OFW
- ok batman-start
- ok bg-acr@ .bg-acr

That number will be the amount of capacity lost.


-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 21]

2012-07-16 Thread Richard Smith
 1) Connect XO 1 or 1.5 to external power.
 2) Boot the machine and stop at the open firmware prompt
 3) Allow battery to charge up up until full.
 4) print out the ACR with:
   ok bg-acr@ .bg-acr
 5) remove battery
 6) record the printed ACR number somewhere
 7) Note time of battery removal
 8) Wait 24 hours.
 9) repeat steps 1-4

I see I was a bit hasty here and this is not quite correct.  Step 3
should be skipped and replaced with:
ok batman-start

That way the EC battery subsystem is disabled and it won't try to
charge.  Then you can do step 4.

 10) subtract the 2 ARC numbers to the the net ACR.

10) subtract the 2 ACR numbers to get the net ACR.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance

2012-06-29 Thread Richard Smith
On Fri, Jun 29, 2012 at 12:19 AM, Mikus Grinbergs mi...@bga.com wrote:
 DISCLAIMER:  I am not asking for help; I'm merely sharing my experiences


 I have an XO-1 which with recent q2f roms might boot up with the power light
 green, or might boot up with the power light blinking red (and the battery
 icon in Frame claiming not connected).

Blinking Red is error.  Next time it happens can you please boot to OFW and do

ok watch-battery

Then press a key to make watch-battery exit.  When it exits it will
tell you what the error is.  Please pass that on.

 The last time it booted up with a blinking red power light, I kept on using
 that XO-1 as is.  After 100+ hours of operation (it *was* connected to A/C
 all the time) the behavior of that XO-1 was perfectly NORMAL (except for the
 blinking red power light).

Sure.  Blinking red is basically the same as if you did not have a
battery installed.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 21]

2012-06-28 Thread Richard Smith

 After that test, I run bat-recover once more I noticed several strange things.

Running bat-recover is unnecessary and for your battery basically
useless.  Also bat-recover runs outside of normal battery processing
so your SoC values (the %) may be invalid until you do a full
discharge or charge.

 What I can decipher from all these is that
 a) the battery has decreased capacity (or for some reason stops charging 
 after ~70% full)
 b) at times, the controller is not transmitting/sensing the battery state 
 properly.
 c) The battery indeed looses too much charge while in the XO and this may not 
 be related to its decreased capacity.
 You can hopefully see more things from these.

d) You have hit a rare EC bug.

The gas gauge chip in the battery tracks the ACR value with a signed
16bit number but the counter does not wrap when it reaches the end.
The number of ACR counts between charge and discharge is never equal
so over time the counter will tend to drift one way or the other.

In the 1.75 EC code I deal with this by manually wrapping the count to
the other extreme.  This keeps the 1% SOC values ticking since they
are relative, however, I failed to realize that this totally screws up
my logging scripts which measure the net difference in ACR from the
start to the finish of the run.  I _just_ discovered this last week on
my battery testbed.

You can see this in the logs:

1340445105,72,6442210,-593359,3126,-13648333,Discharging,-861250,87
1340445125,72,6438550,-597135,3125,-13652083,Discharging,-865000,87
1340445146,72,6425740,-596744,3126,13650416,Discharging,26437499,88
1340445166,72,6439160,-629427,3122,1364,Discharging,26433749,88

Notice it jumped from -number to +number and the net ACR reading went
off the scale.

XO-1 and 1.5 do not have the manual wrapping code so when they reach
and extreme the counter just stops.  In theory its self correcting as
once you hit a stop then the amount of ACR in the other directly would
be much more and would pull the counter back the other way but perhaps
there's more to it than that.

This may or may not be the source of your original problem but it does
prevent the power measurement script from getting an accurate reading.

The fix is simple.  Put the battery in an XO-1.5 and boot to OFW.
Then at the ok prompt do the following.  Note that it has to be a 1.5
as batman does not work on a 1.75

ok 0 bg-acr!

Thats a zero not an O.
This will reset the ACR register to zero.

you can then look at it with:

ok bg-acr@ .bg-acr

After you do that then please run another discharge/charge/discharge
cycle while running olpc-pwr-log and resend the results.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 4]

2012-06-02 Thread Richard Smith
 This battery is really strange...
 After an O/N with the battery out of the XO tried to run it down and suddenly 
 none of the info in /sys/devices/0.baterry/power_supply/olpc-battery/ was 
 changing after an hour of CPU burn and the battery was showing as Full
 Shutdown and removing the battery to reset the EC, made it behaved. The 
 battery started from 35% and dropped normally thereafter.

Hmm... Perhaps there is some intermittent communication fail between
the EC and the battery.  Next time things get all messed up reboot
into OFW and run 'see-bstate'.   Do not remove the battery for a
complete power cycle. Just reboot.
(It helps if you have serial port connected so you can capture the output)

see-bstate will spew a bunch of numbers. From those numbers we can see
if the EC is talking to the battery.

 As per the suggested test, indeed after shutting down at 9% with the red led 
 on, pressing a game key lights up the red led for ~2 sec.


Ok.  Well its not the EC failing to go into stop mode then.  Do you
have a XO-1.5 or 1.75? Something with an EC serial connector loaded?

  What was striking was that the XO-1.75 used 25% of the
 battery for 1 run while the XO-1.5 used 65% of the battery!

 If you are going to do more of this then you really need a
 better tool
 than just the battery SOC measurement.

 I usually look either at the ~/power-logs/pwr-* or directly at 
 /sys//power_supply/olpc-battery/* to check battery status

 olpc-pwr-log
 can sample the
 information on a periodic basis and then my processing
 scripts can run

The data in the powerd power log file is a super-set of the data
captured by olpc-pwr-log.  powerd also captures data on events like
when the machine goes to sleep, External power connected/disconnected.
 If no events happen then its samples the battery info every 300
seconds.

olpc-pwr-log samples much more frequently and only samples on a time
basis.  Its every 20 seconds right now but can be changed by editing
the script.  20 seconds is about the minimum you want though or the
average power computation has lots of error.

running olpc-pwr-log is easy.  Grab the one from my repository and
copy it over the one that is included in the build.  Then just open a
terminal or VT and run it.  It will generate a log file in the
directory you run it.

if powerd is running and the machine goes to sleep it won't hurt
olpc-pwr-log but you times will be irregular so most of the time I use
it I stop powerd first.

My python processing tool can also process powerd log files.  One
difference between them is that the processing tool does not have any
statefull analysis (yet) so it doesn't do any thing different when you
go from charging to discharging.  When looking at summary data such as
average power over a run if you have both charging and discharging
then the average includes all of them.   The graph output will show
you the data over time and you can see the ups and down.

If I use powerd to log normally force it to generate a new file or I
reboot first so a new log file is started.

 Sure.
 I can understand some bash scripting but python is out of my league, so 
 please advise.


Its not necessary to hack python to use the processing tools.  You do
need some some python dependencies installed though.  You need
python-dateutils, and pymatplotlib installed and configured.
pymatplot lib needs the backend rendering engine set for your system.
(The default is Tk, but it has gtk, and QT).

The tools have lots of different options and can tell you many
different things but most of those options you probably would not use.

To you you just feed the tools the power logs on the command line.

process-pwr_log.py logfile will give you a summary of that run.  If
you feed it multiple files on the command line (such as pwr-* ) then
it will produce one line of summary output for each logfile processed.

graphy-pwr_log.py can show you lots of different graphs.  By default
it just shows you voltage and current over time. --avgpwr includes a
power graph.

graph-pwr_log.py --avgpwr logfile

If you feed it multiple log files then you will a graph with multiple
traces one trace per log file.

Each graph lives in its own window right now so you have to close each
one before it exits.

If you can't get the python stuff to run then you can always send me
your log files and I can process them.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 4]

2012-06-02 Thread Richard Smith
  I'm very suspect of this measurement.  The 1.5 has
 a hardware floating
  point unit and the 1.75 is still using
 soft-float.  Its extremely unlikely
  that the floating point performance on 1.75 is better
 than the 1.5.
 

 Hard FP status depends on if Yioryos is running 11.3.1 or
 12.1.0.  Since he
 said os10 by today's date I'm presuming 12.1.0.

 The Fedora 17 builds should be hard fp (armv7hl).  The
 Fedora 14-based
 11.3.1 builds are not (armv5tel / armv7l kernel).

 Correct.
 For the LMbench test the XO-1.75 was funning F17/21012o2 with the correct 
 kernel per dsd's suggestion (

Ok.. I'm still a bit unconvinced though.  I would expect the FP unit
on the x86 to still beat the ARM.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance

2012-06-02 Thread Richard Smith
 Looking at those numbers I am quite certain that he is using F17 and
 hardfp on the 1.75.  Floating Point performance of the VIA vx855
 chipset is a known limitation.  It is something that they fixed in the
 next generation vx900 chipset.

Got a reference for this known limitation ?

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO battery/performance [Devel Digest, Vol 76, Issue 4]

2012-06-02 Thread Richard Smith
 then.  Do you
 have a XO-1.5 or 1.75? Something with an EC serial connector
 loaded?

 I have the adaptor on the J1 of an XO-1. Will it do?
No.

 If not, where is CN24? (a picture or a reference to the XO-1 board will help)

XO-1 did not ship with an EC connector loaded.  That's why I asked
about 1.5 or 1.75.  You seem to have a 1.75 since you produced lmbench
results for it.   It should have the EC serial connector loaded.  Its
the connector under the heat spreader.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Battery losing charge while off [Devel Digest, Vol 75, Issue 63]

2012-06-01 Thread Richard Smith
On Thu, May 31, 2012 at 12:41 PM, Yioryos Asprobounitis
mavrot...@yahoo.com wrote:




 On 05/24/2012 11:59 PM, Yioryos Asprobounitis wrote:

  laptop serial number.   Was it a
  pre-production XO-1 ?
 
  Both XO-1s used to test the battery are C2 machines
  #CSH7470023EA
  #SHF80701C99
  The batery in question is
  #00802091012110003588

 So let me review and see if I have all the details.
 Seems like each new
 email has more new details.

 - Battery does not lose charge outside the laptop.
 - Tested the battery in 2 different laptops and the loss is
 the same.
 Roughly 12% overnight.
 - A different battery in those same laptops does not lose
 12%

 Correct in all 3 (but ~12% in a 24h period)

Ah... 24 hours... Looking back you said that in the original email.
So 12% is about 370mAh which at the nominal battery voltage should be
2.2 to 2.5 Wh.  Over 24 hours that a draw of 90 to 100 mW.  Thats high
for the EC not going to into stop mode but perhaps there's enough
error in the measurement to skew the results.

My 1st guess is that something in the battery EEPROM is making the EC
unhappy and its not going into stop mode when the power is off.

Put the funky battery in the laptop and boot it.  Then stop at OFW and
do a 'bat-dump-banks'. Then send on the output.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: New boot animation for 12.1.0

2012-03-26 Thread Richard Smith

 My point was if you hit escape once it stops you can see where the
 boot is stopping so to find out what is causing the problem.

He reported that doesn't work.

 pause at the ok prompt, but BEFORE the boot process stalls. [Once booting
 has paused at the single dot, pressing escape does nothing.]

I suspect what may be happening is that the screen is not getting
unfrozen.  So even though the system is running you won't ever see
anything and pressing escape won't help.

When you boot with pretty boot disabled check to see if powerd is
running.  If powerd isn't starting right then I don't think the screen
will get unfrozen.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: New boot animation for 12.1.0

2012-03-26 Thread Richard Smith
 pps.  Richard - when the pretty boot appears to stall, I do not think
 booting has gotten very far.  Without both USB devices plugged in, pretty
 boot eventually activates the camera LED (presumably while initializing the
 camera).  But when pretty boot stalls (with both USB devices plugged in),
 I did not see the camera LED ever being activated.
 [BTW, whenever booting completes and the system is up. powerd *is* running.]

ok. Well then someone will have to duplicate the setup and a serial
console to see whats up.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread Richard Smith
On Wed, Mar 14, 2012 at 1:35 AM, James Cameron qu...@laptop.org wrote:
 Grows the second partition so that it takes up all remaining space on
 the eMMC or microSD card.  Fix for #11690.  Part of #10040.

 Costs 120ms.  (Use of a flag file costs 130ms).


I don't think its necessary to do this check every boot. I propose you
move it to after fs-update has installed an image.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Battery - small irritation

2011-11-26 Thread Richard Smith
On Sat, Nov 26, 2011 at 11:24 AM, Kevin Gordon kgordon...@gmail.com wrote:
 Hi:

 I have received a new XO 1.5, shipped with a battery S/N starting with 008.

 Over the past few days, I've noticed something a tad strange.  No matter how
 long it's plugged in, the little charging  LED stays yellow.  However, the
 frame battery indicator says 100%

The full stop condition for battery charged is when the constant
voltage taper current drops below .12.  I suspect you have some sort
of cell defect that keeping the taper current above that.

Next time you are using the machine stop powerd and run olpc-pwr-log
in a terminal (you can use it normally) and let it run down until it
powers off.  Then remove the battery, power back up, run olpc-pwr-log
again and then re-insert the battery.  Let it charge until you see the
got to 100 and the 3rd and 4th column of numbers reach some sort of
steady state where they don't change much.  Ctrl-C and then send me
the file.

FYI. Col 3 is voltage in uV and col 4 is amperage in uA.

Also send me all the files you have in ~olpc/power-logs

Thanks.
-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Sad face

2011-09-09 Thread Richard Smith
On Sat, Sep 10, 2011 at 12:28 AM, James Cameron qu...@laptop.org wrote:
 On Sat, Sep 10, 2011 at 04:15:51AM +, Alan Jhonn Aguiar Schwyn wrote:
 No.. the XO is with security enabled..
 And the developer key from OLPC not works on Uruguayan XO..

 Then, without repair skills and equipment, there is nothing further you
 can do.

 But I'm surprised the developer key from OLPC does not work.  Please
 describe your exact experience with that process?  You may have missed a
 step.

Uruguay replaces the OLPC key with theirs.   There is nothing we can
do.  You must talk to Uruguay support.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Light sensor on XO-1.75

2011-08-29 Thread Richard Smith
On Mon, Aug 29, 2011 at 1:06 PM, Bert Freudenberg b...@freudenbergs.de wrote:
 On 17.08.2011, at 17:24, Martin Langhoff wrote:
 Saadia Baloch (4):
      Driver to read Outdoor Light Sensor from EC on OLPC.

 So this is exposed at

        /sys/devices/platform/olpc-ols.0/power_state

 And it seems to sit behind the blinking left-most LED? And the blink rate 
 is proportional to the light sensed? Why?

Its proportional because that's how  the sensor works.  The amount of
light changes the time to bleed off the charge stored in the diode
when you reverse bias it.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [OLPC-AU] Determining developer lock status

2011-03-10 Thread Richard Smith
 I'm still awaiting feedback from the school (getting information out
 of remote schools is often hard). I'm trying to ascertain whether
 their CL1As are developer locked.

According to the production info on your SKU (SKU 67) all your CL1As
where shipped unlocked.

-- 
Richard A. Smith
One Laptop per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: New keyboard layouts

2010-06-22 Thread Richard Smith
 Has there been any update with development and availability in the two
 months since this announcement?

Yes.  I travel to China the 27th to oversee the test build.. Those
machines will all get shipped to OLPC.  The volume production for
Uruguay will start in July.

If you are interested in ordering anything in volume (ie thousands)
then you should contact Gustavo at the association.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Testing] F11-for-XO1.5 Release 10.1.1 Release Candidate 2

2010-06-13 Thread Richard Smith

 Might also be worth running memtest from OFW as well, just to exclude
 certain other causes.

memtest will puke errors unless you set the lower address range to
30M.  Dunno why.  Guess a bug needs top be filed for sorting it out.

If you run memtest hit 'c' right after it starts to go into config
then '2' for address range '1' for lower limit.  Enter '30m' press
return then press '0' to restart the tests.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: schematic for olpc

2010-06-07 Thread Richard Smith
On Sun, Jun 6, 2010 at 4:42 PM, Michael Shiloh
michaelshiloh1...@gmail.com wrote:

 I'm interested in exploring the use of the microphone jack for other
 input devices.

 Before I start plugging things in at random, I need to understand what
 the circuitry at the input looks like.

 I assume the schematics can be found on the wiki, but I haven't been
 able to locate them.

 Can someone point me at the right page?

The schematics are not public.  If you can't find enough info on the
Measure pages from the other response then ask and we can provide it
for you.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Tecnologia] Adaptación de cargador múltiple, by CATS.

2010-06-06 Thread Richard Smith
 Another problem is getting XO compatible cables. We used cables from broken
 XO chargers, but this cables mostly (like 8 out of 10) break at the tip, so
 they generally need to be fixed to be reliable. And they don't end un
 looking pretty :)

I'm working on getting the plug + cable (ending in bare wires) added
as a replacement part.

Everyone interested in getting cables can help me by providing an
estimate of how many you need.
If they were available now how many of them would you be ordering?
Also how many do you project you will need in the future.  Some sort
of numbers on the failure rate will help too.  How long are they out
in the field before they fail?

Also it would be useful if someone can send me a collection of failed
plugs.  That would be useful to analyze the failures and see if they
are force failure or fatigue.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How can I recover a bum battery?

2010-05-23 Thread Richard Smith
On Sat, May 22, 2010 at 6:20 PM, Mikus Grinbergs mi...@bga.com wrote:
 ok batman-start
 ok bat-rewrite-life

 That fixed the second battery - when I plugged in the AC power to the
 XO, the Battery LED first turned yellow, and after a period of charging
 turned green.  I'm concluding the second battery is o.k.  Thanks.

Cool.  Various values may be incorrect until you go through a full
discharge/recharge cycle so don't be surprised if when you run on that
battery that it doesn't last as long as you expect.

 If the rewrite does not fix things look at bat-dump-banks again and verify 
 that the values
 changed.  If they did and its still broke then we will have to look at other 
 things.

 On the first battery, the values did change - but the Battery LED on the
 XO still stays dark when the AC power is plugged in.  [By the way, I
 have an XO-1.5 B2, if running batman.fth there would help things.]

running batman on it won't make any difference but the 1.5 firmware is
going to do a much better job of indicating what its unhappy with.
Update the 1.5 with the latest firmware and then put the battery in
that machine.  If the 1.5 does not do anything then I'll want to see
what the state machines are doing.

I'm not at a place I can look right now but I believe that I have a
bat-debug-log or something like that will log what the state machines
are doing to a log file on SD or USB.  Do you have a serial port?

The first series of things see-bstate does after battery insertion
would be useful.

 [on 1.5]

remove the battery.
ok see-bstate
insert battery.  Then copy the 1st 5 or 6 lines after the 0 1 2 's
stop repeating.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How can I recover a bum battery?

2010-05-22 Thread Richard Smith
 In my specific case, wiki.laptop.org/go/XO_Troubleshooting_Battery is
 not helpful enough.  [Results before/after 'batman-start' are not
 similar; results (after 'batman-start') with 'see-bstate' DO seem
 similar with either good or bum batteries (numbers don't cycle);

ok bat-dump-banks

Post the results.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Dead Production WLAN card

2010-05-20 Thread Richard Smith
On Thu, May 20, 2010 at 10:41 AM, Paul Fox p...@laptop.org wrote:
 nate wrote:

     In discussion with him a new piece of information was discovered.  He 
 is
    using the Network Manager wireless disable function prior to suspending 
 the
    card.   The wireless disable function is supposed to just turn off the 
 power
    to the WLAN but perhaps it is the reason he is able to kill the WLAN so
    quickly.
   
    Does anyone do this on a regular basis to their XO-1.5 ?

 to be clear, the mechanism he was using wasn't via NM, but via
 the sugar network control panel Radio checkbox.  (that
 checkbox is directly hooked up to the shell command rfkill
 un/block wifi.)

Are we talking about the same thing?  In IRC he specifically referrers
to GNOME and nm-applet.

[16:20:24] -*- jnettlet bearer of bad news.
[16:20:41] jnettlet I have returned and I believe my wifi is dead.
[16:21:26] cjb that's excellent news; we have a reliable test case now ;-)
[16:21:35] cjb (wad might not share my opinion of its excellence.)
[16:22:48] jnettlet cjb: but this may be software/firmware related.
I explicitly disabled the wifi card through nm-applet in GNOME, and
suspended the machine by closing the lid.
[16:23:13] jnettlet somehow I think sending the rfkill to the card
puts it in a state that is susceptible to getting zapped
[16:23:20] cjb ooh


-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Dead Production WLAN card

2010-05-20 Thread Richard Smith
On Thu, May 20, 2010 at 10:48 AM,  p...@laptop.org wrote:
 it seems i was mistaken.  the card was disabled using gnome's nm-applet.


Quanta was unable to duplicate the failure last night using the
GNOME/NM method.  Can we verify that they both do the same thing?
Just calling a simple script is much easier to test with.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: tap-to-click feedback

2010-04-15 Thread Richard Smith
On Thu, Apr 15, 2010 at 11:24 AM, Ed McNierney e...@laptop.org wrote:
 Paul -

 This issue has bubbled up from time to time over the last 18 months or so 
 (judging from my email archives).  It is not at all clear to me that there is 
 indeed a consensus from deployments; some like it, some don't.

Who are the ones that like it?  I don't remember any good feedback.

 We tend to (unsurprisingly) hear little or nothing from the people who think 
it's working just fine, and it is very easy for a local group in which a few 
folks think the behavior is wrong to quickly collectively conclude that it's 
wrong.  We've deployed hundreds of thousands of machines since this change, 
and I don't think we've seen hundreds of thousands of complaints.

When we first started testing the new pads this issues came up and
because it was a change in behavior from the way ALPS worked.  I
remember the end result was to disable it.  The problem is that its on
by default in the hardware.  You have to turn it off.  To turn it off
you have to run the synaptics driver.  Running the synaptics driver
caused many regressions.   We had too many other things to work on
rather than the synaptics driver so it shipped with it enabled.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Building Q2E41 - errors in missing nandblaster_tx.bin nandblaster_rx.bin

2010-02-12 Thread Richard Smith
 I did check out the Q2E41 commit, and it pulled down those files using
 wget and built a nandblaster_tx.bin from them.  You don't have one only
 because you're ignoring your linker errors; try on a different machine.


The older builds also used a specific version of iasl.  There were
versions of iasl floating out there that did not work.  The one on the
build machine for q2e41 is:

ASL Optimizing Compiler version 20061109 [Jun 19 2008]

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO-1.5 unexpected behavior

2009-10-17 Thread Richard Smith
 believe this will be fixed in the next (q3a14?) firmware.  the

http://dev.laptop.org/~rsmith/q30233.rom

Should fix your problems..  This EC version should also start showing
up in any pre-q3a14 releases Mitch makes.  But right now there aren't
any test releases.

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: gitweb-cgit

2009-03-10 Thread Richard Smith
Chris Ball wrote:


 Any complaints/obvious bugs/things I've missed?

Yeah... you broke the firmware builds.  I've fixed them now.

-- 
Richard A. Smith
smithb...@gmail.com

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


Re: q2e15 and a bricked BTest-2

2008-09-10 Thread Richard Smith
Jecel Assumpcao Jr wrote:

 
 I know that newer versions of the OS can't be used on such an old
 machine and had expected there to be limits for the firmware too, but
 everything I found on the wiki indicated that all versions are
 compatible with it (only ATest has limits).

Ugh.  Verified.  e15 bricks a B2.  I suspect that when I fixed the 
board ID table for the upcoming C3 I've somehow broken B2.

I'm investigating now.

-- 
Richard A. Smith
[EMAIL PROTECTED]

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


Re: q2e15 and a bricked BTest-2

2008-09-10 Thread Richard Smith
Jecel Assumpcao Jr wrote:

 It is hard to avoid having these things happen given all the versions of
 machines out there. Though it is still more like the early Mac days than
 the current PC world. When I was downloading e15 the second time to
 verify that I had the right bits, I did run across a notice that said
 that e12 was the latest stable version. By then it was too late, of
 course.

All 'e' series firmware will brick any machine using a Geode GX (B1  
B2) so e12 would have not have saved you.

B2's have been unsupported for quite a while now and we don't do any 
testing on them. Nor do we care to since we don't have the resources.

If you make and account on the developer program website and say you 
have a B2 that you want replaced we will send you a new MP machine. 
Make sure there is some sort of project listed with your request.

-- 
Richard A. Smith
[EMAIL PROTECTED]

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


Re: free usb8388.bin

2008-02-14 Thread Richard Smith
  Then it seems that something shuts off the wireless chip.
  Random guesses are that the driver and/or NetworkManager
  asks the EC to cut the power.

You can't cut power to the WLAN while running the CPU or you lose +3.3
and your system crashes.

The driver does however tell the EC to reset the WLAN if it thinks the
firmware download fails.  My guess is that the last time through that
loop it resets the chip and then drops out.  Leaving you with no
firmware.  Look in the libertas driver for the details

-- 
Richard A. Smith
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel