Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hald fails to start - how to debug?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Sat May 23, 2009 6:04 pm    Post subject: hald fails to start - how to debug? Reply with quote

Hi :-)

First of all I would like to explain why I'm posting this in "Unsupported Software". I am usually very cautious but this time I've decided to have some fun, go a bit on the crazy side and install the most "unstable" Gentoo I could :-D That's why I'm using paludis, gcc-4.4 (alpha) with very "ricy" CFLAGS , kde-4.3 beta and lots more :-) I know that most probably the problem I'm experiencing is caused by the experimental packages, but maybe there's something else I'm doing wrong?

Now, about the problem - hald refuses to start and I have no idea why. I also don't know how to debug it. I've enabled "HALD_VERBOSE" but there are tons and tons of messages that mean nothing to me :-( The only things that look like errors are theese:

Code:
$ egrep -i "error|\[E\]" messages
May 23 18:55:36 maciekz-desktop hald[5119]: 18:55:36.927 [E] ck-tracker.c:371: Error doing GetSeats on ConsoleKit: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
May 23 18:55:36 maciekz-desktop hald[5119]: 18:55:36.927 [E] ck-tracker.c:812: Could not get seats and sessions
May 23 18:55:37 maciekz-desktop hald[5119]: 18:55:37.065 [E] acpi.c:762: Couldn't open /proc/acpi/battery: Error opening directory '/proc/acpi/battery': No such file or directory
May 23 18:55:37 maciekz-desktop hald[5119]: 18:55:37.065 [E] acpi.c:762: Couldn't open /proc/acpi/button/lid: Error opening directory '/proc/acpi/button/lid': No such file or directory
May 23 18:55:37 maciekz-desktop hald-probe-serial: [5131]: 18:55:37.567 [E] probe-serial.c:84: serial port /dev/ttyS1 seems not to exist
May 23 18:55:37 maciekz-desktop hald-probe-serial: [5132]: 18:55:37.577 [E] probe-serial.c:84: serial port /dev/ttyS2 seems not to exist
May 23 18:55:37 maciekz-desktop hald-probe-serial: [5133]: 18:55:37.578 [E] probe-serial.c:84: serial port /dev/ttyS3 seems not to exist
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.231 [E] acpi.c:762: Couldn't open /proc/acpi/battery: Error opening directory '/proc/acpi/battery': No such file or directory
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.231 [E] acpi.c:762: Couldn't open /proc/acpi/fan: Error opening directory '/proc/acpi/fan': No such file or directory
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.231 [E] acpi.c:762: Couldn't open /proc/acpi/ac_adapter: Error opening directory '/proc/acpi/ac_adapter': No such file or directory
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.231 [E] acpi.c:762: Couldn't open /proc/acpi/button/lid: Error opening directory '/proc/acpi/button/lid': No such file or directory
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.231 [E] acpi.c:762: Couldn't open /proc/acpi/button/sleep: Error opening directory '/proc/acpi/button/sleep': No such file or directory
May 23 18:55:38 maciekz-desktop hald-addon-storage: [5136]: 18:55:38.279 [E] addon-storage.c:590: Error doing Manager.GetSystemIdleHint on ConsoleKit: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.278 [E] device.c:1705: In hal_device_inc_num_ready_addons for udi=/org/freedesktop/Hal/devices/storage_model_DVDRAM_GH22NS40 but all addons are already ready!
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.338 [E] hald_runner.c:671: Error running 'hald-addon-acpi': org.freedesktop.DBus.Error.Disconnected: Connection was disconnected before a reply was received
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.338 [E] hald.c:124: Cannot start addon hald-addon-acpi for udi /org/freedesktop/Hal/devices/computer
May 23 18:55:38 maciekz-desktop hald[5119]: 18:55:38.364 [E] device.c:1705: In hal_device_inc_num_ready_addons for udi=/org/freedesktop/Hal/devices/computer but all addons are already ready!
May 23 18:55:38 maciekz-desktop /etc/init.d/hald[5109]: ERROR: hald failed to start
May 23 18:55:38 maciekz-desktop hald-addon-acpi: [5149]: 18:55:38.364 [E] addon-acpi.c:52: Cannot open /proc/acpi/event: No such file or directory


I've also managed to narrow down the hal configuration files that are causing problems:
* 10-cpufreq.fdi
* 10-input-policy.fdi
* 10-power-mgmt-policy.fdi
* 20-storage-methods.fdi

If I remove all of them from /usr/share/hal/fdi/policy/10osvendor hald starts and if I put either one back, it fails.

I would be very grateful for any on pointers what I could do to fix/debug the problem :-) I'm also happy to give more info, if its needed.

Best regards,
Crocodil
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Sat May 23, 2009 8:20 pm    Post subject: Reply with quote

Do you have anything in /proc

Do you have acpi setup in your kernel?

Most of the errors indicate that /proc/acpi does not exist or you have not loaded modules for acpi.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Sat May 23, 2009 9:40 pm    Post subject: Reply with quote

Hi drescherjm :-)

Yes, I do have ACPI enabled in kernel, here's how the options look (this is an AMD64 desktop):

Quote:
--- ACPI (Advanced Configuration and Power Interface) Support
[*] Deprecated /proc/acpi files
[*] Deprecated power /proc/acpi directories
[*] Future power /sys interface
[*] Deprecated /proc/acpi/event support
<M> AC Adapter
< > Battery
<M> Button
<M> Fan
-*- Dock
<M> Processor
<M> Thermal Zone
[ ] Debug Statements
< > PCI slot detection driver
< > ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL)
< > Smart Battery System


I have acpid running and here are the modules, that are loaded:
Quote:
$ lsmod
Module Size Used by
tuner_simple 13124 1
tuner_types 17656 1 tuner_simple
tea5767 6268 0
tda9887 10316 1
tda8290 13676 0
tuner 26084 0
cx8800 31196 0
cx88xx 70520 1 cx8800
ir_common 41756 1 cx88xx
i2c_algo_bit 5692 1 cx88xx
tveeprom 13420 1 cx88xx
v4l2_common 14680 2 tuner,cx8800
videodev 38064 4 tuner,cx8800,cx88xx,v4l2_common
v4l1_compat 12268 1 videodev
v4l2_compat_ioctl32 9016 1 videodev
btcx_risc 4304 2 cx8800,cx88xx
videobuf_dma_sg 11308 2 cx8800,cx88xx
k8temp 4840 0
hwmon 2672 1 k8temp
videobuf_core 15964 3 cx8800,cx88xx,videobuf_dma_sg
forcedeth 54184 0
i2c_nforce2 6856 0
i2c_core 21224 10 tuner_simple,tea5767,tda9887,tda8290,tuner,cx88xx,i2c_algo_bit,tveeprom,v4l2_common,i2c_nforce2
thermal 18792 0
processor 32520 1 thermal
button 7208 0


And here's what in /proc/acpi:
Quote:
$ ls -al /proc/acpi
razem 0
dr-xr-xr-x 7 root root 0 05-23 23:30 .
dr-xr-xr-x 64 root root 0 2009-05-24 ..
dr-xr-xr-x 3 root root 0 05-23 23:32 button
-r-------- 1 root root 0 05-23 23:32 dsdt
dr-xr-xr-x 2 root root 0 05-23 23:32 embedded_controller
-r--r----- 1 root haldaemon 0 05-23 23:30 event
-r-------- 1 root root 0 05-23 23:32 fadt
-r--r--r-- 1 root root 0 05-23 23:32 info
dr-xr-xr-x 2 root root 0 05-23 23:32 power_resource
dr-xr-xr-x 3 root root 0 05-23 23:32 processor
dr-xr-xr-x 2 root root 0 05-23 23:32 thermal_zone


I've also tried disabling all the "deprecated" options but that didn't change anything...

Do you see something wrong with my ACPI setup?

Best regards,
Crocodil
Back to top
View user's profile Send private message
brice_
n00b
n00b


Joined: 04 Jun 2009
Posts: 3
Location: Grenoble, France

PostPosted: Thu Jun 04, 2009 9:23 am    Post subject: Re: hald fails to start - how to debug? Reply with quote

Hello,

I have almost the same problem (with gcc-4.4 and graphite but with certainly more regular cflags).
hal (rc1_r6) is compiled with "X acpi consolekit laptop policykit". Any version of hal from the latest stable one included would fail.
The only way to have hal started and running on my machine iis to remove from /usr/share/hal/fdi/policy/10osvendor/ the following file only :
- 20-storage-methods
with the previous version (rc1_r4) I had the same problem with these 4 files.
Regards
Back to top
View user's profile Send private message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Sat Jun 06, 2009 7:58 am    Post subject: Reply with quote

Hi :-)

I'm affraid I won't be able to help you, as I haven't found a solution for the problem... I've finally gave up and reinstalled the system with more common-sense flags:
Quote:
CFLAGS="-O2 -march=native -floop-interchange -floop-strip-mine -floop-block -pipe"
CXXFLAGS="-O2 -march=native -floop-interchange -floop-strip-mine -floop-block -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

Now I have absolutely no problems and all I can say is that KDE 4.3 is going to be SWEEEET ;-)

Best regards,
Crocodil
Back to top
View user's profile Send private message
hubert_star
n00b
n00b


Joined: 07 Jun 2009
Posts: 2

PostPosted: Sun Jun 07, 2009 3:41 pm    Post subject: Reply with quote

I have same problem.

I'm installed a system using a server(intel core2 E4500), and hal is running.

then, i dump the system and untar in my notebook (dell 1420 intel core2 T7800).

hal start failed always.

and i remove some fdi file and change USE flag/ CFLAG, it's always failed.

I thinks it's depanding on machine(or cpu?).
Back to top
View user's profile Send private message
ipse
n00b
n00b


Joined: 09 Jun 2009
Posts: 1

PostPosted: Tue Jun 09, 2009 10:10 pm    Post subject: Reply with quote

I have same problem.
https://bugs.gentoo.org/show_bug.cgi?id=273111
Back to top
View user's profile Send private message
brice_
n00b
n00b


Joined: 04 Jun 2009
Posts: 3
Location: Grenoble, France

PostPosted: Thu Jun 11, 2009 3:30 pm    Post subject: Reply with quote

hi
so it was certainly a kernel problem for me. same config but for 2.6.30 and hal no longer crashes... weird.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum