LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-18-2007, 06:38 AM   #1
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
HAL not starting on Lenny/Sid


Hello,

I recently reinstalled debian by installing Etch and then dist-upgraded to Lenny. Since that time HAL simply will not start. As a result, gnome-volume-manager wont run either which I found extrememly useful. Here are some outputs of various commands:

Code:
adz@hades:~$ sudo /etc/init.d/hal start
Starting Hardware abstraction layer: haldadz@hades:~$
No errors but no HAL running.

Code:
adz@hades:~$ sudo /etc/init.d/dbus restart
Stopping Hardware abstraction layer: hald.
Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Stopping System Tools Backends: system-tools-backends.
Stopping system message bus: dbus.
Starting system message bus: dbus.
Starting System Tools Backends: system-tools-backends.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting Hardware abstraction layer: haldinvoke-rc.d: initscript hal, action "start" failed.
Generates an error but I have no idea what this means. I've tried looking in /etc/init.d/hal for "haldinvoke" or whatever else and I can't find it.

Now, manually running hald:
Code:
adz@hades:~$ sudo hald --daemon=yes --verbose=yes
21:34:20.307 [I] hald.c:529: hal 0.5.9.1
21:34:20.308 [I] hald.c:538: Will daemonize
21:34:20.308 [I] hald.c:539: Becoming a daemon
Looks like it's doing something but nothing actually happens. There is no process called "hald" running.

Web search turned up nothing. I have no idea what's wrong since I can't get any useful error messages. Anyone have any ideas?

Last edited by adz; 07-18-2007 at 06:39 AM.
 
Old 07-18-2007, 07:22 PM   #2
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
in the man page for it, it recommends saying dameon=no and verbose=yes. It gives alot more output that way I think. At least it did for my friend...
 
Old 07-19-2007, 02:23 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Original Poster
Rep: Reputation: 53
Finally! Thanks for the tip. I finally got it working because of you. Do you want to know what the problem was? There was no group called "haldaemon". That's all. I created the group and now it works. What a load off my mind.
 
Old 07-19-2007, 03:41 AM   #4
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
I think I have exactly the same problem.

Can you explain me how you have created the group ?
 
Old 07-19-2007, 06:55 AM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Original Poster
Rep: Reputation: 53
You just use the command addgroup haldaemon. You have to be root, though, so either run su beforehand or use the command sudo addgroup haldaemon instead.
 
Old 07-19-2007, 06:58 AM   #6
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
Thanks fior your reply.

Should I have to add users to this group ?
 
Old 07-19-2007, 07:08 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Original Poster
Rep: Reputation: 53
No that wont be necessary. You may need to add the user "haldaemon", though. Try without first and see how you go. I think hald simply runs as the user "haldaemon" and with only those permissions it needs. Hence the need for a "haldaemon" group.
 
Old 07-19-2007, 10:22 AM   #8
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
It does not work, I still have this group.

My problem is related to the new kernel installed because, on the old kernel, everything is working well, I do not have any problem.

Any idea ?
 
Old 07-19-2007, 11:29 AM   #9
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
run
hald --dameon=no --verbose=yes
and it should tell you what it's angry about.
 
Old 07-19-2007, 04:46 PM   #10
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Original Poster
Rep: Reputation: 53
Do as war1025 suggested. Also, did you compile your own kernel or is it a prebuilt debian one?
 
Old 07-22-2007, 03:36 AM   #11
adrian82
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
Hello,

the output from hald in verbose-mode is as follows on my Debian Lenny with 2.6.22.1. See also Debian-Bug #426049.

Code:
root@shibuya:~> hald --daemon=no --verbose=yes
10:07:43.504 [I] hald.c:529: hal 0.5.9.1
10:07:43.505 [I] hald.c:594: Will not daemonize
10:07:43.506 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-lXxeHtE46Y,guid=ad6400d14d113915c26f860046a3104f
Runner started - allowed paths are '/usr/lib/hal:/usr/lib/hal/scripts:/usr/bin'
10:07:43.517 [I] hald_runner.c:299: Runner has pid 8001
10:07:43.519 [W] ci-tracker.c:200: Could not get uid for connection: org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name 'org.freedesktop.DBus': no such name
10:07:43.520 [E] hald_dbus.c:4462: Cannot get caller info for org.freedesktop.DBus
10:07:43.520 [I] hald_runner.c:180: runner connection is 0x8092858
10:07:43.533 [I] mmap_cache.c:251: cache mtime is 1185090119
*** [DIE] osspec.c:watch_fdi_files():349 : Unable to initialize inotify: Function not implemented

I'm about to recompile my kernel with Inotify-support and see if this fixes hald.

Adrian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 10:44 AM
Various problems with xorg 7.2 under debian (Lenny/Sid) with i810 driver. adz Debian 5 07-22-2007 07:55 AM
Enabling direct rendering for beryl on an nvidia card? (Debian Lenny/Sid) Hungry ghost Debian 7 07-08-2007 12:24 PM
Boot freezes at "Starting HAL daemon" after Kernel recompile DiBosco Linux - Software 2 04-14-2007 05:53 AM
Sid users - lsymbol getxattr, version Sid : ATTR_1.0 not defined in file libattr.so.1 nx5000 Debian 2 12-19-2006 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration