LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   To Hal and back!! (http://www.linuxquestions.org/questions/linux-desktop-74/to-hal-and-back-475874/)

draggin 08-21-2006 09:02 AM

To Hal and back!!
 
Prior to the KDE 3.5.4 upgrade to Debain testing, I had an icon on my KDE desktop which would mount my usb camera by clicking on it. But now when I click on the icon I get the following error window appear "Feature only available with
Hal"

Now I have googled, which showed a couple of recent (this month) distro forum messages about the same problem. I looked on Debian bug track but could not find anything (it might be because I going blind) but I did find some info at
KDE's bug centre

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

I can manually mount the camera via the cli with the normal mount command.

Is the Hal that is mentioned the Hardware Abstraction Layer?? if so has anybody installed, does it need to be configured??

Is it a case of just wait till it has been fixed or can somebody point me to another source of information on this??

Tim

nbd 08-21-2006 02:23 PM

hal is your friend
 
Hi.

HAL is indeed the Hardware Abstraction Layer, and I suggest that you install it.

After that, you just plug the usb camera and kde will detect it and ask what to do. No more clicking for mounting, kde can automatically mount it.


Funnily I'm just having some HAL problems myself, my DVD autoplay stopped from working after recent kde upgrade. Grr. It seems that hal is not everybody's friend..

draggin 08-21-2006 02:58 PM

Hal is not my friend

I installed hal (simple apt-get install hal).

Nothing happens when I plug the camera into the USB, if I click the icon that has appeared since I installed Hal I get the following:

A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

If I right click on the icon and select mount I get the same message.

If I look in hal device manager then I can see that it has detected the camera

But here are two strange points, my external usb HD unit is seen and available, secondly my USB hard disk and my camera mount piont (along with a couple of others usb bits) was /mnt but according to the properties of the camera it should be mounted under /media If I try and change it back to /mnt it complains that it has to be under /media although my USB hard disk is still mounted under /mnt

Is there a configuration file for HAL somewwhere??

Tim

nbd 08-21-2006 03:20 PM

hal is your fiend?
 
Hmm..

What does your /etc/fstab say?
I have a new entry there I haven't seen before:

usbfs /proc/bus/usb usbfs devmode=0666 0 0

I don't know if it's related or not..


Install hal-device-manager and you can browse the HAL tree. From there you should be able to edit the properties, maybe there is some security restriction for some reason. Is the card locked physically?

I would try some live-cd (arklinux has recent kde that should handle the usb mountings automatically) to see if the camera mounts ok.

draggin 08-21-2006 03:27 PM

My fstab looks like this

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda9 /home ext3 defaults 0 2
/dev/hda8 /tmp ext3 defaults 0 2
/dev/hda5 /usr ext3 defaults 0 2
/dev/hda6 /var ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/usbpen /mnt/usbpen vfat noauto,users,gid=usbpen,fmask=117,dmask=007 0 0
/dev/usbcam /mnt/usbcam vfat noauto,users,gid=usbpen,fmask=117,dmask=007 0 0
/dev/usbhd /mnt/usbhd vfat noauto,users,gid=usbpen,fmask=117,dmask=007 0 0
/dev/usbmp3 /mnt/usbmp3 vfat noauto,users,gid=usbpen,fmask=117,dmask=007 0 0

The bottom four lines are what I was using previously with udev

If I change the properties in the device-manager I am not sure what I should be changing

Tim

nbd 08-21-2006 03:36 PM

usbmount
 
Do you have usbmount installed?

With udev,hal,dbus,usbmount installed I have my usb memory card reader working automatically with kde.

/etc/udev/ should include all kinds of rules. Check out the ones with usb in the file name

nbd 08-21-2006 04:05 PM

permissions
 
Now I think where the problem lies. You don't belong to the group that has access to that device.

In /etc/udev/permissions.rules there are groups listed for each devices. For usb it says 'plugdev'. So you should belong at least to plugdev group.

draggin 08-21-2006 04:19 PM

usbmount is installed, its not permission (well not that I can see) I have already been through the groups and permission, and rebooted again to ensure everything is picked up and reset.

Plugging in the usb camera cause the icon to appear on the desktop and a window to pop asking what I would like to do, but then when I click on something the error message appears

Tim

nbd 08-21-2006 04:24 PM

Strange. I don't have any ideas left but to try the live-cd.

draggin 08-21-2006 06:05 PM

Its a bug, boy did they hide it away, more info here

http://www.mail-archive.com/debian-b...msg222407.html

Tim


All times are GMT -5. The time now is 01:09 AM.