Blinking red battery light on XO-1

2012-08-03 Thread Hal Murray

rich...@laptop.org said:
 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. 

I just got one.

When I got to OFW, it told me the lid switch was active and gave me 8 seconds 
before it powered off.  On power up again, it was fine and the battery light 
was green.

I wasn't smart/fast enough to notice when the battery light stopped blinking.

Is there anything I can do while still running Linux?



-- 
These are my opinions.  I hate spam.



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


Re: Blinking red battery light on XO-1

2012-08-03 Thread James Cameron
On Fri, Aug 03, 2012 at 02:04:10PM -0700, Hal Murray wrote:
 When I got to OFW, it told me the lid switch was active and gave me
 8 seconds before it powered off.

Presumably the lid switch was not actually active and the EC was
misbehaving.

Onk XO-1, the magneto resistive sensor for the lid switch is connected
to the embedded controller, and this advises Open Firmware of the lid
being closed.

To avoid it powering off, type lid-off and press enter.  Yes, you only
have eight seconds to do this.

That way you might have been able to use watch-battery as Richard had
suggested.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Blinking red battery light on XO-1

2012-08-03 Thread Hal Murray

qu...@laptop.org said:
 To avoid it powering off, type lid-off and press enter.  Yes, you only have
 eight seconds to do this. 

The printout said that, but I didn't even get started typing before it timed 
out.

I'm not sure where 8 seconds came from.  If that happened often enough I'd 
probably be able to do it fast enough.  But that was the first time I had 
seen it.  I wasn't quick enough to read and understand and type.  Remember, I 
was trying to not destroy the evidence so I was going slowly.

-

Something similar happened a few months ago which is why I saved Richard's 
message.

I have a hack script that reboots the XO every 4 hours.  It's got a patch to 
check
  /sys/class/power_supply/olpc-battery/error
and log the answer instead of rebooting.  The error was 20

(Sorry I didn't remember to look there earlier.)



-- 
These are my opinions.  I hate spam.



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


Re: Blinking red battery light on XO-1

2012-08-03 Thread James Cameron
On Fri, Aug 03, 2012 at 08:38:05PM -0700, Hal Murray wrote:
 
 qu...@laptop.org said:
  To avoid it powering off, type lid-off and press enter.  Yes, you only have
  eight seconds to do this. 
 
 The printout said that, but I didn't even get started typing before
 it timed out.

Yes, but I wanted you to be ready to have to do it.

 I'm not sure where 8 seconds came from.  If that happened often
 enough I'd probably be able to do it fast enough.  But that was the
 first time I had seen it.  I wasn't quick enough to read and
 understand and type.  Remember, I was trying to not destroy the
 evidence so I was going slowly.

Sure, not a criticism, just making sure you have the tools you need.

The eight seconds comes from here:

http://tracker.coreboot.org/trac/openfirmware/browser/dev/olpc/lid.fth#L6

There's a two second delay before the message appears.

The timer starts as soon as ok is printed.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel