LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-20-2006, 12:49 PM   #46
zborgerd
Member
 
Registered: Mar 2004
Distribution: Slackware / Dropline GNOME
Posts: 378

Rep: Reputation: 30

Quote:
Originally Posted by quip
Yes. Now my usb device is recognized and assigned as sda.

However, the same problem persists--KDE will not recognize it unless it is in my fstab, which pmount never touches. There must be some sort of KDE/Hal/usb problem, because my cd writer is picked up and does just fine. I just have had to statically link to it; i.e. I made a link on my Desktop to /dev/sda1, and after I plug in the pendrive, I click it and it mounts via pmount.

I just can't figure out why KDE doesn't handle it the same way it does the optical drive.

Does kioslave actually monitor the system-wide messagebus for HAL messages? Maybe you can monitor it in the same way that I do with gnome-volume-manager.
 
Old 05-20-2006, 05:47 PM   #47
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
Quote:
Originally Posted by zborgerd
Does kioslave actually monitor the system-wide messagebus for HAL messages? Maybe you can monitor it in the same way that I do with gnome-volume-manager.
If it didn't, then how does it handle the cdrw in exactly the fashion I want the pen drive handled?

I'm not trying to be a smart-a**, I just am really trying to find out...
 
Old 05-21-2006, 07:48 PM   #48
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by quip
I'm not trying to be a smart-a**, I just am really trying to find out...
It sounds like you have all the fundamentals sorted. Your issue seems to be with kdebase.

To get it working, I downloaded the source for Pat's kdebase-3.5.2 package from a local slackware mirror and edited the slackbuild script to include "--with-hal" in the configure step. Then I ran the slackbuild script and left it going while I watched TV. It took about 40 minutes to complete on my 3.2GHz P4 machine, but was well and truly worth the wait.

All you really need on a vanilla Slackware-current installation (as at 14th May 2006) is dbus, hal, sysfsutils, pmount & a re-compiled kdebase-3.5.2 package.

Please note that I now have it working properly with Pat's udev-071 package which is allegedly "broken". Using udev-092 caused some quirky behaviour.

Compiling hal requires some trickery, but isn't difficult once you figure it out. And it can all be done while the kernel-headers-2.4.x package is left in place.

I'm still working on the libgphoto thing, but ATM I have it working from the root account. I think it's just a matter of messing with some udev rules.

Hopefully I'll have a page up by the end of this week with all the fine details. I wanna get the kinks ironed out first.

Ciao,

Last edited by rkelsen; 05-21-2006 at 08:00 PM.
 
Old 05-21-2006, 10:29 PM   #49
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
Quote:
Originally Posted by rkelsen
It sounds like you have all the fundamentals sorted. Your issue seems to be with kdebase.

To get it working, I downloaded the source for Pat's kdebase-3.5.2 package from a local slackware mirror and edited the slackbuild script to include "--with-hal" in the configure step. Then I ran the slackbuild script and left it going while I watched TV. It took about 40 minutes to complete on my 3.2GHz P4 machine, but was well and truly worth the wait.

All you really need on a vanilla Slackware-current installation (as at 14th May 2006) is dbus, hal, sysfsutils, pmount & a re-compiled kdebase-3.5.2 package.

Please note that I now have it working properly with Pat's udev-071 package which is allegedly "broken". Using udev-092 caused some quirky behaviour.

Compiling hal requires some trickery, but isn't difficult once you figure it out. And it can all be done while the kernel-headers-2.4.x package is left in place.

I'm still working on the libgphoto thing, but ATM I have it working from the root account. I think it's just a matter of messing with some udev rules.

Hopefully I'll have a page up by the end of this week with all the fine details. I wanna get the kinks ironed out first.

Ciao,
I'd like to see the exact steps you took. I have installed the latest versions of hal, dbus, etc., except for keeping Pat's udev. Maybe my problem lies in only rebuilding kioslave/media, instead of the whole kdebase package. I will try rebuilding the whole thing.

I did reconfigure before rebuilding, though, with the '--with-hal' option; it is not greyed out in kcontrol, and my cdrw works just as it should, but maybe something else is not catching the usb callouts. Also, just rebuilding kioslave/media worked fine with fstab-sync on a previous version of hal for me, but I am moving to pmount since hal doesn't support fstab-sync anymore. I just made a static link to /dev/sda1 on my desktop, but I would like to get it working as it should, especially if I ever need to plug in more than one usb device at a time in front of the people I always extol linux to
 
Old 05-21-2006, 10:49 PM   #50
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by quip
I will try rebuilding the whole thing.
There are some packages here:

http://web.tiscali.it/meskalamdug/kdeautom.html

which worked for me out-of-the-box with a clean install of -current. I wanted to try someone else's packages before spending too much time on this. These packages are the only ones I could get working initially. The problem is that they supply udev-092.

The web page is in Italian, but Google is able to translate it quite well.
Quote:
Originally Posted by quip
I'd like to see the exact steps you took.
You will. I want to make sure I can get libgphoto working properly with udev first, then I'll post a complete step-by-step guide.
 
Old 05-22-2006, 02:25 AM   #51
zborgerd
Member
 
Registered: Mar 2004
Distribution: Slackware / Dropline GNOME
Posts: 378

Rep: Reputation: 30
Quote:
Originally Posted by rkelsen
It sounds like you have all the fundamentals sorted. Your issue seems to be with kdebase.

To get it working, I downloaded the source for Pat's kdebase-3.5.2 package from a local slackware mirror and edited the slackbuild script to include "--with-hal" in the configure step. Then I ran the slackbuild script and left it going while I watched TV. It took about 40 minutes to complete on my 3.2GHz P4 machine, but was well and truly worth the wait.

All you really need on a vanilla Slackware-current installation (as at 14th May 2006) is dbus, hal, sysfsutils, pmount & a re-compiled kdebase-3.5.2 package.

Please note that I now have it working properly with Pat's udev-071 package which is allegedly "broken". Using udev-092 caused some quirky behaviour.

Compiling hal requires some trickery, but isn't difficult once you figure it out. And it can all be done while the kernel-headers-2.4.x package is left in place.

I'm still working on the libgphoto thing, but ATM I have it working from the root account. I think it's just a matter of messing with some udev rules.

Hopefully I'll have a page up by the end of this week with all the fine details. I wanna get the kinks ironed out first.

Ciao,
That's very good news. I'm glad that you figured it out. I am anxious to hear if everything is working as it should. Props on the excellent work, guys.

Slackware Current's Udev 071 does indeed appear to have some of the required fixes. It appears that he may have taken a different approach to loading firmware, but it looks good. The biggest issue was the stuff that was commented out in the udev.rules in Slackware 10.2, which is the main reason why we built our own. I'm glad that you found that Current's pack has these changes.

Last edited by zborgerd; 05-22-2006 at 02:50 AM.
 
Old 05-22-2006, 07:25 PM   #52
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Well, I got libgphoto working the way it should. The thing is, I set it up to use hotplug instead of udev. I think it still isn't ready for udev just yet. All the libgphoto packages I could find use hotplug anyway, so what's the point in making life difficult for myself? I might have another go at making it work with udev in a few months. I could get it to work with udev, but not from a normal user's account.

Something else has popped up, and I'm not sure if it is an issue with my computer or the software. Under KDE, if I insert an audio CD a dialog pops up asking what I want to do. Good. I can tell it to play the CD and it does.

The problem occurs while the CD is playing. If I insert a USB key or mount/unmount a hard drive the CD stops playing. Stone dead. I can't even eject the disc. The 'fuser' command tells me that there are 3 processes using the CD drive. If I kill those processes, then I can eject the CD.

Weird huh? So, I tried disabling HAL & DBUS and reverting back to Autofs. Guess what? It still happens. If I disable all forms of auto mounting if doesn't happen. I'm thinking there must be something wrong with my hardware combo. As I was drifting off to sleep last night I thought about maybe disabling the "Poll CDROM drives" option under KDE - which I'll try when I get home from work.

I just wanted to see if anyone else has seen this behaviour before and if so, what they did to fix it.

Last edited by rkelsen; 05-22-2006 at 07:28 PM.
 
Old 05-24-2006, 10:29 PM   #53
Stik
Member
 
Registered: Mar 2004
Location: Everett, WA
Distribution: Slackware / Dropline Gnome
Posts: 40

Rep: Reputation: 15
Quick Screenie of my progress so far with kde and automount...
Took me a matter of a few hours in which most was compiling
kde's required stuff aka arts, kdelibs, and kdebase.

Kde automount screenshot...

Basically my steps in a nutshell...

Make sure a halfway working udev is present. I'd suggest dlg's udev
since the one in slack is a moch...

Get hal/dbus installed and running properly... Make sure to enable qt3 in the
dbus build or you will get absolutely nowhere..

I have built my stuff with pam installed but have yet to check if
the automount stuff is actually relying on it. So this may be hit
and miss on this...

rebuild kdebase so that it builds with hal/dbus support..

Install pmount.. no special configs should be needed for this.. I didn't need any.

Install ivman for automounting of devices.. usb seems to do fine with just hal/dbus
but cd's/dvd's you aren't so lucky. Ivman uses pmount in about the same way that
gnome uses gnome-mount to mount devices. Without ivman you will get an icon on your
desktop but it won't be mounted.

run ivman --system during boot with an initscript and also run ivman in your kde
session.

This is just a very generic explanation of how I got this running. I'm assuming
since you are all slackers that finding more detailed info shouldn't be a problem.

Good luck....
 
Old 05-25-2006, 12:00 AM   #54
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Stik
This is just a very generic explanation of how I got this running. I'm assuming
since you are all slackers that finding more detailed info shouldn't be a problem.
Could you try plugging in a USB key while playing an Audio CD.

If I do this, the CD stops playing and I haven't been able to figure out why.
 
Old 05-25-2006, 03:03 AM   #55
Stik
Member
 
Registered: Mar 2004
Location: Everett, WA
Distribution: Slackware / Dropline Gnome
Posts: 40

Rep: Reputation: 15
Yes I get same behavior.. If you notice, when inserting a usb stick,
it seems as though it tries to remount the cdrom. I'll look around for
a patch for this if there is one. Really looks as though there won't be
a real stable qt/dbus interface until kde4 is out using the qt4 bindings.
 
Old 05-25-2006, 04:49 AM   #56
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Stik
Yes I get same behavior.. If you notice, when inserting a usb stick,
it seems as though it tries to remount the cdrom.
Yes. It seems to "re-probe" the CD, which causes it to stop playing.

I've tried changing the "Enable Polling CD ROM drives" setting to no avail.
Quote:
Originally Posted by Stik
I'll look around for a patch for this if there is one. Really looks as though there won't be a real stable qt/dbus interface until kde4 is out using the qt4 bindings.
I wonder if this problem happens under GNOME too?
 
Old 05-25-2006, 07:53 PM   #57
zborgerd
Member
 
Registered: Mar 2004
Distribution: Slackware / Dropline GNOME
Posts: 378

Rep: Reputation: 30
Quote:
Originally Posted by rkelsen
I wonder if this problem happens under GNOME too?
Nope, but we don't use pmount on a default DLG install (since we have gnome-mount or gnome-volume-manager to handle it). I think that Stik uses pmount on his custom GNOME system though.
 
Old 05-25-2006, 08:50 PM   #58
Stik
Member
 
Registered: Mar 2004
Location: Everett, WA
Distribution: Slackware / Dropline Gnome
Posts: 40

Rep: Reputation: 15
I'm using gnome-mount now but I didn't have any issues with using pmount
either.. This is an issue with kde itself.
 
Old 05-25-2006, 09:58 PM   #59
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Stik
This is an issue with kde itself.
Thanks for clearing that up.

I tried disabling HAL and running without any form of auto mounting. Running that way, I can (manually) mount USB keys without causing the Audio CD to stop playing. However, if I attempt to access the "Storage Media" folder (or media:/) the CD still stops playing. This occurs even while HAL is disabled.

Upon searching the KDE bug database, I found that there was an open bug report about this, to which I've added a comment:

http://bugs.kde.org/show_bug.cgi?id=121405

Let's hope it is fixed soon.

Last edited by rkelsen; 05-25-2006 at 10:12 PM.
 
  


Reply

Tags
autofs, dbus, hal, slackware, udev


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
Problem Solved - KDE 3.5.2 from Slack-Current KuriosD Slackware 5 04-09-2006 11:56 PM
kde 3.4.0 freeze system completely (slack-current) carboncopy Slackware 12 09-24-2005 05:48 AM
Slack Current + XFree 4.4/KDE = bugginess ferreter Slackware 7 11-25-2004 10:53 PM
soundserver (artsd) crashes in KDE (slack-current) brm Slackware 2 04-02-2004 06:47 PM
kde and gnome trouble after upgrade to slack current estring Slackware 0 09-04-2003 02:19 AM


All times are GMT -5. The time now is 12:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration