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 02-14-2003, 04:18 PM   #1
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
USB force port


Hey all,

I have a RH 7.3 + gs + omni + gimpprint + cups box running as a print server for about 30 printers, connected via lpt, usb, win9x/nt, and jet direct. It works fine, except when we remove and replace one of the usb printers.

When you configure the system to share the USB printer, you assign it a port, like /dev/usb/lp3, /dev/usb/lp4....

Those are assigned when the printer is plugged in, and are assigned in order of availability. So, if lp2 is used and lp1 is free, and you unplug lp2 and then plug it back in, it goes to lp1, which hoses the print server because that might be assigned to another printer with a different driver.

Is there someway to force a particular usb device to be assigned to a particular port. We often have to temporarily move a printer....

Thanks for any info,
Jon
 
Old 02-14-2003, 06:38 PM   #2
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Original Poster
Rep: Reputation: 15
Just a revision to my problem --

After some research, it looks like this problem may be rather easily fixable. If the printer module (printer.c) could somehow be told to force the port based on the vendor id + product id, that would be ideal. You'll just have to get those two strings for each printer, and then map them to the specific port. You could make a change in the modules.conf that would accomplish that.

So, am I re-inventing the wheel here, or has this been done?

Thanks again,
Jon
 
  


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
Using an USB port as a standard DB9 Serial Port Lsteele Linux - Newbie 1 10-22-2005 10:48 AM
how can I force port 80 to a proxy server using iptables scheney Linux - Security 1 10-21-2005 02:25 PM
Can I force a TCP port to close Ratclaws Linux - Networking 2 09-06-2005 03:36 PM
force feedback wheel usb Mr Marmmalade Linux - Hardware 2 10-03-2004 02:34 PM
Blocking brute force port scanning?? FunkFlex Linux - Security 1 05-03-2002 02:43 AM

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

All times are GMT -5. The time now is 09:33 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