LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-24-2004, 11:28 AM   #1
redneon
Member
 
Registered: Aug 2003
Posts: 103

Rep: Reputation: 15
Find out which modules are loaded?


Does anyone know how it's possible to find out exactly what modules the kernel has loaded whether they're built in or not? Am I literally gonna have to analyse the output from dmesg and lsmod? I don't really want to traul through the init scripts to find out what modules Mandrake has loaded.

The problem is I have a mouse that, no matter what I do, I can't get working properly no matter which 2.6 kernel I use except one. I've tried the vanilla kernel, Red Hat's kernel, Gentoo's kernel but my mouse always plays up. I decided to Mandrake today to see if that worked ok with it and it did.

I don't really want to use Mandrake. I much prefer distros like Slackware, Gentoo and Crux (no offence to Mandrake users) so any help anyone can give me would be... helpful (courtesy of Monty Python).

Cheers,

Darrell
 
Old 05-24-2004, 11:44 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
There is probably a file /boot/config-KVERS (where KVERS is your kernel version) in the system; it should contain all the flags and selections made in the kernel configuration phase. To see what modules are loaded at runtime, use lsmod.
 
Old 05-24-2004, 11:45 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
as root:in a term window or command line
Code:
cat /proc/modules
 
Old 05-25-2004, 02:51 AM   #4
redneon
Member
 
Registered: Aug 2003
Posts: 103

Original Poster
Rep: Reputation: 15
Doesn't "cat /proc/modules" show you which modules are actually modules and not included in the kernel? It's an effective lsmod. Is there any way I can find out what's included in the kernel too?

Darrell
 
Old 05-25-2004, 03:38 AM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Have you tried compiling your own 2.6.x instead of using pre-packaged ones?
 
Old 05-25-2004, 07:20 AM   #6
redneon
Member
 
Registered: Aug 2003
Posts: 103

Original Poster
Rep: Reputation: 15
Yes that's what I'm saying. I've configured my own with loads of different module configurations but I can't get my mouse working right. It's not like I don't know what I'm doing. I've been using Linux since Slackware 3. I don't know how far away that is. I estimate six years. So because I couldn't get it to work myself I decided to try the automatic configured ones and the Mandrake one works which is why I want to know what it's loaded.

Darrell
 
Old 05-25-2004, 08:50 AM   #7
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
What kind of mouse? USB or PS/2?

Commonly forgotten driver for the USB is mousedev (others are HID and USB-[UO]HCI). Be aware that hotplugging won't necessary work if they are not loaded as a module (also don't load the usbmouse, because it doesn't work with hid/usb-subsystem).

And for the 2.6 series, there is a module named psmouse that is needed for PS/2-mouses. (Was statically part of kernel in 2.4-tree).
 
Old 05-25-2004, 09:54 AM   #8
redneon
Member
 
Registered: Aug 2003
Posts: 103

Original Poster
Rep: Reputation: 15
It's actually a USB wireless keyboard and mouse that works through one USB port. The mouse does work but it jerks when you move it instead of smoothly moving. If I plug an ordinary USB mouse in it works fine.
 
Old 05-25-2004, 12:03 PM   #9
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
hmm.. is your mouse configuration in X something like:
Code:
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "ZAxisMapping"          "4 5"
EndSection
And what modules you have loaded when it is not working? Have you tried switching between the ohci and uhci drivers?
 
  


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
Change Loaded Modules thadco Linux - Hardware 1 09-06-2005 07:58 PM
cannot find map file. No module symbols loaded - kernel modules not enabled. jjorloff1 Linux - Software 3 01-06-2005 11:02 AM
What modules loaded in a apache2 gianh Linux - Software 0 05-27-2004 07:31 AM
Kernel 2.6.5 -> no modules loaded Spheerke Debian 4 04-07-2004 09:05 PM
how do you find out what modules loaded?? osat3ch Mandriva 3 01-17-2004 10:05 AM


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