Bug 234881 - Battery Monitor Widget stops working when hald is not running
Summary: Battery Monitor Widget stops working when hald is not running
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-battery (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 13:41 UTC by Richard
Modified: 2011-02-06 00:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2010-04-20 13:41:53 UTC
Version:            (using KDE 4.4.2)
Compiler:          GCC 4.4.3 CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block"
OS:                Linux
Installed from:    Gentoo Packages

xorg-server 1.8.0 came out recently and I upgraded my laptop to it. It has a feature that is meant to eliminate the need for hal by replacing it with udev, but it seems that I cannot avoid using hal because of a dependency the battery monitor has on it.

You can reproduce this by upgrading xorg-server on a laptop to 1.8.0, replacing hal with udev, remove hald from your distribution's run levels, removing hald rom your distribution's run levels, stopping hald if you do not reboot and then starting KDE. If you use the nvidia-drivers, you will likely need to set IgnoreABI in your xorg.conf file in order to get xorg-server to work. When you are in KDE, you should notice that the battery monitor widget can no longer detect a battery.

Re-adding hald to the default run level and rebooting seems to workaround this issue. I am not sure if this should be reported as a Bug or a wishlist item.
Comment 1 Frank Steinmetzger 2010-11-29 06:25:07 UTC
I can confirm this on a fresh install with xserver 1.9 and 4.5.3. With stopped hal the applet shows a count of 0 CPUs. :-) Restarting hal, even during the same KDE session, brings the count back to 2.
Comment 2 Lamarque V. Souza 2011-02-06 00:47:18 UTC
Fixed in 4.6.0 as long as you install upower to replace hald.