2008/4/2, Sam Morris &lt;<a href="mailto:sam@robots.org.uk">sam@robots.org.uk</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Could you clarify this for me?<br> <br> I understand that if you boot up without a battery inserted, the battery<br> information is not present in the sysfs. I wonder what happens when you<br> insert a battery after booting up; does an entry for it appear in the<br>
 sysfs?</blockquote><div><br>Yes, a battery entry appears in the sysfs. And checking with hal-find-by-capability --capability &quot;battery&quot; the battery is correctly detected by hal too, without needing a hal restart.<br>
But the power-managers (both kde-guidance-power-manager and kpowersave) have to be restarted to correctly detect the inserted battery. After this restart (with the battery inserted) the power-managers behave correctly even when disconnecting the battery again.<br>
In the end I think the problem is not hal&#39;s fault in detecting battery, but somewhere between hal notifications to the power-managers and the power-managers themselves (maybe they need updates or patches to correctly deal with sysfs and newer versions of hal...)</div>
<br>Daniele Benucci.<br></div><br>-- <br>Grabel&#39;s Law:<br>2 is not equal to 3 -- not even for large values of 2.