Bug 229643 - Replace HAL as it is deprecated
Summary: Replace HAL as it is deprecated
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: HI wishlist
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
: 242326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-06 03:11 UTC by Daimonion
Modified: 2012-08-24 15:05 UTC (History)
32 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Make building HAL backend for solid optional (1.42 KB, patch)
2010-12-11 23:05 UTC, AE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daimonion 2010-03-06 03:11:21 UTC
Version:            (using KDE 4.4.1)
OS:                Linux
Installed from:    Archlinux Packages

All major distributions are starting to remove HAL, since it is deprecated. Examples are Ubuntu (https://wiki.ubuntu.com/Halsectomy) and Fedora (https://fedoraproject.org/wiki/Features/HalRemoval). New version of Xorg server (1.7.99.901) has a working hotplugging with udev, many other applications are turning to udev or something like. I (and possibly others) would liked to see solid without HAL.
Comment 1 Daimonion 2010-03-06 03:15:52 UTC
OpenSuse also has plans to remove HAL: http://lists.freedesktop.org/archives/devkit-devel/2009-April/000140.html
Comment 2 Samuli Suominen 2010-03-07 15:29:57 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Rahul Jain 2010-03-29 23:11:36 UTC
So what happens to KDE users when they upgrade to xorg-server-1.8? Will we have to keep hal installed and running or will things start to break?
Comment 4 Rahul Jain 2010-04-04 02:29:28 UTC
So, I did install xorg-server-1.8.0 - everything works properly as long as it is not related to hal. Volume control keys, for example, do not work.

If the KDE devs need some help with this, I am ready to offer any help that is possible for me. I would love to see KDE keep up to date with the latest developments and not lag behind in any sense.
Comment 5 Jason A. Donenfeld 2010-04-05 03:54:04 UTC
+1
Comment 6 Matthias Gehre 2010-04-14 10:44:45 UTC
+1
Comment 7 Vadim A. Misbakh-Soloviov (mva) 2010-04-18 00:11:24 UTC
+1
Comment 8 Krzysztof Pawlik 2010-04-20 02:06:05 UTC
PowerDevil is also heavily affected by lack of HAL.
Comment 9 Vadim A. Misbakh-Soloviov (mva) 2010-04-20 06:31:30 UTC
And "Recent devices" plasmoid - too :(
Comment 10 Victor 2010-04-30 16:18:48 UTC
+1024
Comment 11 RussianNeuroMancer 2010-05-19 11:56:57 UTC
So, what developers say?
It's possible for KDE 4.6?
Comment 12 Christoph Feck 2010-06-21 14:41:59 UTC
*** Bug 242326 has been marked as a duplicate of this bug. ***
Comment 13 dE 2010-10-10 13:17:44 UTC
As of the current time, I think this should no longer be an enhancement... it's a bug, a major one.
Comment 14 Shaumyadeep Chaudhuri 2010-10-10 13:21:49 UTC
(In reply to comment #13)
> As of the current time, I think this should no longer be an enhancement... it's
> a bug, a major one.

Yes as it seems that everybody have either already moved away from hal or are on their way. KDE seems to be the last piece still using hal.
Comment 15 Jason A. Donenfeld 2010-10-10 20:59:29 UTC
Updating bug to reflect consensus.
Comment 16 Pino Toscano 2010-10-10 22:37:33 UTC
> Updating bug to reflect consensus.

... of users, not of developers. Avoid playing with severities, please.
Comment 17 Jason A. Donenfeld 2010-10-10 22:53:45 UTC
Developers don't care about depreciating HAL!?!?

What?
Comment 18 Marcus Harrison 2010-10-13 13:42:51 UTC
(In reply to comment #17)
> Developers don't care about depreciating HAL!?!?
> 
> What?

Nobody said that: they simply said that the developers haven't chimed in on whether they consider this a bug or a feature. That's not to say they don't consider it a bug, just that they haven't said they do yet, so it's better not to mess with the bug report's status until they say "Yup, it's a bug and it's being worked on".

By design, Solid should be able to allow this quite easily: develop new plugins for DeviceKit (uPower/uDisk) and make them default. Done. No?
Comment 19 Luke 2010-10-13 15:13:06 UTC
news from planetkde.org:

-------------------------------------------------------------------------------
One of the objectives that the solid team is currently working on, is the deprecation/removing of HAL as KDE dependency. We hope to accomplish it for KDE 4.6, but of course at the moment it is just that, a wish.

Anyhow the complete remove is now a step closer, thanks to Dario Freddi and Lukas Tinkl I just committed the "PowerDevil 2 UPower" backend. Right now, it is build by default but is not used if the hal backend is compiled too, so in case you want to test it you have to edit powerdevilupowerbackend.desktop and set InitialPreference = 20 (lower than the hal one).

Small entry for a small thing, but small things matter don’t they?
-------------------------------------------------------------------------------

source: http://www.afiestas.org/one-step-closer-towards-a-kde-hal-free/
Comment 20 Luke 2010-10-26 18:31:51 UTC
news from linuxology:

-------------------------------------------------------------------------------
Well, since the version 4.5.73, KDE is starting to move it’s Solid Framework’s dependency on HAL to Udisks. The next major kpart will be Powerdevil, that will be ported to Upower (not so sure about *this* on yet). Good news ? Yes it is.
-------------------------------------------------------------------------------

source: http://linuxology.wordpress.com/2010/10/24/yes-we-like-hal-less-systems-ep2/
Comment 21 AE 2010-12-11 23:05:04 UTC
Created attachment 54441 [details]
Make building HAL backend for solid optional

By introducing the WITH_HAL conditional, building solid's HAL backend can be switched off, in order to expose bugs that stem from relying on HAL specific behavior:

cmake -DWITH_HAL=OFF .
Comment 22 dE 2010-12-12 04:30:25 UTC
If I remember correctly, Gentoo did have an option to compile without hal, once I did that (as expected) hot plugging stopped working.
Comment 23 AE 2010-12-12 10:52:09 UTC
It doesn't now, but with 4.5.85, hotplugging is working fine via udev/udisks.
Comment 24 Kevin Ottens 2010-12-28 15:28:00 UTC
I forgot to add "BUG: 229643" in my commit message apparently. Anyway, that one is fixed since r1206281, so it'll be in 4.6.0.
Comment 25 Christoph Feck 2010-12-28 17:59:06 UTC
From today's trunk of cmake in kdelibs:

> [...]
> -- Found UDev: /usr/include 
> -- Building Solid UDev backend.
> -- Building Solid HAL backend.
> -- Building Solid UPower backend.
> -- Building Solid UDisks backend.
> -- Building Solid fstab backend.

So it looks like there are some remains of HAL code in kdelibs.
Comment 26 Kevin Ottens 2010-12-28 18:07:30 UTC
Yes, it's still compiled in for the time being. It's not activated until you use a specific environment variable to activate it on a per application basis though. This way we also cover legacy systems (there's still a few out there).
Comment 27 dE 2010-12-30 16:11:45 UTC
Ok... GOOD!

Thanks devs!
Comment 28 RussianNeuroMancer 2010-12-30 16:16:02 UTC
But K3b is still depend on HAL?