Bugzilla – Bug 102960
ERROR in Function initHal; line 38: could not init hal library: (null)
Last modified: 2007-06-05 10:01:23 UTC
besides $summary, /var/log/messages shows: Aug 8 18:02:10 heron kernel: powernow-k8: Power state transitions not supported Aug 8 18:02:10 heron rcpowersaved: CPU frequency scaling is not supported by your processor. Aug 8 18:02:10 heron rcpowersaved: enter 'CPUFREQD_MODULE=off' in /etc/sysconfig/powersave/cpufreq to avoid this warning. Aug 8 18:02:10 heron rcpowersaved: Cannot load cpufreq governors - No cpufreq driver available Aug 8 18:02:10 heron [powersave][14409]: ERROR in Function PM_Interface; line 241: Cannot create cpufreq objects Aug 8 18:02:10 heron [powersave][14409]: ERROR in Function initHal; line 38: could not init hal library: (null) Aug 8 18:02:10 heron [powersave][14409]: ERROR in Function getACAdapterStatus; line 269: could not init hal Aug 8 18:02:12 heron [powersave][14409]: WARNING in Function filter_function; line 250: Received message from invalid interface Aug 8 18:02:12 heron [powersave][14409]: WARNING in Function filter_function; line 250: Received message from invalid interface
Holger: I think this is a bug in powersave. looks as powersave try to connect to HAL while HAL isn't ready.
Yes, you ar e right. But what't the problem. I will remove the second error message from getACAdapterStatus() and decrease severity from initHal from ERROR to warning. Tell me if there is another problem...
Is there a dependency of powersave on hal in the init scripts? If it is, then why is the start up script of hal finished before hal is ready?
Yes, there is a dependeny. If hal starts the init script is immediately back and return successful. HAL is started in this moment. This is the correct behavior. If hald starts, hal is "ready", but you can access the hal-service over DBUS first if hal ends the initial import of hardwareinformation and provides his services. To prevent such errors, you has to check if HAL provides his services over dbus currently or you must check the errorcode of the called function and retry later.
reduced debug level and removed second error message
This seems to happen on every boot. So we need a better solution. Danny: How can I check if Hal is really ready? Is there a signal emitted over dbus? Or any corresponing function?
Ok, added check if hal service is registered with dbus. If not, proper warning is thrown.