LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 03-22-2005, 04:23 PM   #1
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
KDE 3.4 - Media protocol (possibly Slackware specific)


When I had used KDE 3.3.2, I wrote udev rules to define my device and to create a symlink to the device node. I had those symlinks in my fstab, so that by merely clicking on the button in the devices:/ protocol, the device would mount and I could access it. This had a very high success rate, as long as the node was created (give it a few seconds). I might get an error message, but a mere refresh fixed the problem.

With KDE 3.4, the device protocol is gone, and is replaced by media:/. My udev rules are exactly the same, but I have a very low success rate with media:/. Suppose I opened media:/ and I see all the devices in my fstab. One of the drives is my jumpdrive, a link at /dev/jumpdrive that usually points to /dev/sda1 and according to fstab, mounts at /mnt/jumpdrive. So I click on the jumpdrive icon in media:/ (under Konqueror).

The device almost always successfully mounts, but Konqueror doesn't always detect it. It will often hang up. The expected behavior (the case under 3.3.2) was that the device would mount, and media:/jumpdrive would allow me to browse the files under my device. The current behavior, at least 70% of the time, is that the device would mount, but media:/jumpdrive would hang, displaying a blank filelist. A refresh would tell me that "The process for the media protocol died unexpectedly."

Now, I can go straight to /mnt/jumpdrive and access the files on the device myself. However, because konqueror has not detected the mount, I have no option to unmount the device. (If the media protocol had worked successfully, I would right click on the jumpdrive icon in media:/ and choose unmount). That means I have to go to root to unmount, or otherwise, do the entire mount process from command line.

This is a minor nuisance for me, but it gets worse if I allow a friend or someone else to use my computer, because I would like them to be able to mount and unmount the devices properly themselves.

One "problem" I have noted was that rc.hotplug loads blazingly fast. Under Slackware 10.0 and KDE 3.3.2, my bootup into KDE would take about 1 min, with 20 seconds of the process in the rc.hotplug sequence. Under 10.1 and 3.4, it takes merely 40 seconds, with about 1 second of the process under hotplug. It seems to me that hotplug is skipping something--but is that necessarily the case? About 30% of the time, the media:/ protocol works as expected.

I'd appreciate any help I can get--heck, I would appreciate it if any of you managed to read this far.
 
Old 03-23-2005, 01:58 PM   #2
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
I have (almost) solved this by going the D-BUS and HAL route.

When I stick in a CD or a Flash drive, they show up in media:/// It even detects an instertion of a new flash card on multi-card readers! That required unplug/replug od the reader before.

I generally followed the this DBus HAL for KDE wiki Note, I went the pmount route. There was something unsettling about continuous changes to /etc/fstab if I went the other way.

3 quick notes if you are eager to start compiling.
1. DO NOT get the latest HAL and DBUS. They dont have the calls KDE 3.4 media kioslave relies on. I had lots of compiling grief going for DBUS 0.31 and HAL 0.5. Instead, go for latest DBUS 0.2x and HAL 0.4.x.
2. HAL WILL botch on kernel-headers (2.4 series) that came with Slack. Even the 2.6.10 headers Pat provided on CD2 (testing folder) HAL didn't like. I found somewhat un-borked headers (2.6.10 in my case) here (ftp) from Polish Linux Distro
3. The most fickle was HAL compile. with 2 head-scratchers:
a) The BLK*64 issue. The WIKI mentioned is already old. Headers were fixed already, but the problem remains because some other headers are botched > test compile fails. So GET trully good/well assembled headers.
b) You might have a scsi compile error when compiling the HAL if you go with PLD headers. Downgrade the sg.h headers a bit.

EDITS:
(almost) - devices automagically show up, but their names are ugly (ie swap shows up in it as DRV1_VOL1, and my flash card shows up as "_") I need to fiddle with the scripts more to make this look proper.

here is a screenshot Not the nifty "Safely Remove" option on the flash drive.

I am going to either: make a guide and post it here, or submitt changes to the above-mentioned WIKI some time in the next few days. I am not going to provide binaries, as I cant guarantee the stability/reliability cause it was compiled on a Slack 10-10.1, customized headers mix.

Last edited by suslik; 03-23-2005 at 03:08 PM.
 
Old 05-30-2005, 07:45 PM   #3
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
Sorry, I haven't been tinkering with my Linux for a while.

I've just read up on D-BUS, HAL, and pmount, but I don't want to compile my KDE, at least not right now. I do like that the devices automatically show up. How much work does compiling involve? Can I expect Pat to incorporate these features in his next Slackware?

I've also read that a 2.6.x kernel is preferred. I'm considering actually going back to 2.4.x, however, as it seems more stable, with better support for CD burners and multimedia keyboards (some of my buttons don't register keypress events on 2.6.x).
 
Old 05-31-2005, 02:29 AM   #4
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
I've decided to look for HAL and DBUS from Dropline Gnome, but to continue using KDE 3.4. Is there anything I need to do besides installing those packages? Such as maybe deleting udev, autofs, or anything?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kde file/device protocol dies... bai_design Linux - Software 3 06-11-2008 11:13 PM
Konqueror - Media protocol? apachedude Suse/Novell 0 08-10-2005 08:01 PM
Possibly Defective USB Printer Module in Slackware 9.1 ussishkin118 Slackware 5 12-31-2004 06:15 AM
KDE 3.2: Protocol https not supported qwijibow Linux - Software 1 07-17-2004 09:38 PM
KIOSLAVE (Kde Protocol Programming) jinksys Programming 0 03-11-2004 06:07 PM


All times are GMT -5. The time now is 06:11 AM.

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