Automatic Module Loading
I bought a new mouse and keyboard and when X boots my mouse won't work. I noticed that when I open the little mouse dialog thing in YaST2 my mouse miraculously starts working. Anyway, by doing a diff on an lsmod before and after opening YaST2 I found the culprit. The module hid.o needs to be loaded at system boot, but I am not familiar with the module file hierarchy in SuSE. I know in Debian all I have to do is add `hid' to /etc/modules, but that file is nonexistant in SuSE. I decided I better RTFM, so I did and I think /etc/modules.conf is the file I need to alter. But what confuses me is that that file is just full of a bunch of `alias' lines, and if I don't put an alias for the `hid' it complains. So I added the line: alias usbdrv hid At system boot I thought I saw the module load, but when X starts my mouse doesn't work, and when I do an lsmod the module is not loaded. Am I even modifying the right file? Does an `alias' line actually load a module or does it just set an alias for the module? Jason Pacheco Systems Developer Technology Center for Cables & Connectors Naval Undersea Warfare Center
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Strangely enough, USB mice just work on my boxes. What's in the input section of XF86Config? On Thursday 18 December 2003 11:11 am, Pacheco Jason NPRI wrote:
So I added the line: alias usbdrv hid
At system boot I thought I saw the module load, but when X starts my mouse doesn't work, and when I do an lsmod the module is not loaded. Am I even modifying the right file?
The file you probably want is /etc/sysconfig/hotplug, particularly the HOTPLUG_USB_STATIC_MODULES variable.
Does an `alias' line actually load a module or does it just set an alias for the module?
It just sets an alias, but certain aliases are used for autoloading modules. - -- James Oakley Engineering - SolutionInc Ltd. joakley@solutioninc.com http://www.solutioninc.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/4c9r+FOexA3koIgRApxyAJ4pqlt4HS97XbG8WRIdMd7eKBd2qgCfTB2u gLaJWWXkr0ezsFD0MbjynLM= =1whi -----END PGP SIGNATURE-----
participants (2)
-
James Oakley
-
Pacheco Jason NPRI