You are not logged in.

#1 2010-03-27 10:20:58

Vortex375
Member
Registered: 2009-02-24
Posts: 61

HAL deprecated?

Hi everyone,

I recently read that the HAL daemon was deprecated (it even says so on its wikipedia page now) and that the next release of Ubuntu won't be using HAL at all.

However, right now HAL is needed by various other applications. The X server uses it to detect input devices, KDE 4.4 uses it to detect removable storage devices and to handle power management.

So how is it possible for the Ubuntu devs to simply remove HAL altogether?
Are the new replacements for HAL backwards compatible or would it require to patch the X server and KDE?

Right now, are there any benefits from not using HAL?

Offline

#2 2010-03-27 10:32:06

dcc24
Member
Registered: 2009-10-31
Posts: 732

Re: HAL deprecated?

X.Org 1.8 will be completely independent from HAL. Even now, if you use the GIT version, you can easily build it without HAL using "--enable-udev-config". I don't use KDE, so I have no idea about that.


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#3 2010-03-27 10:33:07

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: HAL deprecated?

HAL is almost fully deprecated by GNOME right now. If this decision was right or wrong, we'll see in the future.

HAL is mostly unmaintained and the development has been stalled - some bugfixes there and there.

As they say on freedesktop.org

HAL is in maintenance mode - no new features are added. All future development focuses on Software/DeviceKit-disks, Software/DeviceKit-power, NetworkManager, PulseAudio, udev, ...

since they are documented, new, fresh for the developers.

Xorg-server 1.8 won't possibly depend on HAL, but instead, it will use Udev for hardware access.

KDE seems to be conservative on such things, but I guess Solid may support Udisks/Upower soon.

Offline

#4 2010-03-27 10:41:26

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: HAL deprecated?

xorg-server as of version 1.8 uses udev directly for input hotplugging, so no HAL needed there anymore. Gnome, as of version 2.28 I think, has moved to udisks (formerly devicekit-disks) and upower (formerly devicekit-power), so no HAL needed there as well. KDE still needs HAL currently and this will remain so for the next version or two.

Other environments... In LXDE, lxsession currently still uses HAL, while PCManFM has a new version in the making which uses udisks, but it does so via gnome-disk-utility, which is ugh. The xfce people plan to write their own udisks interface that doesn't have gnome dependencies.

In short, X and Gnome are hal-free, other environments not yet.

Offline

#5 2010-03-27 10:53:21

Bralkein
Member
Registered: 2004-10-26
Posts: 354

Re: HAL deprecated?

In KDE I think these things are dealt with inside the Solid library. Development there seems to be quite active at the moment, so I feel sure that they are addressing this HAL deprecation if they haven't done so already. There is some information on this subject to be found in this recent article. I quote a relevant section:

One important change is that multiple Solid backends can now be loaded at the same time, providing information from different sources in parallel. A first implementation of this change has been done by Kevin Ottens during Tokamak 4. This change allows for more flexibility within Solid, especially for the support of new middleware such as upower, udisk and the like.

Offline

#6 2010-03-27 15:28:01

damis648
Member
Registered: 2010-01-25
Posts: 18

Re: HAL deprecated?

So how would one using GNOME move away from the deprecated HAL and toward the new *kits?

Offline

#7 2010-03-27 15:37:48

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: HAL deprecated?

damis648 wrote:

So how would one using GNOME move away from the deprecated HAL and toward the new *kits?

nothing more than keeping your system up to date. you already use *kits if you use gnome because this transition was when gnome 2.28 hit repos.

Last edited by wonder (2010-03-27 15:38:47)


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2010-03-27 16:18:15

damis648
Member
Registered: 2010-01-25
Posts: 18

Re: HAL deprecated?

wonder wrote:
damis648 wrote:

So how would one using GNOME move away from the deprecated HAL and toward the new *kits?

nothing more than keeping your system up to date. you already use *kits if you use gnome because this transition was when gnome 2.28 hit repos.

So does that mean that I can remove HAL from the system daemons?

Offline

#9 2010-03-27 16:26:40

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: HAL deprecated?

damis648 wrote:
wonder wrote:
damis648 wrote:

So how would one using GNOME move away from the deprecated HAL and toward the new *kits?

nothing more than keeping your system up to date. you already use *kits if you use gnome because this transition was when gnome 2.28 hit repos.

So does that mean that I can remove HAL from the system daemons?

only you can decide if is the right move since is your system, you know if you rely in xorg autodetection feature or if you use other application that is using hal.


Give what you have. To someone, it may be better than you dare to think.

Offline

#10 2010-03-27 20:23:23

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: HAL deprecated?

try xorg-server-udev in AUR

Offline

#11 2010-03-27 21:41:15

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: HAL deprecated?

Or wait for xorg-server 1.8 to get released. We might add packages for that to testing as soon as GNOME 2.30 is done.

Offline

#12 2010-03-27 22:18:22

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: HAL deprecated?

JGC wrote:

Or wait for xorg-server 1.8 to get released. We might add packages for that to testing as soon as GNOME 2.30 is done.

So this is for the end of the year (GNOME 2.30)?
When is released xorg-server 1.8?

Offline

#13 2010-03-27 22:20:20

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: HAL deprecated?

n0dix wrote:
JGC wrote:

Or wait for xorg-server 1.8 to get released. We might add packages for that to testing as soon as GNOME 2.30 is done.

So this is for the end of the year (GNOME 2.30)?
When is released xorg-server 1.8?

LOL. You know that 2.30 is not gnome 3 no?

gnome 2.30 is due to 31 march


Give what you have. To someone, it may be better than you dare to think.

Offline

#14 2010-03-27 22:23:26

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: HAL deprecated?

wonder wrote:
n0dix wrote:
JGC wrote:

Or wait for xorg-server 1.8 to get released. We might add packages for that to testing as soon as GNOME 2.30 is done.

So this is for the end of the year (GNOME 2.30)?
When is released xorg-server 1.8?

LOL. You know that 2.30 is not gnome 3 no?

gnome 2.30 is due to 31 march

ok, but it is not supposed to jump from gnome 2.3 to gnome 3?

Offline

#15 2010-03-27 22:37:12

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: HAL deprecated?

n0dix wrote:
wonder wrote:
n0dix wrote:

So this is for the end of the year (GNOME 2.30)?
When is released xorg-server 1.8?

LOL. You know that 2.30 is not gnome 3 no?

gnome 2.30 is due to 31 march

ok, but it is not supposed to jump from gnome 2.3 to gnome 3?

yes. it supposed to jump from 2.3x release to 3 if the gnome developers considers that gnome 3 is ready. note the x from the version as gnome 2.3 is 7 years old big_smile


Give what you have. To someone, it may be better than you dare to think.

Offline

#16 2010-03-27 22:41:06

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: HAL deprecated?

wonder wrote:
n0dix wrote:
wonder wrote:

LOL. You know that 2.30 is not gnome 3 no?

gnome 2.30 is due to 31 march

ok, but it is not supposed to jump from gnome 2.3 to gnome 3?

yes. it supposed to jump from 2.3x release to 3 if the gnome developers considers that gnome 3 is ready. note the x from the version as gnome 2.3 is 7 years old big_smile

Yeah, i read something about: Gnome 3 Plan

Offline

#17 2010-04-02 08:49:28

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: HAL deprecated?

Since the tarball is published, why don't you try to test a PKGBUILD with new sources, and the changes mentioned above?

Offline

#18 2010-04-02 10:31:20

Isildur
Member
Registered: 2009-05-26
Posts: 100

Re: HAL deprecated?

Btw:whats wrong with hal that it needs to be replaced? For me things just seem to become more complicated with multiple new daemons replacing one.

Offline

#19 2010-04-02 10:32:55

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: HAL deprecated?

HAL has not good documentation and it's too complicated for the devs.

The end user won't need to see a difference, they just need a better platform to work on.

Offline

#20 2010-04-06 20:04:33

novafluxx
Member
From: Florida
Registered: 2009-10-24
Posts: 16

Re: HAL deprecated?

Ubuntu 10.04 has completely removed HAL. I'm now sure if Kubuntu has or not though.

I'm looking forward to the removal of HAL, as it seems like logical evolution to me. If somethings becoming old, seldom maintained and not documented very well, I'd rather not have it used. DeviceKit has also been deprecated in favor of adding the functionality to udev apparently.

Offline

#21 2010-04-06 20:22:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: HAL deprecated?

I've just upgraded to xorg 1.8 using JGC's xorg18 repo and that removes my last dependency on hal, as I use already use udev for automounting.

I haven't -R'd it just yet, but I'm looking forward to it. Right now, the "Required By    : None" line in pacman -Qi hal is good to see.

Offline

#22 2010-04-06 20:40:16

novafluxx
Member
From: Florida
Registered: 2009-10-24
Posts: 16

Re: HAL deprecated?

tomk wrote:

I've just upgraded to xorg 1.8 using JGC's xorg18 repo and that removes my last dependency on hal, as I use already use udev for automounting.

I haven't -R'd it just yet, but I'm looking forward to it. Right now, the "Required By    : None" line in pacman -Qi hal is good to see.

I'm interested in doing this myself.

Any advice/tips? I'm doing a clean install of Arch Linux right now in a virtual machine so if I break something theres no problems :-)

Offline

#23 2010-04-06 21:32:34

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: HAL deprecated?

I think you should use testing when you try JGC's repo.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#24 2010-04-06 21:48:14

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: HAL deprecated?

.:B:. wrote:

I think you should use testing when you try JGC's repo.

s/should/must/

EDIT: sorry, I'm wrong. I misremembered what the mailing list thread said. Anyway, if you're going to do this you should follow the discussion in arch-general and arch-dev-public.

Last edited by Profjim (2010-04-06 22:11:45)

Offline

#25 2010-04-07 01:27:19

novafluxx
Member
From: Florida
Registered: 2009-10-24
Posts: 16

Re: HAL deprecated?

I have decided to just wait till its all stable and stuff ;-)

Offline

Board footer

Powered by FluxBB