LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-14-2007, 07:58 AM   #1
Bugenhagen
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Controlling HotPlug


Hi!

I have a Huawei E220 USB modem.
This is a serial unit with an internal "disk" with windows-drivers.

When I insert this, hotplug will load usb-storage, but not usb-serial.

How can I prevent hotplug from loading usb-storage for this device?
I'm not to keen of blacklisting the complete usb-storage module, but just for this device, with vendor=xxx and id=yyy.

//Br
 
Old 05-15-2007, 05:11 PM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
If module is loaded, it is loaded for the whole system but not for specific device. I believe you can edit rc.hotplug (don't know which distro you are using) to make a check if this device is your modem and skip the loading. You can manually remove the module from memory with rmmod usb-storage. If you use 2.6 kernel, use udev.
 
Old 06-12-2007, 06:31 PM   #3
oozie
Member
 
Registered: Mar 2006
Location: Dublin / Ireland
Distribution: GENTOO Slackware SUSE Ubuntu NLD FreeBSD
Posts: 31

Rep: Reputation: 15
Hi!

Quote:
Originally Posted by Bugenhagen
Hi!
I have a Huawei E220 USB modem.
This is a serial unit with an internal "disk" with windows-drivers.

When I insert this, hotplug will load usb-storage, but not usb-serial.
http://blog.ooz.ie/2007/06/huawei-e2...-in-linux.html

Take a look, if you are running SUSE or RedHat, you should be able to fix it with UDEV rule included in the huawei.tar.bz2 package.

It works fine for both if you plug a usb-memory stick and Huawei E220 modem at the same time.
Yes, we can manage without blacklisting usb-storage

Have a lot of phun!

Last edited by oozie; 09-01-2008 at 04:57 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
controlling a touchpad justagirl Linux - Laptop and Netbook 4 12-15-2004 10:42 AM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 01:37 PM
Bandwidth controlling acdc Linux - Networking 1 09-20-2003 03:01 PM
Bandwidth controlling acdc Linux - Networking 1 09-19-2003 07:58 AM
controlling access lomaree Linux - Security 2 07-16-2003 09:51 AM


All times are GMT -5. The time now is 07:39 AM.

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