#6761 NORM -: Suspend/resume problems

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 11 11:49:58 EST 2008


#6761: Suspend/resume problems
---------------------------------+------------------------------------------
           Reporter:  ssb22      |       Owner:  jg      
               Type:  defect     |      Status:  reopened
           Priority:  normal     |   Milestone:          
          Component:  distro     |     Version:          
         Resolution:             |    Keywords:          
        Next_action:  never set  |    Verified:  0       
Deployment_affected:             |   Blockedby:          
           Blocking:             |  
---------------------------------+------------------------------------------
Changes (by ssb22):

  * next_action:  => never set


Comment:

 I have now installed build 767 (firmware Q2E18) on my B4 test machine.
 Closing the lid, or briefly pressing the power button while the XO is
 running, still does nothing, no matter what I set the control panel's
 power management to.  I can still write a "cpuoff" command, although you
 now have to do a little more to switch the backlight off under program
 control:

 alias cpuoff="sudo bash -c 'cd /etc/ohm/plugins.d; mv backlight.ini b;
 (echo backlight.hardware_brightness 0 public; echo
 backlight.direct_set_brightness 0 public; echo
 backlight.percent_brightness 0 public) > backlight.ini ; /etc/init.d/ohmd
 restart;sleep 1;mv b backlight.ini';sync;clear;sleep 1;sudo bash -c 'echo
 mem > /sys/power/state'"

 but then cpuoff needs to be typed in the terminal (and the lid closed very
 quickly, if you're going to close it, otherwise closing the lid brings it
 out of that state).

 It would be very nice if I could associate the power button or the lid
 closing with that script, but it's not obvious what events they generate
 and how to hook the script into it.

-- 
Ticket URL: <http://dev.laptop.org/ticket/6761#comment:5>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list