#10757 NORM Not Tri: XO-1.5 system time failed to adjust forward by rtcwake period

Zarro Boogs per Child bugtracker at laptop.org
Wed Mar 16 02:23:56 EDT 2011


#10757: XO-1.5 system time failed to adjust forward by rtcwake period
------------------------------------+---------------------------------------
           Reporter:  Quozl         |       Owner:               
               Type:  defect        |      Status:  new          
           Priority:  normal        |   Milestone:  Not Triaged  
          Component:  not assigned  |     Version:  not specified
         Resolution:                |    Keywords:               
        Next_action:  never set     |    Verified:  0            
Deployment_affected:                |   Blockedby:               
           Blocking:                |  
------------------------------------+---------------------------------------

Comment(by Quozl):

 Symptom can occasionally be reproduced by repeated rtcwake usage, which is
 what the panelpwr-log script did.  powerd is disabled or stopped.  The
 following function repeats rtcwake until the elapsed time is
 inconsistently low.  Care must be taken not to wake the laptop with
 touchpad or keyboard.  Main battery is removed, so as to avoid state of
 charge wakeup.

 {{{
 # engage the symptom,
 # has worked, but rarely, of the order of once a day.
 function 10757_engage {
   C=100
   until [ $C -lt 9 ]; do
     echo -ne 'suspend\r'
     A=$(date +%s)
     rtcwake -m mem -s 10 -u >/dev/null
     B=$(date +%s)
     C=$(($B-$A))
     echo $A $B $C
     sleep 2
   done
 }
 }}}

 Once infected, the symptom remains until hwclock is run:

 {{{
 # disengage the symptom,
 # after this the system time is properly adjusted forward after an rtcwake
 function 10757_disengage {
   hwclock --systohc --utc;
 }
 }}}

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


More information about the Bugs mailing list