LinuxQuestions.org
Review your favorite Linux distribution.
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 10-15-2003, 06:45 PM   #1
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
stop hotplug from detecting things connected to usb (but still noticing usb itself)


i have a psc2110xi printer, and it is kind of a nuisance for my family to have problems turning the printer on before starting the computer and it screwing up printing

it seems that when hotplug detects the printer, it does some funny insmodding and config changing and then i cannot print

is it possible to keep hotplug on and still allow it to notice the usb hubs and ports themselves without making it recognize things attached to them?


*note: the printer works fine through cups when i turn it on after slackware is loaded

also, i've tried putting "printer" (the module being loaded that screws things up) in /etc/hotplug/blacklist, but hotplug still sees the printer and does something weird; i want to stop this
 
Old 10-15-2003, 11:43 PM   #2
Sometimes
Member
 
Registered: Oct 2003
Location: Richmond, VA
Distribution: Depends on the week...
Posts: 64

Rep: Reputation: 15
Unfortunately, the answer is "mostly" No.

You could most likely make some low-level changes (the likes of which I wouldn't know) but what you're basically asking USB to do is not act like USB. One of the primary purposes of USB is to allow all daisy-chained devices to act as if they are not daisy chained: Having a hub makes no difference to your USB controller, for example.

What would be much easier to fix is: figure out why you're having problems on boot-up with the printer.
 
Old 10-16-2003, 12:08 AM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
when it loads the module printer and it screws things up, can you fix it by unloading the module?
rmmod printer

If this helps, you could add this to your /etc/rc.d/rc.local.
 
Old 10-17-2003, 07:37 PM   #4
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
ya, i guess i probably was asking too much
the problem was not really the module, but what hotplug was doing to the system links or whatnot, and that is something cups did not like

anyway, i seem to have solved my problem (although it doesn't seem as though anything has truly changed when i bootup)
i figured that i really don't ever want automatic modprobing done for anything i attach to my usb devices and that i could simply do some modprobing manually or through rc.localhost to setup usb, but i do like hotplug's automatic pci modprobing
thus i decided to alter rc.hotplug and changed all the places that said *.rc to pci.rc so that it would hopefully only do pci stuff and avoid usb.rc

i reboot after making these changes (with my printer on) but to my dismay, i still saw automatic usb modprobing done and saw that it recognized the printer (which was exactly what i did not want it to do) but it skipped a step that was done before

i go into gnome and try to print... amazingly it worked (i tried with my printer off at bootup and it worked as well)

although everything is fine now with my printer, just a curiosity, why is hotplug still doing usb modprobing when i specifically told it to only do pci scripts? is there another file that hotplug looks to to tell it to do things?
 
Old 10-18-2003, 01:01 AM   #5
Sometimes
Member
 
Registered: Oct 2003
Location: Richmond, VA
Distribution: Depends on the week...
Posts: 64

Rep: Reputation: 15
Are you sure that it isn't the kernel itself doing the probing?

If everything works perfectly now, though, that's the important part.
 
Old 10-18-2003, 10:35 AM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
hmm, never thought of that, but ya i guess i should have thought of something like that happening

i guess i'll find out if it really is the kernel when i compile the upcoming 2.6.0 kernel (i see no need to compile now)
 
  


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
USB hotplug problems robbow52 Debian 4 06-02-2005 01:30 PM
USB hotplug mp4-10 Linux - Hardware 2 03-08-2005 07:49 PM
USB: Need hotplug or not? Worstje Linux - Hardware 3 09-13-2004 06:27 PM
USB Hotplug plehman Linux - Hardware 5 07-18-2003 07:37 AM
usb hotplug not working? kris928 Linux - Hardware 1 04-05-2003 08:17 PM


All times are GMT -5. The time now is 02:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration