Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[partly solved]hald/KDE media IOslave not using pmount-hal??
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Sat Oct 15, 2005 8:45 am    Post subject: [partly solved]hald/KDE media IOslave not using pmount-hal?? Reply with quote

I don't know exactly what caused it, but a few days ago, whenever I plugged my USB Stick in, in KDE's media:/ IOSlave it appeared instantly and I could open it right away. When I checked on the console it was mounted at /media/X_MICRO_MP3 or something like that, anyway some name refering to the vendor and model of my USB-stick. Now that isn't working anymore.

I've upgrade ivman since then but I don't know if ivman is working together with KDE's media:/ slave or that KDE gets it's information from HAL/DBUS directly; but it doesn't appear anymore in the media:/ IOslave.
Another change is that if the USB stick is plugged in during boot, it will not be mounted automatically. It only gets mounted if I plug it in while the system is already on. And it doesn't get mounted at /media/X_MICRO_EASY_MP3 anymore, but it's mounted at /media/sde1(since the USB-stick gets the /dev/sde1 device-node).

Is this due to some KDE-configuration error or is a problem with ivman? Is ivman actually necessary for getting this to work using the media:/ IOslave? And how can I get the stick to get mounted at /media/X_MICRO_MP3 again instead of /media/sde1? Remember that I didn't configure ivman at all before, there wasn't any specific rule to get it there, so somehow it was set up to mount USB devices at their device-name instead of their device node.

Anyway, the ideal situation wasn't there yet for me, what I would actually like to see would be that whenever I plug my USB-stick in or insert a CD-ROM, I get a new icon on my desktop with the name of the volume or the name of the device, much like what happens on Mac OS X. Is this at all possible, and if so, what software do I need and what software don't I need?

A lot of questions, but anything related to any of the questions would be appreciated!
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755


Last edited by MadEgg on Thu Oct 20, 2005 10:17 am; edited 3 times in total
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Sat Oct 15, 2005 9:36 am    Post subject: Reply with quote

Right, I just discovered that somehow kdebase-kioslaves was compiled with USE="-hal", so I recompiled it with USE="hal" and now the devices show up in media:/ again.
But I still can't open them because I get an error message that there is no fstab entry, when ivman is not running.
When ivman is running, I can open them but I get relocated to /media/sde1, not /media/X_MICRO_MP3.

I found http://wiki.kdenews.org/tiki-index.php?page=DBUS which tells me how to have hal use pmount but the location specified there, or even the file, doesn't exist so I suppose that's a gentoo related thing. I really don't prefer pmount over automatic fstab entry creation, but I can't get any of them to work at the moment.

After reading some manpages of pmount, it seems that if a <label> argument is passed to pmount, it gets mounted to /media/<label> instead of /media/<device>. So somehow before(by KDE??) a <label> was passed, and now it isn't anymore.

[update]
Been fiddling some more, running 'pmount-hal <udi>' from the console works fine, it mounts it at /media/X_MICRO_MP3 as it did before. So somehow it's not mounted using pmount-hal; could this have something to do with the warning in the hal installation script which told me to remove /etc/hal/device.d?
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Mon Oct 17, 2005 11:18 am    Post subject: Reply with quote

*bump*
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Tue Oct 18, 2005 11:41 am    Post subject: Reply with quote

Someone must have it working using HAL 0.5.4 right?
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Tue Oct 18, 2005 4:29 pm    Post subject: Reply with quote

Finally somehow reverted back to hal-0.4.7; now media:/ KIOslave works again using hal-0.4.7 and dbus-0.23-r2. This is working now without the use of pmount.

The thing is, the only version of pmount currently in portage requires hal-0.5.1 which is a version that KDE doesn't really work with(yet). There are older versions of pmount that don't require hal-0.5.1 but there's no ebuild for those.

Ah well, at least I've got a working setup right now, I'll have to have some patience to use pmount apparently.
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Wed Oct 19, 2005 12:17 am    Post subject: Reply with quote

i got the same problem i think... i can see the devices showing up with hal 0.5.4 but under media:/ i can't enter them. I noticed that hal 0.5.4 doesn't use/build fstab-sync as it did before.. so i guess that kde is getting confused. How do i make kde use pmount instead of fstab-sync when mounting a device?

thanx
_________________
Never argue with an idiot. They will only pull you down to their level, then beat you with experience.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Oct 19, 2005 1:02 am    Post subject: Reply with quote

MadEgg wrote:
Someone must have it working using HAL 0.5.4 right?

I haven't had any luck either and I'm using KDE 3.5_beta2.

Worked fine with the 3.4 KDE versions and pmount -0.8.x, but no luck now.
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Wed Oct 19, 2005 1:46 pm    Post subject: Reply with quote

Someone told me that KDE 3.4 doesn't like hal-0.5.x, and that it is made for hal-0.4.x so that might be the reason why it isn't working; I guess that KDE 3.5 will have support for it when it's finished...
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Oct 19, 2005 3:20 pm    Post subject: Reply with quote

MadEgg wrote:
Someone told me that KDE 3.4 doesn't like hal-0.5.x, and that it is made for hal-0.4.x so that might be the reason why it isn't working; I guess that KDE 3.5 will have support for it when it's finished...

I'm using:
Code:
kde-3.5_beta2
hal-0.5.4
dbus-0.36.2
pmount-0.9.3-r3

and yes KDE is compiled with USE flag hal
Thing is it works perfect with DVD/CDs, but not not other removeable USB devices: external HD, usbstick, 5-in-1 reader, etc.
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Wed Oct 19, 2005 3:47 pm    Post subject: Reply with quote

Yea, well, KDE 3.5 isn't finished yet, is it? :P
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu Oct 20, 2005 12:33 am    Post subject: Reply with quote

MadEgg wrote:
Yea, well, KDE 3.5 isn't finished yet, is it? :P

True, but 3.5 is an extention of 3.4.x, not a new product.
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Thu Oct 20, 2005 10:17 am    Post subject: Reply with quote

Yup, therefore it woulnd't be too weird if the media IOslave code isn' rewritten yet to work with HAL-0.5. I would think any dependency like this should be avoided, imo KDE-3.5 should have support for HAL-0.4.x and HAL-0.5.x.

I also found this patch from archlinux http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/kde/kdebase/hal-0.5x.patch?cvsroot=Extra&only_with_tag=MAIN

That patch should be able to handle HAL-0.5.x when using KDE 3.4 but I'm not too good with applying patches, maybe someone could put it in an ebuild to have it handled automatically?
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu Oct 20, 2005 4:20 pm    Post subject: Reply with quote

MadEgg wrote:
Yup, therefore it woulnd't be too weird if the media IOslave code isn' rewritten yet to work with HAL-0.5. I would think any dependency like this should be avoided, imo KDE-3.5 should have support for HAL-0.4.x and HAL-0.5.x.

Well, I think that is what we're trying to find out, an official explanation if it isn't implemented yet or we just don't have it set up/configured properly.

Since Hal 0.5.x is a dependency when using the appropriate USE flag for KDE 3.5, you would think support would be more "advanced" since the release is only a month away. (You wouldn't think the API changes from HAL 0.4.x to 0.5.x would be that difficult)

I'm not impatient, just curious if it was me or the software.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sat Oct 22, 2005 10:14 pm    Post subject: Reply with quote

Some SUCCESS!

It looks like for the most part the HAL/DBUS pmount combination is working.

I needed a media reader that supported a compact flash so I ditched my old media reader and got a new one that supported more flash types and low and behold all the the flash type media devices work and will automatically mount. (If I so ask in KDE popup window)

CDs and DVDs always worked fine anyways, and the only thing that doesn't work is the HD in the USB enclosure.
My guess is that when HAL asks the device for info, the info returned by the HD is that it isn't removeable, and hence causes problems.
I can either add a udev rule and fstab entry for this device, or search into creating a specific HAL fdi entry for the HD saying that it is removeable and see how that works.

I'll post how it works out with the second method.
Back to top
View user's profile Send private message
Tlaloc
Guru
Guru


Joined: 21 Feb 2005
Posts: 451
Location: Europe - Alps - Tyrol

PostPosted: Sat Nov 05, 2005 10:55 pm    Post subject: Reply with quote

Just FYI, maybe useful to someone.
Tried to install hal, dbus with pmount today following the documentation in the gentoo wiki. For pmount I used the ebuild in portage, which requires hal 0.5 and therefore pulls it in. Since hal 0.5 has no fstab-sync anymore I was unsure about what to do then and fiddled around a while. It was only by coincidence that I found out that adding my user to the plugdev group was at least sufficient to allow me to mount my usb stick without an entry for it in fstab. It seems that just adding the user to the plugdev group and emerging pmount is sufficient for hal to use it. Please someone confirm or try it and correct me if I am wrong.
Bye, Valentin.

EDIT:
@Headrush
Which kde popup window, I don't see any when plugging in my card reader or usb stick.

Something else. ivman seems not to work correctly for me. Automount works with my devices but I am prevented from unmounting them.
Thats the error:
Quote:
umount: /media/STICK is not in the fstab (and you are not root)
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Nov 06, 2005 4:19 pm    Post subject: Reply with quote

Tlaloc wrote:
Just FYI, maybe useful to someone.
Tried to install hal, dbus with pmount today following the documentation in the gentoo wiki. For pmount I used the ebuild in portage, which requires hal 0.5 and therefore pulls it in. Since hal 0.5 has no fstab-sync anymore I was unsure about what to do then and fiddled around a while. It was only by coincidence that I found out that adding my user to the plugdev group was at least sufficient to allow me to mount my usb stick without an entry for it in fstab. It seems that just adding the user to the plugdev group and emerging pmount is sufficient for hal to use it. Please someone confirm or try it and correct me if I am wrong.
Bye, Valentin.

EDIT:
@Headrush
Which kde popup window, I don't see any when plugging in my card reader or usb stick.

Something else. ivman seems not to work correctly for me. Automount works with my devices but I am prevented from unmounting them.
Thats the error:
Quote:
umount: /media/STICK is not in the fstab (and you are not root)

I have everything working perfectly now. The wiki on pmount says to create the link to pmount-hal which WASN'T needed.

Since a hard drive isn't normally removeable, I had to add a device node entry in /etc/pmount.allow for pmount to see it has removeable. (Its in an external USB case)

Tlaloc. whenever I plug in a removeable device, I get a popup menu asking what I'd like to do: open in a new window, starting playing in a specific program, create a new action, etc. This window gives you the option of remembering the preference and it will continue to do so without asking anymore. (ex. Set DVD movies to start xine automatically)
Back to top
View user's profile Send private message
Tlaloc
Guru
Guru


Joined: 21 Feb 2005
Posts: 451
Location: Europe - Alps - Tyrol

PostPosted: Sun Nov 06, 2005 7:59 pm    Post subject: Reply with quote

Headrush wrote:

I have everything working perfectly now. The wiki on pmount says to create the link to pmount-hal which WASN'T needed.


I also didn't have to create any such link. Oneself has only to be very careful when updating configuration files in /etc, I wasn't and this morning it wasn't functioning properly, fortunately with cfg-update it was easy to revert.

Headrush wrote:

Tlaloc. whenever I plug in a removeable device, I get a popup menu asking what I'd like to do: open in a new window, starting playing in a specific program, create a new action, etc. This window gives you the option of remembering the preference and it will continue to do so without asking anymore. (ex. Set DVD movies to start xine automatically)


But thats with kde-3.5_beta2, isn't it?

Bye, Valentin.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Nov 07, 2005 2:07 pm    Post subject: Reply with quote

Tlaloc wrote:
But thats with kde-3.5_beta2, isn't it?

Ya, sorry about that, discussing the same problems in a kde 3.5 beta thread also. :?

When using the 3.4 line of KDE I had it working perfectly, but that was using the 8.x versions of pmount.
With those versions you had to make the pmount-hal link like the wiki said.
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Thu Nov 10, 2005 5:39 pm    Post subject: What is the syntrax for pmount.allow Reply with quote

I seem to be having wierd issues with KDE and media:/ I took out the Udev rules I created for my Iriver [which really only partially worked, it wouldn't detect the device properly during boot up.] and a rule I was making for my USB stick. with Konqueror my usb stick won't even show up as an available hard disk while I have two entries for my internal sata hard drive one being sda1 which functions properly the other being sda which fails to mount at all obviously. The usb stick shows up as sdb with sdb1 being the mount target, in Nautilus the usb stick shows up as unmounted but it won't let me mount the stick it keeps wanting to mount /dev/sdb instead of /dev/sdb1. Strangley enough on my laptop both my Iriver and my usb stick mount properly without my having created any specific rules to govern them, my only problem is that I cannot unmount or eject them as a normal user [I'll check and see if plgdev is available on my laptop later, but I don't have pmount installed at all on it so I doubt it.] any ideas on how I can fix these problems for my machines?

Update:

I just rebooted after adding my Iriver back to fstab and reenabling my slightly broken udev rule and the Iriver appears in Nautilus as expected and I'm able to mount and unmount as a normal user but Konqueror gives me the you are not root error a previous poster mentioned here, and it still has a duplicate entry for my sata hdd [that doesn't actually work.] and it does not see my Iriver at all...any ideas given this new info?

I'm running KDE 3.4, and Gnome (specifically Nautilus) 2.12.1
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 701
Location: The Netherlands

PostPosted: Fri Nov 11, 2005 1:18 pm    Post subject: Reply with quote

I'm using KDE-3.5_beta2 and don't use pmount/ivman... and everything works fine here. All I've to do is compile the latest hal (sys-apps/hal-0.5.4) with --enable-fstab-sync and then:
Code:
mkdir haldaemon:root /media
chown haldaemon:root /etc
chown haldaemon:root /etc/fstab
/etc/init.d/hald restart
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sat Nov 12, 2005 3:44 am    Post subject: Reply with quote

VoVaN wrote:
I'm using KDE-3.5_beta2 and don't use pmount/ivman... and everything works fine here. All I've to do is compile the latest hal (sys-apps/hal-0.5.4) with --enable-fstab-sync and then:
Code:
mkdir haldaemon:root /media
chown haldaemon:root /etc
chown haldaemon:root /etc/fstab
/etc/init.d/hald restart

Thank you VoVaN! This works for me with hald 0.5.4.
I didn't need to have /etc owned by haldaemon, but I did need to make /etc/fstab owned by haldaemon:haldaemon.

Cheers,
Chris
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!


Last edited by taskara on Sat Nov 12, 2005 11:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 701
Location: The Netherlands

PostPosted: Sat Nov 12, 2005 9:52 am    Post subject: Reply with quote

taskara wrote:

Thank you VoVaN! This works for me with hald 0.6.4.
I didn't need to have /etc owned by haldaemon, but I did need to make /etc/fstab owned by haldaemon:haldaemon.


hald 0.6.4??? Is it really correct?
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sat Nov 12, 2005 11:55 pm    Post subject: Reply with quote

Sorry.. 0.5.4, not 6 opps. will amend.

Can I ask a few questions of you, can you unmount CD's using the "Storage Media" applet on the taskbar? and what happens when you run eject from the same thing?
Eject hasn't worked for me under KDE since 3.4 has been out.

Cheers
-c
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 701
Location: The Netherlands

PostPosted: Mon Nov 14, 2005 5:50 am    Post subject: Reply with quote

taskara wrote:
Sorry.. 0.5.4, not 6 opps. will amend.

;)
taskara wrote:
Can I ask a few questions of you, can you unmount CD's using the "Storage Media" applet on the taskbar? and what happens when you run eject from the same thing?
Eject hasn't worked for me under KDE since 3.4 has been out.

Cheers
-c

With >=kde-3.5-beta2 it works just fine here. I've some problems for a particular DVD(+RW) types (Plextor 716A for instance) with the correct media type detection (detects "Blank DVD+RW", but there's DVD+RW with some content...), but for the rest it's Ok.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Mon Nov 14, 2005 6:02 am    Post subject: Reply with quote

You were right.. I had to also chown /etc to haldaemon:root.
I also had to hack the ivman ebuild because adding a user was inside the sourcecompile section and I'm using pre-compiled binaries.

Allso hacked the hal ebuild to enable fstabsync and chowning automatically. If anyone wants them I'll upload them (included in Kororaa beta2).

Thanks VoVan, you saved me lots of time :)

Chris
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum