LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2006, 04:09 AM   #1
tomdalton
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
How to update my USB modules


Hi,

At work I use two machines, a linux box running Redhat Enterprise WS and a Windows box running XP Pro. I have a usb keyboard and mouse and a flatpanel monitor, which run through a 2 port KVM switch to each machine. The KVM switch uses USB for the KM, as my windows machine doesn't have PS2 connectors.

The problem that I have is that when I swtich from Windows to Linux, about 75% of the time the keyboard and mouse become locked out. No amount of switching back and forth will unfreeze them. The keyboard and mouse always work ok in Windows, so I know the KVM is working correctly.

So, I figure the best start is to upgrade my kernel modules for USB. From what I can gather from lsmod and internet searches etc, the USB modules that I have loaded are 'uhci.hcd' and 'ehci.hcd'. My problem is that I have no idea where I can find the updated versions of these modules, or how easy they are to install.

Neither of my work PCs are (or can be) connected to the internet, so the auto update features of Redhat cannot be used.

Thanks for any help people can give!

Tom
 
Old 08-25-2006, 07:50 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: voidlinux with LXDE
Posts: 5,509

Rep: Reputation: Disabled
you do not get to update modules but you can update kernels.

2) since you are not on the net, the first thing is to establish that your usb stuff is actually modules or built into your kernel

open a terminal in linux and type command
su (and when prompted your root password.....assuming keyboard works)

then the other commands are

lsmod (means list modules currently loaded)

eg for me
[root@]# lsmod
Module Size Used by
usb_storage 31108 0
usblp 11328 0

I have enabled the usb 1.1 and 2 in the kernel itself and I have had no need for any k/b or other device other than usb memory sticks and usb printer.

3) another command is lspci

this output is a bit long to post here but you can see yours will contain usb controllers..I hope


4) Assuming all usb stuff is modules you can then remove and re-insert modules after turning the switch....it is better that they are modules because I think, I may be wrong, if built in, you would do a reboot.....yuck

5) rmmod....removes module

eg
[root@]# rmmod usblp
[root@]# lsmod
Module Size Used by
usb_storage 31108 0

6) modprobe (name of module) to re-insert
[root@]# modprobe usblp
[root@]# lsmod
Module Size Used by
usblp 11328 0
usb_storage 31108 0

there usblp is back in and working

7) hopefully your switched system works?
 
Old 08-25-2006, 08:23 AM   #3
tomdalton
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I can't disable the usb modules (specifically it seems to be 'ehci.hcd' that's locking when I switch back to linux) before I switch away, as then I don't have a keyboard input to reenable the module when I switch back. Maybe I need to install a newer kernel... :-/
 
Old 08-26-2006, 02:38 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: voidlinux with LXDE
Posts: 5,509

Rep: Reputation: Disabled
ahh nope....my mistake....hopefully someone will think of a smarter way....unless you have another keyboard...but then that defeats your choice eh?
 
  


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
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 06:49 PM
Update-modules failing: What package contains? geekzen Debian 2 04-01-2004 09:48 PM
usb mpio - issues loading usb modules edigital Linux - Software 0 02-16-2004 10:00 PM
How to run update modules vsj Linux - Newbie 1 01-21-2004 01:51 PM
modules prob after kernel update CycloneInDC Linux - Hardware 6 11-14-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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