#9542 NORM 1.5-F11: Battery icon duplicated

Zarro Boogs per Child bugtracker at laptop.org
Fri Nov 13 09:58:08 EST 2009


#9542: Battery icon duplicated
--------------------------------+-------------------------------------------
           Reporter:  bert      |       Owner:  marco        
               Type:  defect    |      Status:  new          
           Priority:  normal    |   Milestone:  1.5-F11      
          Component:  sugar     |     Version:  not specified
         Resolution:            |    Keywords:               
        Next_action:  diagnose  |    Verified:  0            
Deployment_affected:            |   Blockedby:               
           Blocking:            |  
--------------------------------+-------------------------------------------

Comment(by pgf):

 hmm.  maybe not.  devkit-power doesn't properly grok our (OLPC) battery
 driver, the one enabled by CONFIG_POWER_SUPPLY.  i don't know if this is
 by design, or by oversight.  in any case, we may need to do one of:

  - remove the ACPI battery driver, and live with or fix the devkit-power
 behavior so that it correctly reports charge level
  - remove the OLPC battery driver, expose the charge_counter information
 elsewhere, and make sure the ACPI-provided data is accurate (need to do
 this anyway).
  - leave both drivers, hide one of them in HAL using, for example:

 {{{
 <?xml version="1.0" encoding="UTF-8"?>
 <deviceinfo version="0.2">
   <device>
     <match key="linux.sysfs_path" contains="platform/olpc-battery.0">
       <merge key="info.ignore" type="bool">true</merge>
     </match>
   </device>
 </deviceinfo>
 }}}
 and either let gnome continue to see both devices, or investigate not
 using gnome power manager.  (it's not clear gnome-power-manager is the
 right choice for us anyway, but there will be pressure to support it.)

 perhaps i should add:  devkit-power has no ability currently to hide a
 device.  nor can it be done at the udev level:
 http://www.spinics.net/lists/hotplug/msg03074.html

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


More information about the Bugs mailing list