LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-27-2006, 12:03 PM   #1
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,619

Rep: Reputation: 142Reputation: 142
How to activate HAL in Slackware 11?


Hi,

in preparation of re-installing some of my machines with Slackware 11.0 once it is released I have experimented with RC3 a bit. Trying to mount a USB storage drive by clicking on it in KDE used to work in Slackware 10.2, but does no longer work in 11.0 RC3. Error message: "Feature is only available on systems with HAL" or so.

So, what exactly do I need and what do I have to do step by step in Slackware 11.0 in order to activate HAL?

(And no, neither reading Arthur C. Clarke's book nor watching Stanley Kubrick's screen adaptation haven't helped me, so far, with this...) ;-) Thanks in advance, gargamel

Last edited by gargamel; 08-27-2006 at 12:05 PM.
 
Old 08-27-2006, 01:19 PM   #2
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
You need to:

1. Install HAL
2. Recompile KDE with HAL
 
Old 08-27-2006, 01:29 PM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,619

Original Poster
Rep: Reputation: 142Reputation: 142
Installing HAL: Would you recommend me to use a binary, like the one available for Slack 10.2 at LinuxPackages.net? Should I wait for an 11.0 package?
Or would you suggest to compile my own HAL? If so: Which version should I choose for Slack 11?

Thanks again.

gargamel
 
Old 08-28-2006, 03:09 AM   #4
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
Well, the first wise thing would be for you to wait untill stable 11 is officialy released, then it just depends on you... if you like to get your hands a bit dirty and do it like you want just compile it yourself if not just wait for a release on linuxpackages.net ! As for HAL version... I think latest will work just fine, as it will not have any dependencies which 11 doesn't satisfy. I suggest you should look for a SlackBuild for HAL to make your life easier and also use the SlackBuild scripts for KDE too from the source dir and just add the HAL support feature to the ./configure command.
 
Old 08-28-2006, 06:54 PM   #5
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,619

Original Poster
Rep: Reputation: 142Reputation: 142
Thanks. In fact, I plan to install 11 once it is out. But in order to prepare for things to watch when doing the update I thought I'd try RC3 in advance. The HAL thing is one issue, that annoys me a bit, to be honest, as it means that a comfortable functionality that is available in 10.2 will vanish.

Now, in 10.2 there was no HAL, either, but KDE used to be able to use fstab for the same thing. Unfortunately there appears to be a bug in KDE 3.5.4 that prevents the desktop to offer the same comofort. Combined with no HAL in Slack 11 this means, that a nice feature (that was optional, you could turn it on or off just by adding or removing options in fstab) is no longer there.

And I am still not quite convinced that it is a good idea to not have HAL in Slack... But Pat usually knows what to do, how and why, much better than I do. So, he'll have good reasons for this, which I am just too humble to understand.

gargamel
 
Old 08-28-2006, 10:00 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Quote:
Originally Posted by gargamel
But Pat usually knows what to do, how and why, much better than I do. So, he'll have good reasons for this, which I am just too humble to understand.
Because HAL and DBUS are for sissies... Just kiddin....

Here is a good resource for building it if your interested. I'm sure you might have already looked at it.

http://www.linuxfromscratch.org/blfs...neral/hal.html
 
Old 08-29-2006, 05:04 AM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
When you say clicking on it in kde what do you mean?
The reason I ask is that I am running current up to date as of 27Aug.
If I insert my usb stick, and click on my flash drive icon, it mounts it as before.
Perhaps a usb storage drive is different?
Is your version of kde a stock Slackware 3.5.4?

tobyl

edit: my kernel is 2.6.16. I have the new udev scripts etc running in /etc/rc.d, and have not changed my fstab...

Last edited by tobyl; 08-29-2006 at 05:09 AM.
 
Old 08-29-2006, 07:42 AM   #8
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Quote:
Originally Posted by tobyl
If I insert my usb stick, and click on my flash drive icon, it mounts it as before.
I agree. Gnome does the same thing without using HAL/DBUS... Something else is going on. Now, if you wanted your usb stick to automagically appear mounted on the desktop after inserting it, then go the HAL route.

I don't use KDE tho... If it worked before and now it doesn't AND your running the same KDE packages then it shouldn't be a HAL issue despite what the error says. As Tobyl suggested, sounds like a UDEV problem more than anything. I would imagine it's not finding the device node anymore (udev upgrade?) and it tried to call on HAL to create it but couldn't find HAL so gave up on mounting it.

Last edited by jong357; 08-29-2006 at 07:49 AM.
 
Old 08-29-2006, 12:55 PM   #9
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 469

Rep: Reputation: 86
Quote:
Originally Posted by tobyl
When you say clicking on it in kde what do you mean?
The reason I ask is that I am running current up to date as of 27Aug.
If I insert my usb stick, and click on my flash drive icon, it mounts it as before.
Perhaps a usb storage drive is different?
Is your version of kde a stock Slackware 3.5.4?
It's very strange if it's working at you. Would you try to open in Konqueror media:/ URL and point on required device ?
I'm running Slackware-current with stock KDE 3.5.4 and it fails with "Feature available only with HAL". I've reported this as a bug and it seems I'm not alone with this. Bug 132281
Although I knew it has nothing to do with udev I've even tested it with older versions 064 and 071 and the problem persists as expected.

EDIT: Added missing doublequote in Bug URL. Thanks to theoffset for pointing out.

Last edited by dunric; 08-30-2006 at 03:09 AM.
 
Old 08-29-2006, 01:25 PM   #10
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
Quote:
Originally Posted by gargamel
....Trying to mount a USB storage drive by clicking on it in KDE used to work in Slackware 10.2, but does no longer work in 11.0 RC3. Error message: "Feature is only available on systems with HAL" or so...
I don't think that you need HAL to get the USB drive mounted by just a few clicks.

Here's what I do.
Code:
/dev/sdb1        /mnt/flash       vfat        noauto,users,umask=0      0   0
That entry from my /etc/fstab file. It just allows to mount and umount the device at will. Just add a Link to device on your desktop and you can mount it and umount it from there

I know it is not automount but I never liked that "feature" popping out on my face a-la windoze
 
Old 08-29-2006, 03:32 PM   #11
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
dunric
yes, you are quite correct. I have never used this method before.
Indeed, I do exactly as raska does in the post above.
Good luck with the bug report...

tobyl
 
Old 08-29-2006, 10:38 PM   #12
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 30
Quote:
Originally Posted by dunric
It's very strange if it's working at you. Would you try to open in Konqueror media:/ URL and point on required device ?
I'm running Slackware-current with stock KDE 3.5.4 and it fails with "Feature available only with HAL". I've reported this as a bug and it seems I'm not alone with this. Bug 132281
Although I knew it has nothing to do with udev I've even tested it with older versions 064 and 071 and the problem persists as expected.
The problem has definitly nothing to do with UDEV, the main problem seems to lay in the application of some patches by the "Coolo" developer (who maintains a branch of KDE, if I'm not mistaken) which solved some other bugs, but also added new features (somebody at kde thought that doing a partial feature-unfreeze for KDE 3.5.4+ was a good idea), and apparently, one of those features was an almost-HAL-only mediamanager kioslave...

file: http://websvn.kde.org/tags/KDE/3.5.4...65343&view=log
important diff:
http://websvn.kde.org/branches/KDE/3...5343&r2=550578

file:
http://websvn.kde.org/tags/KDE/3.5.4...65692&view=log
important diff:
http://websvn.kde.org/tags/KDE/3.5.4...65343&view=log

And a bunch of other files.

From the changelog of the last file:
Code:
Filename: branches/KDE/3.5/kdebase/kioslave/media/mediamanager/mediamanager.cpp
Revision 551063
Modified Tue Jun 13 15:18:31 2006 UTC (2 months, 2 weeks ago) by bero
File length: 8143 byte(s)
Diff to previous 550578

Make it compile again on systems that don't have HAL

Filename: branches/KDE/3.5/kdebase/kioslave/media/mediamanager/mediamanager.cpp
Revision 550578
Modified Mon Jun 12 10:31:42 2006 UTC (2 months, 2 weeks ago) by ervin
File length: 7847 byte(s)
Diff to previous 468233

Merge coolo's branch, it contains quite some fixes and interesting 
features. It'll be available in KDE 3.5.4, couldn't be committed before,
but thanks to the partial feature unfreeze...

FEATURE:
BUG: 50185
BUG: 105482
BUG: 108823
BUG: 114854
BUG: 120619
BUG: 121833
BUG: 127788
CCMAIL: coolo@kde.org
Actually, I've been lurking through the SVN source code of KDE and I'm finding a few ugly hacks all around, looks like the KDE-team is more disorganized than I thought.

EDIT:
Also, your bug link is missing the closing quote (")

Last edited by theoffset; 08-29-2006 at 10:39 PM.
 
Old 08-31-2006, 05:40 AM   #13
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
OK,
Have compiled and installed HAL, DBUS and latest version Slack (current, 29-08-2006) and recompiled KDEBASE using the Slackbuild script by inserting the --with-hal requirement. Guess what? still no hal capabilities. Kinfocentre still tells me that KDE has been built without hal support,and incidentally, enable CD polling is greyed out as well, and clicking on media under konqueror still gives the error Feature only available with HAL. Anyone any more suggestions.
 
Old 08-31-2006, 10:16 AM   #14
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
What kernel are you using ? Are you positive that DBUS and HAL are working properly and started at boot time , or you start them ? Did you check in any way for errors ?
 
Old 08-31-2006, 03:05 PM   #15
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
Hi nykey,

Am running kernel 2.6.17.2 compiled for my laptop. Dbus and Hal both report to be running according to process table, and the compiling of kdebase raised zero errors. But, have had a look through the log for the kdebase compile, and I notice this extract:-

configure:51658: checking for the HAL
configure: 51672: /opt/kde/include/libhal.h
configure: 51672: /opt/kde/include/libhal-storage.h
configure: 51672: /usr/include/libhal.h
configure: 51672: /usr/include/libhal-storage.h
configure: 51672: /usr/include/hal/libhal.h
taking that
configure: 51694: /opt/kde/lib/libhal.so
configure: 51694: /opt/kde/lib/libhal-storage.so
configure: 51694: /usr/lib/libhal.so
taking that
configure:51818: result: headers -I/usr/include/hal libraries -L/usr/lib -lhal -lhal-storage
configure:51833: checking for DBus
configure: 51847: /opt/kde/include/dbus/dbus.h
configure: 51847: /usr/include/dbus/dbus.h
configure: 51847: /usr/include/dbus-1.0/dbus/dbus.h
taking that
configure: 51864: /opt/kde/include/dbus/dbus-arch-deps.h
configure: 51864: /usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h
taking that
configure: 51886: /opt/kde/lib/libdbus-1.so
configure: 51886: /usr/lib/libdbus-1.so
taking that
configure:52020: result: headers -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include libraries -L/usr/lib -ldbus-1
configure:52033: checking for DBus-Qt bindings
configure: 52047: /opt/kde/include/dbus/connection.h
configure: 52047: /usr/include/dbus/connection.h
configure: 52047: /usr/include/dbus-1.0/dbus/connection.h
configure: 52047: /usr/local/include/dbus/connection.h
configure: 52047: /usr/local/include/dbus-1.0/dbus/connection.h
configure: 52074: /opt/kde/lib/libdbus-qt-1.so
configure: 52074: /usr/lib/libdbus-qt-1.so
configure: 52074: /usr/local/lib/libdbus-qt-1.so
configure: 52098: /usr/include/dbus-1.0/dbus/connection.h
configure: 52098: /usr/lib/dbus-1.0/include/dbus/connection.h
configure:52147: result: searched but not found
configure:52157: checking if the HAL backend for media:/ should be compiled
configure:52172: result: no

So am at a bit of a loss here.

I have also tried the information at this link:- http://www.linuxpackages.net/forum/v...ic.php?t=15477

And still get no further forward. Do you have any more ideas?

Thanks
 
  


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
Has anyone got hal working on Slackware 10.2? Steve50 Slackware 12 02-26-2006 09:39 AM
hal krusty_lab Fedora 3 10-10-2005 11:23 AM
HAL deamon johnnydangerous Fedora 2 02-08-2005 03:41 AM
Hal gamehack Programming 7 12-16-2004 03:03 AM
Slackware 9.1, how to activate an other laguage for gnome. jml75 Slackware 2 06-11-2004 03:33 PM


All times are GMT -5. The time now is 04:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration