From: James B. H. <jh...@vi...> - 2004-07-25 07:13:59
|
Hi list. As the subject says - can't seem to get hotplug to run the usbcam script. Environment: linux-2.6.8-rc1-mm1; hotplug-2004_01_05; libgphoto2 and gphoto2-2.1.4; camera is an HP Photosmart 735. I know everything hardware-wise works, since I had this working a couple months ago. I've traced through all the behavior. When I turn the camera on, I get: Jul 25 03:02:18 bassett kernel: ohci_hcd 0000:00:07.4: wakeup Jul 25 03:02:18 bassett kernel: usb 1-2: new full speed USB device using address 11 Jul 25 03:02:19 bassett kernel: usb 1-2: Product: hp photosmart 735 Jul 25 03:02:19 bassett kernel: usb 1-2: Manufacturer: Hewlett-Packard Jul 25 03:02:19 bassett usb.agent[2812]: ... no modules for USB product 3f0/4002/100 in /var/log/messages. So the USB business is working. I've also put echo's in the various hotplug scripts to trace the flow, and just about everything seems to be working right there, EXCEPT I never get an entry into the usbcam script. This is more or less confirmed by the permissions on the camera device in /proc/bus/usb/001: -rw-r--r-- 1 root root 43 Jul 25 01:03 001 -rw-r--r-- 1 root root 50 Jul 25 03:02 011 My /etc/hotplug/usb/usbcam script is the usbcam.group script with the only change being that I've set the group to "users", which is the user group on my box. My /etc/hotplug/usb.usermap and /etc/hotplug/usb/usbcam.usermap files are identical except that the usb.usermap file has the first line being the example that is there from the hotplug installation; the rest of the lines are the output of the print-usb-usermap. I've followed the manual setup instructions to the letter, best that I can tell. The output from gphoto2 --summary when run as root is: *** Error *** An error occurred in the io-library ('Bad parameters'): Could not find USB device (vendor 0x3f0, product 0x6a02). Make sure this device is connected to the computer. *** Error (-2: 'Bad parameters') *** and: jhiller@bassett:~$ gphoto2 --summary *** Error *** Could not detect any camera *** Error (-105: 'Unknown model') *** For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list <gph...@li...>, please run gphoto2 as follows: when run as a regular user. I'll not put the huge --debug output up on the list until it's needed. Any help that could be offered would be bigly appreciated - I'm on hour 10 on this matter :-( thx, jbh |