Red Hat Bugzilla – Bug 177932
gnome-power-manager doesn't survive haldaemon restarting
Last modified: 2013-04-02 00:20:58 EDT
Any ideas on how this can be done? Should g-p-m just wait around until hal is
started again, or is this a race? Or for a fixed timeout (say 5 seconds) --
NetworkManager seems to survive haldaemon dying; might make sense to take a look
at that code to see what it is doing.
Thanks for the link, I'll see what I can do. This sortof depends on
http://bugzilla.gnome.org/show_bug.cgi?id=327235, but I'll fix it in the currect
HalDaemon does not start after patch received for it (Test 2 vanilla version
As result, GNOME POWER MANAGER does not work. (CORE5 TEST2)
Hal Daemon appeared to work on my system with initial release of Core5 Test2.
Then a patch arrived, and as a result of applying patch, HalDaemon fails to start.
When it fails to start, GNOME POWER MANAGER (for UPS monitoring) fails to start
Just curious what the status here is Richard.
Since I am not a linux internals man, I can only report what I see. My IT skills
are in other areas.
Is there a link between the HAL daemon and GNOME POWER MANAGER, or am I
I'm working on this at the moment, but it required refactoring other parts of
And Leslie, checkout http://www.gnome.org/projects/gnome-power-manager/
Now fixed in CVS.
2006-02-13 Richard Hughes <email@example.com>
* src/gpm-hal-monitor.c (gpm_hash_new_devices_cache,
gpm_hash_free_devices_cache): Add these so we can simplify our memory
management. We need to be more careful that what we were, as hal could be
restarted many times and we could loose lots of memory.
(hal_monitor_stop): Inline into _finalize, as not called elsewhere.
* src/gpm-hal.c (gpm_hal_enable_power_save): valgrind (quite rightly) warns of
use before set. Just initialise ret to zero.
* src/gpm-power.c (battery_device_cache_entry_free) remove, as broken.
(gpm_hash_new_kind_cache, gpm_hash_free_kind_cache, gpm_hash_new_device_cache,
gpm_hash_free_device_cache): Add these so we can simplify our memory management,
and not forget to free.
(gpm_power_init): Listen for the hal-disconnected signal so we can clear the
caches, else the devices think they are initialised.
Fixes bug #327234.