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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-02-2002, 01:52 PM
|
#1
|
LQ Newbie
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26
Rep:
|
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
|
|
|
12-02-2002, 02:05 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
12-02-2002, 11:47 PM
|
#3
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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.
|
|
|
12-03-2002, 12:35 PM
|
#4
|
LQ Newbie
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26
Original Poster
Rep:
|
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
|
|
|
12-03-2002, 01:09 PM
|
#5
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
its the major/minor numbers of the first and second usb scanners
if mandrake can see the devices pluged/unpluged then hotplug is working.
|
|
|
12-04-2002, 01:59 PM
|
#6
|
LQ Newbie
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26
Original Poster
Rep:
|
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.
|
|
|
12-04-2002, 03:00 PM
|
#7
|
LQ Newbie
Registered: Apr 2002
Location: SWEDEN
Distribution: CentOS 7.2
Posts: 26
Original Poster
Rep:
|
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.
|
|
|
12-04-2002, 06:22 PM
|
#8
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
If your using devfs then all bets are off.
|
|
|
All times are GMT -5. The time now is 06:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|