LinuxQuestions.org
Visit Jeremy's Blog.
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 12-23-2010, 01:02 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
About HAL


In Arch, I very often get errors about HAL when mounting a drive using a GUI file manager, especially after updates.

I wonder what HAL really does, how to fix it, or is there a better alternative?
 
Old 12-23-2010, 01:04 PM   #2
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Paste your /etc/rc.conf here.
 
Old 12-23-2010, 01:27 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Code:
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK=""
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(vboxdrv)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="michael-desktop"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="dhcp"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(@syslog-ng dbus hal network netfs @crond @atd @alsa @cups @openntpd @sensors)
Still I though I heard a few times that HAL is deprecated, but what's it's replacement and why do all GUI file managers use it?
 
Old 12-23-2010, 02:57 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello MTK358,

there is a package "device-kit" which is designed to replace hal http://en.wikipedia.org/wiki/DeviceKit
Otherwise it seems that more and more functions of hal are carried to udev itselv. You know that hal and udev work closely together. I see that the hal policy-files (*.fde) become fewer nowadays whereas more configurations are done via the udev-rules.

So I think one cannot speak about a "replacement" for hal, it seems to be more and more deprecated.

Markus
 
Old 12-24-2010, 01:39 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Quote:
Originally Posted by MTK358 View Post
In Arch, I very often get errors about HAL when mounting a drive using a GUI file manager, especially after updates.

I wonder what HAL really does, how to fix it, or is there a better alternative?
HAL stands for "hardware abstraction layer", it aims to be sitting in between your software and your hardware, and it manages things like disks, audio cards, optical drives, usb gadgets or whatever you wish.

If you have a problem with HAL at a given point, open a thread and be specific about the symptoms, errors, messages, etc. Maybe we can help you.

As for your question, there's no 1:1 alternative for HAL. You can't just replace HAL with anything else and continue working just like yesterday. Most software is migrating to many components (udev, upower, policykit and devicekit, and a few others) which do the work that HAL did, but as I said, the software needs to be migrated for this to work.

Being that said, most up to date distros should not depend much on HAL any longer for most stuff. So, this depends to a large degree on your distros and desktop environment. In my Gentoo box, as an example, the only packages still depending on HAL are phonon (which is mostly used for desktop notifications in kde) and k3b (the kde burning tool).

Remember that if you have software that depends on HAL you must make sure that the hald services is being started when you boot your system. Otherwise they will not operate correctly, if at all.

Last edited by i92guboj; 12-24-2010 at 01:41 AM.
 
1 members found this post helpful.
Old 12-24-2010, 06:44 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Is there any GUI file manager that doesn't depend on HAL to mount plugged-in devices?
 
Old 01-09-2011, 01:45 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Anyone?
 
Old 01-10-2011, 08:11 AM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Quote:
Originally Posted by MTK358 View Post
Is there any GUI file manager that doesn't depend on HAL to mount plugged-in devices?
Well, I am not sure about the current status of HAL in kde. I know that the solid backend needs hal for sure to detect sound devices, but maybe the storage devices work without it under dolphin and konqueror. I think that gnome no longer depends on hal either. You can also check pcmanfm and thunar.

I am not sure of the current status of things, but no one else answered, so... Just make sure you always check the latest available version for each one of these programs.
 
Old 01-10-2011, 10:39 AM   #9
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,433

Rep: Reputation: 196Reputation: 196
I have disabled hal with no ill effects running the RC2 of KDE. Even K3b in RC2 no longer depends on hal. This is on Slackware64-current using Alien's KDE packages.
 
  


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
Dual functionality of power button, HAL vs. KDE? ACPID vs HAL? Cotobear Slackware 6 09-12-2009 07:35 PM
cannot mount internal hard drive: .hal-mtab and .hal-mtab-lock messed up extremewaffles Linux - Newbie 3 07-01-2009 05:15 PM
/media/.hal-mtab and /media/.hal-mtab-lock SlowCoder Linux - General 2 05-13-2008 04:17 PM
HAL..why? jukebox55 Slackware 45 03-23-2008 08:27 PM
hal... Rayning Slackware 6 07-07-2007 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 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