[Kde-hardware-devel] Battery Applet fails to detect battery - possible issue with Solid correctly detecting the battery...

Roderick B. Greening roderick.greening at gmail.com
Fri Aug 28 19:22:20 CEST 2009


Here's a diff of the output from lshal (before  vs after detecting battery). 
The battery shows up in lshal after I remove the AC power and reconnect.

At some point in the recent past, it was detecting my battery, and I was 
running KDE 4.2 or 4.3 at the time. So, I expect the BIOS to be ok. However, 
you indicate maybe HAL, ACPI/Kernel as possible other culprits.

Based on the output below, any suggestions?

diff -u lshal-noshow.txt lshal.txt 
--- lshal-noshow.txt    2009-08-28 14:47:18.389263434 -0230              
+++ lshal.txt   2009-08-28 14:47:34.837264428 -0230                      
@@ -1,5 +1,5 @@                                                          
                                                                         
-Dumping 150 device(s) from the Global Device List:                      
+Dumping 151 device(s) from the Global Device List:                      
 -------------------------------------------------                       
 udi = '/org/freedesktop/Hal/devices/computer'                           
   info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list) 
@@ -53,6 +53,40 @@                                                       
   system.kernel.version.micro = 31  (0x1f)  (int)                       
   system.kernel.version.minor = 6  (0x6)  (int)                         
                                                                         
+udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1' 
+  battery.charge_level.current = 45414  (0xb166)  (int)                 
+  battery.charge_level.design = 48600  (0xbdd8)  (int)                  
+  battery.charge_level.last_full = 45414  (0xb166)  (int)               
+  battery.charge_level.percentage = 100  (0x64)  (int)                  
+  battery.charge_level.rate = 0  (0x0)  (int)                           
+  battery.is_rechargeable = true  (bool)                                
+  battery.model = 'AS07B51'  (string)                                   
+  battery.present = true  (bool)                                        
+  battery.rechargeable.is_charging = false  (bool)                      
+  battery.rechargeable.is_discharging = false  (bool)                   
+  battery.reporting.current = 4205  (0x106d)  (int)                     
+  battery.reporting.design = 4500  (0x1194)  (int)                      
+  battery.reporting.last_full = 4205  (0x106d)  (int)                   
+  battery.reporting.rate = 0  (0x0)  (int)                              
+  battery.reporting.technology = 'Li-ion'  (string)                     
+  battery.reporting.unit = 'mAh'  (string)                              
+  battery.serial = '133'  (string)                                      
+  battery.technology = 'lithium-ion'  (string)                          
+  battery.type = 'primary'  (string)                                    
+  battery.vendor = 'PANASONIC'  (string)
+  battery.voltage.current = 12362  (0x304a)  (int)
+  battery.voltage.design = 10800  (0x2a30)  (int)
+  battery.voltage.unit = 'mV'  (string)
+  info.capabilities = {'battery'} (string list)
+  info.category = 'battery'  (string)
+  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
+  info.product = 'AS07B51'  (string)
+  info.subsystem = 'power_supply'  (string)
+  info.udi = 
'/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1'  (string)
+  linux.hotplug_type = 2  (0x2)  (int)
+  linux.subsystem = 'power_supply'  (string)
+  linux.sysfs_path = 
'/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1'  (string)
+
 udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2'
   button.has_state = false  (bool)
   button.type = 'sleep'  (string)
@@ -3064,6 +3098,6 @@
   info.udi = '/org/freedesktop/Hal/devices/fuse'  (string)


-Dumped 150 device(s) from the Global Device List.
+Dumped 151 device(s) from the Global Device List.
 ------------------------------------------------
_______________________________________
Roderick B. Greening, B.Sc.
Paradise, NL Canada
E-mail/MSN: roderick.greening at gmail.com 
LP: launchpad.net/~roderick-greening 
Wiki: wiki.ubuntu.com/rgreening 
Blog: roderick-greening.blogspot.com 
Twitter: twitter.com/rgreening
Identica: identi.ca/rgreening


> On Thursday 27 August 2009 17:47:38 Roderick B. Greening wrote:
> > When I first boot up, with or without my AC adapter plugged in, the
> > Battery plasma applet (power management) does not detect I have a
> > Battery. If I remove or plug in the power it will trigger Solid to update
> > and then it picks up the following UDI:
> >
> > udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1'
> >
> > This only gets picked up if I trigger a state change (i.e. add or remove
> > the AC adapter). If I do not do this, then the battery remains
> > undetected.
>
> From the description I'd say it's a problem on HAL's end, and possibly even
> some BIOS playing funny. Just to be sure could you make the same test using
> lshal as well? in the "noshow" case
> /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1 shouldn't
> appear there either. If that's what happens then it's completely out of
> libsolid's hand and should be reported to HAL (although I'd also suspect
> some ACPI brokeness, which means problem in the linux kernel or your bios).
>
> Hope that helps.
>
> Regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20090828/3a6f057f/attachment.sig 


More information about the Kde-hardware-devel mailing list