Anshul wrote:
Hey Sumeet,No, it is not a problem with the kernel at all. Anything around 2.4x should be fine.
What kernel are you using on that slack? The slack 10 kernel is kind of old... I could get things like my tv tuner and a usb webcam to work on slack quite effortlessly after compiling a kernel.org 2.6.9 kernel. Btw, slack is planning to do a 10.1 release. I hope it comes around soon and that Patrick decides on a 2.6 kernel! I think its that 2.6 kernel that made Fedora/Suse/Mandrake work flawlessly with your cam... Just my 4 annas..
Anshul
On Thu, 11 Nov 2004 19:20:17 +0530, Sumeet Madhukar Moghe
<[EMAIL PROTECTED]> wrote:
Hi, I bought the camera(Sony DS-P150 - 7.2 MP), I mentioned a few days back. I havent had a problem running it on either of my desktops, which run Fedora/Suse/Mandrake. It runs flawlessly under both modes... USB Mass Storage and PTP. I faced some issues though, while getting it to work with Slackware, which runs my notebook. I wasnt planning to use gphoto2, which in any case doesnt ship with Slackware. I started off to use USB mass storage. But I faced a problem right away
[EMAIL PROTECTED]:~$ su Password: [EMAIL PROTECTED]:/home/sumeet# mount /dev/sda1 -t vfat /mnt/camera mount: /dev/sda1 is not a valid block device
I did have all the necessary modules loaded, so I didnt see a reason why it shouldnt work.
[EMAIL PROTECTED]:/home/sumeet# lsmod Module Size Used by Not tainted uhci 25852 0 (unused) sd_mod 11180 0 (autoclean) (unused) 8139too 15400 1 mii 2400 0 [8139too] crc32 2880 0 [8139too] i810_audio 24796 0 ac97_codec 13652 0 [i810_audio] soundcore 3652 2 [i810_audio] ds 6932 1 yenta_socket 10880 1 pcmcia_core 42788 0 [ds yenta_socket] ide-scsi 10288 0 evdev 4576 0 (unused) input 3328 0 [evdev] usb-storage 70048 0 (unused) usbcore 62956 0 [uhci usb-storage] scsi_mod 58264 2 [sd_mod ide-scsi usb-storage] agpgart 46628 0 (unused)
I then downloaded gphoto2 and digikam, but that didnt work either. In fact I had my hotplug system messed up, cos /proc/bus/usb/devices didnt exist. I solved this part with a "mount -t usbfs none /proc/bus/usb". I made an appropriate entry in /etc/fstab for the same. But even then /var/log/messages doesnt report the usb-storage driver or scsi_mod seeing the camera. Also a #cat /proc/scsi/scsi gives Attached devices: none
While digikam was autodetecting the camera in PTP mode, it failed to
connect/download from the camera. I solved this problem with a minor tweak:
a) Added the following lines to /etc/hotplug/usb.usermap
# usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi
bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass
bInterfaceSubClass bInterfaceProtocol driver_info
# USB PTP Class Camera
usbcam 0x0080 0x0000 0x0000 0x0000 0x0000 0x00 0x00 0x00 0x06 0x00 0x00 0x00000000
b)Next I hand created the script /etc/hotplug/usb/usbcam to read thus #!/bin/bash
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ] then chmod a+rw "${DEVICE}" fi
a chmod u+x /etc/hotplug/usb/usbcam finished the job. I am now able to use a digikam+gphoto2 combo to access the camera through PTP. However PTP isnt really my first choice as it drains the batteries very fast as Siddhartha-da indicated. I still want to use USB Mass Storage, and I happen to be facing issues with that. Everytime I try to do a # mount -t vfat /dev/sda1 /mnt/camera
I get "mount: /dev/sda1 is not a valid block device". I think I am at a dead end here, because "tail -f /var/log/messages" doesnt show the camera being claimed by the usb-storage driver. OTOH /proc/bus/usb/devices does display the device when plugged in via Mass Storage mode. Any hints??
-- /Sumeet PS : I am sorry if some members who are on other lists have got sick of looking at this problem every other day, having recieved multiple versions of this post/problem.
Slackware-10 is ok with the camera.
A. Mani Member, Cal. Math. Soc.
-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
