LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2010, 01:13 PM   #1
turf
Member
 
Registered: Nov 2009
Posts: 94

Rep: Reputation: 15
i've disable hal as it hangs everytime its on.


i've disable hal as it hangs everytime its on.

is it alright to disable it?
what does it really do anyway?
 
Old 08-14-2010, 02:45 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
To answer your second question first:
http://en.wikipedia.org/wiki/HAL_(software)


As for disabling it: depends on your usage patterns, or
how good you are writing udev-scripts. I don't need it
(fluxbox doesn't make use of it), but other people with
larger Desktop Managers may find it helpful.


Cheers,
Tink
 
Old 08-14-2010, 07:21 PM   #3
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
thanks. not sure if i really need it though.. but how can i disable it permanently that it wont try to start the hal deamon everytime i boot up?

where can i find the hal scripts?
 
Old 08-15-2010, 01:27 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry, can't answer that - not certain what distro you're using.

Try inquiring with your package manager; have a look (grep) in
the init-directory of your distro.


Foremost you may want to investigate WHY hal hangs your machine.


Cheers,
Tink
 
Old 08-15-2010, 05:06 AM   #5
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
i'm not sure why hal deamon hangs too..

i'm using centos 5.5
 
Old 08-15-2010, 07:24 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
'man 8 hald' gives you a starting point, see "bugs and debugging": /etc/init.d/haldaemon stop; pkill -9 hald; pgrep -lf hald (do check!); /usr/sbin/hald --daemon=no --verbose=yes 2>&1 | tee /tmp/hald.debug (end with ^C). Now you can read /tmp/hald.debug and maybe post the last 30 lines in BB code tags if the process did error out.
 
Old 08-15-2010, 08:10 AM   #7
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
the only thing i see are these...

Quote:
cat /tmp/hald.debug
16:16:47.391 [I] hald.c:489: hal 0.5.8.1
16:16:47.392 [I] hald.c:490: using child timeout 250s
16:16:47.392 [I] hald.c:555: Will not daemonize
16:16:47.409 [I] hald_dbus.c:4058: local server is listening at unix:abstract=/var/run/hald/dbus-dOqJe49pnq,guid=a708c02f8f01aa661890cd004c67a26f
16:16:47.458 [I] hald_runner.c:220: Runner has pid 3360
Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
16:16:47.465 [D] util_helper.c:80: drop_privileges: could not set group id
what does it mean?
 
Old 08-15-2010, 08:30 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
What does 'getent passwd haldaemon' return? If it doesn't then run '/usr/sbin/useradd -c 'HAL daemon' -u 68 -s /sbin/nologin -r -d '/' haldaemon 2> /dev/null;' (basically the %preinstall script from 'rpm -q hal --scripts') and try again.

Last edited by unSpawn; 08-15-2010 at 08:33 AM.
 
Old 08-15-2010, 08:44 AM   #9
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
out put after getent passwd haldaemon,

Quote:
[root@localhost /]# getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
[root@localhost /]#
so it did has a user. should i run the command still?
 
Old 08-15-2010, 06:43 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
No, shouldn't be necessary. Tell me when your HAL problem started. Right at installing the OS? After updates? After you changed something?
 
Old 08-15-2010, 09:37 PM   #11
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
Right after installing the OS.

after it require me to boot up, it hanged. what i did was to longpress the computer button and restart again and manually turning of the hal deamon upon booting up. it then successfully boot up and so i have created my user account.

i tried updating hoping it might work after but still not.
 
Old 08-16-2010, 07:55 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
What does 'rpm -q hal ' return?
And 'rpm -ql hal|grep etc/|xargs ls -alZ'?
And 'rpm -Vv hal|grep -v '^\.\{8\}';'?

Is there anything we should know about your machines HW?
Is there anything special wrt devices attached to your machine?
Have you checked the Centos and Red Hat bug trackers for anything recent related to HAL?
 
Old 08-16-2010, 09:05 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,992

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
for HAL
centOS 5.5 is close so this mjm services page should apply
http://www.mjmwired.net/resources/mjm-services-fc6.html

a description of your hardware might help
also DO YOU NEED a OS meant for a headless server ? ( RHEL 5 / CentOS 5 )
if this is a new computer and you do NOT EXPLICITLY NEED rhel 5
then i would suggest -- Linux Mint, or Ubuntu
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to disable automatic login 10.04 everytime computer awakens? gunrun705 Linux - Newbie 2 05-10-2010 12:22 PM
How do i disable Mplayer from popping up EVERYTIME i get an IM on FB? MadSkillzMan Fedora 1 12-19-2009 11:52 PM
[SOLVED] How to disable HAL and still use X in Slackware64-13 ? Didier Spaier Slackware 38 11-02-2009 01:13 AM
Disable HAL and dbus on server systems? ufotofu Slackware 6 05-12-2008 05:28 PM
system hangs everytime I use USB tiredoflogins Red Hat 0 10-21-2004 03:27 AM


All times are GMT -5. The time now is 01:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration