LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-02-2002, 01:52 PM   #1
hartings
LQ Newbie
 
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26

Rep: Reputation: 15
modprobe problem: can only use ONE scanner


Hi,

How do I enable more than 1 usbscanner in LINUX (I run Mandrake 9)?

If I run:

[root@L750 ralf]# modprobe scanner vendor=0x0686 product=0x400d

then that specific film scanner (vendor=0x0686 product=0x400d) gets enabled and works fine. I can not get my flatbed scanner to work by running this additional command:

[root@L750 ralf]# modprobe scanner vendor=0x04a9 product=0x220e

Now, still the FIRST (film) scanner works, not the second (flatbed) after this last command. If I want to use the flatbed scanner, I have to uninstall the film scanner and then install the flatbed scanner:

[root@L750 ralf]# rmmod scanner
[root@L750 ralf]# modprobe scanner vendor=0x04a9 product=0x220e

Any clues how I can get BOTH scanners to work?

Ralf
 
Old 12-02-2002, 02:05 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
This is a nifty one, have you tried the modprobe line withough a product argument? Since the vendors match, I thought maybe usbdev was bright enough these days to probe through to find both devices. If not, you might want to probe the module with both sets of arguments... either way, what does the "dmesg" tail look like when you perform the modprobe?

Cheers,

Finegan
 
Old 12-02-2002, 11:47 PM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
You should just need to create two device nodes, /dev/usbscanner0 and /dev/usbscanner1,
Code:
bash# mknod /dev/usbscanner0 c 180 48
bash# mknod /dev/usbscanner1 c 180 49
and just let the scanner module take care of the rest.
PS: It helps if you have hotplug installed and working correctly.

Last edited by Aussie; 12-02-2002 at 11:49 PM.
 
Old 12-03-2002, 12:35 PM   #4
hartings
LQ Newbie
 
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26

Original Poster
Rep: Reputation: 15
modprobe problem: can only use ONE scanner

Interesting answer!!

"You should just need to create two device nodes, /dev/usbscanner0 and /dev/usbscanner1,

code:
bash# mknod /dev/usbscanner0 c 180 48
bash# mknod /dev/usbscanner1 c 180 49


and just let the scanner module take care of the rest.
PS: It helps if you have hotplug installed and working correctly."

Are the two lines sufficient? Where do the numbers 180 48/49 come from?

Could you help me with what "hotplug" is? I can plug and unplug the usb units as I want already. Mandrake sees it directly.

Ralf
 
Old 12-03-2002, 01:09 PM   #5
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
its the major/minor numbers of the first and second usb scanners

if mandrake can see the devices pluged/unpluged then hotplug is working.
 
Old 12-04-2002, 01:59 PM   #6
hartings
LQ Newbie
 
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26

Original Poster
Rep: Reputation: 15
Could the commands get in conflict with what the devfs does in Mandrake 9? If I understand devfs correcly (??), this is a dynamic way of generating such nodes while booting the machine. Someone told me that one should not make your own device nodes.

Is it OK to generate the devices nodes with devfs running ??

Ralf

Last edited by hartings; 12-04-2002 at 03:01 PM.
 
Old 12-04-2002, 03:00 PM   #7
hartings
LQ Newbie
 
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26

Original Poster
Rep: Reputation: 15
Because I already have the device node for scanner0 (made by devfs), I only run the command:

[root@L750 ralf]# mknod /dev/usb/scanner1 c 180 49

Now I have (after a chown command):

[ralf@L750 usb]$ ll
total 0
drwxr-xr-x 1 root root 0 Jan 1 1970 hid/
crw------- 1 ralf root 180, 48 Jan 1 1970 scanner0
crw-r--r-- 1 ralf root 180, 49 Dec 4 21:43 scanner1
[ralf@L750 usb]$

Scanner0 is my flatbedscanner and works fine. Now I try to load the film scanner:

[root@L750 usb]# modprobe scanner vendor=0x0686 product=0x400d

Unfortunately, the film scanner does still not get connected to the driver; driver=(None) and does not work.........

written in /proc/bus/usb/devices:

T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
P: Vendor=0686 ProdID=400d Rev= 0.01
S: Manufacturer=MINOLTA
S: Product=DiMAGE Scan Dual3
S: SerialNumber=0000000000000000
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=125us
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms


any hints?

Ed Hamrick informed me that this is defect in the module itself and that it should be rewritten/changed. This means that it is impossible to get it working with the ptresent module?

Ralf

Last edited by hartings; 12-04-2002 at 03:05 PM.
 
Old 12-04-2002, 06:22 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
If your using devfs then all bets are off.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe problem. xushi Slackware 11 09-21-2004 08:07 AM
Making modprobe pcspkr stick with modprobe.preload? gm4jjj Fedora 3 06-16-2004 03:27 AM
modprobe scanner : module not found. qwijibow Linux - Software 2 05-26-2004 06:45 AM
modprobe: modprobe: Couldn't locate module nvnet.o/nvaudio.o xiojqwnko Linux - Newbie 2 12-08-2003 05:41 PM
modprobe: modprobe can't locate module ppp0 in redhat 7.1 while shutting down. cyberdude3k Linux - Networking 1 09-08-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration