[Trac #224] Want IRQ on power/battery status change.

Zarro Boogs per Child bugtracker at laptop.org
Tue Jan 23 17:19:17 EST 2007


#224: Want IRQ on power/battery status change.
---------------------+------------------------------------------------------
 Reporter:  dwmw2    |        Owner:  dwmw2  
     Type:  defect   |       Status:  new    
 Priority:  high     |    Milestone:  BTest-3
Component:  kernel   |   Resolution:         
 Keywords:  relnote  |  
---------------------+------------------------------------------------------
Comment (by rchokshi):

 Replying to [comment:8 JordanCrouse]:
 > One of the EC SCI wake events should should be 'wireless event' as per
 #679.

 I came across this trac issue and would like to mention that we are
 incorporating the capability to factor-in the battery condition of the
 laptop in the metric calculations for the forwarding table for every next
 hop. This has been under discussion with Michail since a long time now.
 Here is what we have been discussing with Michail so far:

 The calculation of metric uses the battery information available from the
 host. This information is primarily available from the GPIO connections on
 the Marvell USB 8388 module. GPIOs [13:15] are used for this and are
 connected with the EC. The values coming from the EC on the GPIOs are
 assumed to:

 -       high level: 1
 -       low level: 0

 We are also assuming for now that the output from GPIO [13] will be the
 LSB. Hence, the output coming from GPIO[13:15] will form an integer value
 0 - 7. The lower the value the lower the battery power. This value as
 mentioned above will be factoring in the formula for metric calculation.
 We are assuming that these GPIOs would be controlled by the battery
 driver. I am assuming that the battery driver will need some modification
 for this but I am not sure if the above is already thought about. The
 frequency of the battery driver output on the GPIOs are assumed to be of
 the order to 1 – 5 seconds.

 The hardware connections for this are done already starting from A-test, I
 think.

 Please let me know if this sounds appropriate to everyone.

-- 
Ticket URL: <http://dev.laptop.org/ticket/224#comment:9>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list