LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   2 Qestions About USB Devices (https://www.linuxquestions.org/questions/linux-hardware-18/2-qestions-about-usb-devices-108143/)

satellites101 10-24-2003 06:40 PM

2 Qestions About USB Devices
 
I have a samsung digimax 200 digital camera. Under windows it is recognized as a removeable drive. I would like to know how to use this camera under Mandrake Linux 9.1.
When I cnnect the device to the USB port and turn it on nothing happens. I checked under Harddrake to see if it was detecting it. It is detected as a samsung mass storage device, and it says module unknown. I tried a few things I seen on the forums but nothing worked. I tried mount /dev/sda1 -t vfat /mnt//Digimax after creating a directory for it. It returned that this device does not exist. Any help would be greatly appreciated. The other USB problem I am having is with a saitek P-150 action pad game controller. It recognizes it as a Human Interface Device, just like windows, but it says module unknown there as well. I have read somewhere on a forum that another guy was using one of these. In his post he said he plugged it in and it worked. Mine isn't happening this way. Any help would be gretly appreciated. Thanks in advance.

satellites101:confused:

Faecal 10-25-2003 09:33 AM

It would be helpful if you supplied the output in the system log that occurs when you plug in the device. You can obtain a dump of the system log using the 'dmesg' command, or you can view the file /var/log/messages (may need to be root to view this file).

Pete M 10-25-2003 11:07 AM

satellites101

Your samsung mass storage device will be seen as a SCSI device so you need support for this in your Kernel

If you have SCSI support you may have to modprobe some drivers, for instance to use my USB key I have to modprobe sd_mod.o

Pete

satellites101 10-25-2003 01:47 PM

Hello, and thanks for the fast replys. Here is the data that dmesg returned:

The Camera:
hub.c: new USB device 00:1d.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x839/0x5) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
usb-uhci.c: interrupt, status 2, frame# 1723
usb_control/bulk_msg: timeout
scsi1 : SCSI emulation for USB Mass Storage devices
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

The Game Pad:
hub.c: new USB device 00:1d.2-2, assigned address 3
usb.c: USB device 3 (vend/prod 0x6a3/0x510) is not claimed by any active driver.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb-uhci.c: interrupt, status 2, frame# 1859
input0: USB HID v1.00 Joystick [Saitek Saitek P150] on usb3:3.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice

Sorry for my lack of intelligence on Linux, but I am still kind of new at this. Could you go into more detail about the modprobe for the drivers. I did forget to mention that the camera is recognized as a mass storage device. Any help would be greatly appreciated. Thanks in advance.

satellites101:confused:

Pete M 10-25-2003 05:20 PM

satellites101

For the camera try http://www.gphoto.org/ unless you already have it installed, should support your Samsung

For the saitek P-150 action pad try as root (su, password)

sbin/insmod usr/src/linux-2.4.22/drivers/input/joydev.o
sbin/insmod usr/src/linux-2.4.22/drivers/input/input.o

Replace usr/src/linux-2.4.22 with your own path to source directorys

Not sure this will work but it's worth a try

Pete

Faecal 10-25-2003 06:12 PM

Given that the dmesg output appears to indicate the mass storage/scsi drivers being loaded successfully, "I tried mount /dev/sda1 -t vfat /mnt//Digimax" ought to have worked (I'm assuming that the double slash is just a typo, and that the /mnt/Digimax directory exists). What you may find is that the media is formatted unusually. Try /dev/sda, or /dev/sda2|3|4 etc.

Pete M's instructions for loading modules may be overkill. It would appear that the input module is being loaded correctly when you plug in the gamepad. Try a simple "modprobe joydev" followed by "modprobe analog". One would hope that this would activate a joystick device at /dev/input/js0. Try 'cat /dev/input/js0' (ctrl-C to terminate) to see if this device is producing data when you press buttons on the pad.

satellites101 10-25-2003 11:55 PM

I have done a little digging around and I do not believe the camera is being listed in the dev directory. By the way I got the controller working thanks for the great advice. Anyway I ran this and here are the results:

[satellites101@localhost satellites101]$ cat /proc/scsi/usb-storage-0/0
Host scsi0: usb-storage
Vendor: Unknown
Product: Unknown
Serial Number: None
Protocol: Transparent SCSI
Transport: Bulk
GUID: 083900050000000000000000
Attached: Yes
[satellites101@localhost satellites101]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: COMBI Model: RW16x10/DVD Rev: H1.0
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: LITE-ON Model: LTR-0841 Rev: MNS1
Type: CD-ROM ANSI SCSI revision: 02

I noticed beside protocol that it says Transparent SCSI. I don't really know if this means anything or not, but I thought I would post this anyway. If the device is in the /dev directory is there a way to find out the what it is listed as? I read elsewhere that if an scsi mass storage device was entered into the dev directory that it would be sda1. I still haven't got the modprobe thing figured out so I could use some help there as well in case I do need to use it. Yes the two slashes in the above post were typos, and yes the /mnt/Digimax directory does exist. Any help will be greatly appreciated. Thanks in advance.

satellites101
:confused:


All times are GMT -5. The time now is 08:49 PM.