[lug] Open source laptops for kids - OLPC offer

Ryan Kirkpatrick linux at rkirkpat.net
Wed Jan 9 10:01:35 MST 2008


On Tue, 8 Jan 2008, Jordan Crouse wrote:

> > If the case is shut, it instantly comes back on(!).  Perhaps the mouse
> > pad some how notices some static??
> 
> Hmmm - it shouldn't do that.  Mine stays down for the count.  Are you 
> running joyride?  If so, then OHM might be running, and screwing things up.

I saw the same problem on my XO, and it is running build 650, what it came
with. Appears the possible wake-up events have not been sorted out quite
yet, and some are occurring when they should not, or at least paid
attention to when they should not.

Did some searching on OLPC's wiki, and found this brute force method:

#!/bin/sh
xset dpms force standby
while sleep 5 ;do
    xset dpms force standby
    su -c "echo mem > /sys/power/state"
done

Put the above in a script (~/sleep) and make it executable. Then run it
and close the laptop lid. After a few seconds you will see the power light
turn off and then blink occasionally, showing it is asleep. To wake up,
just open the laptop and hit Ctrl-C a few times. Not elegant, but from my
testing it appeared to work just fine. Note the that the xset command
turns off the screen for extra measure. TTYL.

---------------------------------------------------------------------------
|   "For to me to live is Christ, and to die is gain."                    |
|                                            --- Philippians 1:21 (KJV)   |
---------------------------------------------------------------------------
|   Ryan Kirkpatrick  |  Boulder, Colorado  |  http://www.rkirkpat.net/   |
---------------------------------------------------------------------------




More information about the LUG mailing list