LinuxQuestions.org
Help answer threads with 0 replies.
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 06-15-2007, 04:33 PM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
How to make HAL *work* on Slackware 12-rc ??


Hi,

Having recently converted yet another family member to Slackware, the old method of su; mount /dev/cdrom;exit to mount a CD is no longer an option. Allowing the user him/herself to mount from command line isn't a whole lot better.

Enter HAL..

But wait - has anyone actually gotten HAL to work ?

I'll be the first to admit that English is not my first language, so having read the HAL documentation up and down I have probably missed something. For the life of me I simply cannot get the beast to work.

I have removed the /dev/cdrom and /dev/ipod entries from fstab. I have created a fresh new KDE user to experiment with, and regardless what I do, I cannot for the life of me get HAL, KDE or anyone else for that sake to mount the CD, get Amarok to find the iPod, or get Konqueror to read the memory stick.

If anyone who has made this work, could spare a minute to share some insight, I can assure you it will be greatly appreciated!!

Thanks in advance!

-y1
 
Old 06-15-2007, 05:19 PM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
*cough* plugdev *cough*

EDIT:
Quote:
PACKAGE NAME: hal-0.5.9-i486-3.tgz
PACKAGE LOCATION: ./slackware/l
PACKAGE SIZE (compressed): 713 K
PACKAGE SIZE (uncompressed): 2310 K
PACKAGE DESCRIPTION:
hal: hal (The HAL Hardware Abstraction Layer)
hal:
hal: HAL is a piece of software that provides a view of the various
hal: hardware attached to a system. HAL keeps detailed metadata for each
hal: piece of hardware and provides hooks so that system and desktop
hal: software can react to changes in the hardware configuration (such as
hal: the insertion of a DVD, or a USB flash memory stick). Users in the
hal: "plugdev" or "cdrom" group will be able to use such devices on the
hal: desktop without the need to mount/umount them manually.
hal:
hal: For more info, see: http://www.freedesktop.org/Software/hal

Last edited by erklaerbaer; 06-15-2007 at 05:23 PM.
 
Old 06-15-2007, 06:23 PM   #3
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
I followed the instructions in post 30 in this thread and added myself to the plugdev, cdrom, video and power groups and HAL works for me. Remember to restart messagebus afterwards.

Last edited by Eternal_Newbie; 06-15-2007 at 06:25 PM.
 
Old 06-15-2007, 07:37 PM   #4
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
im probably missing something here, but couldnt you just write a small script incorporating the 'su' command, the mount command, and whichever program you need to access the information on the device? (e.g , xmms, which could enque all the songs on the cd into its playlist) then drop a shortcut to it on the desktop?

Last edited by mobilemonkey; 06-15-2007 at 07:46 PM.
 
Old 06-16-2007, 01:46 AM   #5
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by erklaerbaer
*cough* plugdev *cough*
Thanks a bunch erklaerbaer - plugdev did the trick! I read the text too literally where it said "plugdev or cdrom" - I guess the correct would be to say "plugdev and cdrom" ..

Anyway - that fixed it - much appreciated - thanks!

-Y1
 
Old 06-16-2007, 01:55 AM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Rep: Reputation: 177Reputation: 177
could someone direct me to a guide on setting up HAL, I never had a need for it, but I kind of want to try it out.
 
Old 06-16-2007, 03:13 AM   #7
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
Quote:
Originally Posted by Daedra
could someone direct me to a guide on setting up HAL, I never had a need for it, but I kind of want to try it out.
You'll need packages messagebus and hal from -current, also grab .new files for your /etc/passwd /etc/grop to look at what you should add. Then just add yourself to groups plugdev and power and restart messagebus /etc/rc.d/rc.messagebus restart
If everithing went the right way then try to plug your some kind of flash drive into usb or so and in your favorite file manager a device will popup(i talk about Xfce of KDE, and they should be compiled against HAL).
 
Old 06-16-2007, 05:31 AM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by iiv
also grab .new files for your /etc/passwd /etc/grop to look at what you should add. Then just add yourself to groups plugdev.
I have D-Bus and HAL installed and I am running slack-current with the KDE packages compiled with HAL support. The quote above is where I get lost. What do you mean by "grab" the .new files? Where are these files and what is plugdev?

Thanks
 
Old 06-16-2007, 06:05 AM   #9
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Original Poster
Rep: Reputation: 35
Here's (roughly) what I did to get it working:
  1. Make sure you're on -current (12rc1)
  2. Remove the entries you want automagically mounted from /etc/fstab
  3. Add yourself (and other relevant users) to ALL the groups cdrom, plugdev and power
  4. Restart hald and messagebus after these changes
  5. Make sure udev, hal and the messagebus are started automagically (make rc.udev, rc.hald and rc.messagebus eXecutable)
If you need help getting -current, I suggest you read some of the various other excellent threads here, or read the UPGRADE.TXT file that comes with it.
The .new files referred to in the previous post are configuration files changed during the upgrade process. This is well documented in the upgrade documentation.

-Y1

Edit: Broken list formatting...

Last edited by Yalla-One; 06-16-2007 at 06:08 AM.
 
Old 06-16-2007, 02:28 PM   #10
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
is HAL able to call 3rd party programs (music players, file managers etc) when it detects a new device?
 
Old 06-16-2007, 03:43 PM   #11
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
do your own research! anyway
Quote:
When a new device is added to the system, an asynchronous signal is broadcast on the system message bus detailing what kind of device was added. Any desktop application can connect to the message bus to discover the hardware.
 
Old 06-16-2007, 06:44 PM   #12
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
Quote:
Originally Posted by erklaerbaer
do your own research!

Last edited by mobilemonkey; 06-16-2007 at 06:45 PM.
 
Old 06-16-2007, 10:57 PM   #13
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
is HAL able to call 3rd party programs (music players, file managers etc) when it detects a new device?
HAL itself is only a method of detecting and reporting hardware changes, it does not directly interact with the user.

On the other hand, your WM/DE can listen for HAL events and react accordingly to do a number of different things. In XFCE for example, you can configure it to do exactly what you were referring to, opening up the file manager when a USB flash drive is connected, automatically playing audio CDs, etc, etc.
 
Old 06-17-2007, 11:38 AM   #14
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
it does sound interesting, although i have the worring picture in my mind of the way xp automatically mounts cd's, and then opens the program of choice, just when your trying to do something else, i really hate that. maybe HAL is designed with the ubuntu user in mind? i could be way off on that so dont flame me also the xp method doesnt give you enough options to configure exactly what you want to do with a particular cd either, its like a one size fits all thing. hopefully HAL is more configurable, ive yet to research it properly, ill check it out in the next slackware release. just a noob thinking out loud

Last edited by mobilemonkey; 06-17-2007 at 11:44 AM.
 
Old 06-17-2007, 03:20 PM   #15
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
hal just signals the messagebus. what applications do with that is up to them.
if you want to disable that feature altogether, run this once:
Quote:
hal-disable-polling --device /dev/cdrom
one's laptop should run longer, too
 
  


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
HAL on Slackware 11.0 cdale77 Slackware 4 05-13-2007 05:55 PM
How do I make Mouse Scroll work on Slackware 10.1 thenowherekid Slackware 16 02-07-2006 01:54 AM
how to make kylix 3 work on slackware 9.1 EArthquake Linux - Software 0 07-28-2004 01:19 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 11:19 AM
How do I make an nforce 2 chipset work under slackware? kleptophobiac Slackware 10 11-16-2003 03:29 AM


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