This is a discussion on Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I have posted previous letters concerning 2.4.22 default bare.i kernel, while using a KVM IOGear 4-port switch tends ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I have posted previous letters concerning 2.4.22 default bare.i kernel, while using a KVM IOGear 4-port switch tends to drop support (modules for USB) anytime I'm away from the system (while switched ) for more than twenty minutes working on a different system. I lose USB support for my mouse and keyboard, forcing me to reboot the system? One mentioned that I should compile USB support into the kernel using kmod ? possibly (LIBMKMOD-CONFIG) Can anyone shed some direction on compiling USB permanently into the kernel, Keep in mind that kernel 2.4.22 by default contains support for USB by default, and its hot-plug sub-system loads any needed modules as needed. Edward, |
| |||
| Edward Ascencio wrote: > Hi, > > I have posted previous letters concerning 2.4.22 default bare.i kernel, > while using a KVM IOGear 4-port switch tends to drop > support (modules for USB) anytime I'm away from the system (while switched ) > for more than twenty minutes working on a different system. > > I lose USB support for my mouse and keyboard, forcing me to reboot the > system? This sounds like what I had happening with my printer. The kernel loaded the modules automatically when printing. This worked fine. Until one day I sent a print job and the printer was off. When I went back the next day the kernel had unloaded the modules, then when the printer was turned on the system tried to print and it bombed out. This is a feature of the kernel to limit used memory. If it isn't needed why keep the module loaded. here is the section in the kernel config. Kernel module loader CONFIG_KMOD: Normally when you have selected some drivers and/or file systems to be created as loadable modules, you also have the responsibility to load the corresponding modules (using the programs insmod or modprobe) before you can use them. If you say Y here however, the kernel will be able to load modules for itself: when a part of the kernel needs a module, it runs modprobe with the appropriate arguments, thereby loading the module if it is available. (This is a replacement for kerneld.) Say Y here and read about configuring it in Documentation/kmod.txt. ----- What I did was load the modules manualy in /etc/rc.d/rc.modules and that fixed the problem. When you boot up your system see what modules are loaded when it is working that will tell you what to put in the config file. HTH |
| |||
| In article <b8plb.517102$2x.239805@rwcrnsc52.ops.asp.att.net> , Edward Ascencio wrote: > while using a KVM IOGear 4-port switch tends to drop > support (modules for USB) anytime I'm away from the system (while switched ) > for more than twenty minutes working on a different system. chmod -x /etc/cron.hourly/kmod # (I do that on all my new installs.) > One mentioned that I should compile USB support into the kernel using kmod ? > possibly (LIBMKMOD-CONFIG) kmod is in Slackware kernels already. If you based your configuration on a Slackware kernel you would know if you had disabled kmod. BTW don't let the aforementioned cron script's name confuse you. It has nothing to do with kmod, except for the fact that it removes modules which kmod had loaded. See the -k option in "man modprobe". > Can anyone shed some direction on compiling USB permanently into the kernel, Your long $SUBJECT says it all. Don't. > Keep in mind that kernel 2.4.22 by default > contains support for USB by default, and its hot-plug sub-system loads any > needed modules as needed. You were looking in the wrong direction to try to fix this problem. I am on record as being vehemently pro-modular-kernels. I cannot fathom why so many people go to such lengths to throw away the flexibility and power of modules to get a MS-Windows-like "reboot-to-change-anything" system. (It is *worse* than Windows, because in many cases it's the "Three R's": reconfigure, recompile, reboot.) Users with their monolithic kernels can comfort themselves during their 17th recompile with the memory of the many milliseconds of [otherwise idle] CPU time they have saved by not having to run modprobe. It's a classic case of valuing appearance over essence. -- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply |
| |||
| /dev/rob0 wrote: > In article <b8plb.517102$2x.239805@rwcrnsc52.ops.asp.att.net> , > Edward Ascencio wrote: > >>while using a KVM IOGear 4-port switch tends to drop >>support (modules for USB) anytime I'm away from the system (while switched ) >>for more than twenty minutes working on a different system. > > chmod -x /etc/cron.hourly/kmod # (I do that on all my new installs.) What if you still want some modules to unload automatically? >>Can anyone shed some direction on compiling USB permanently into the kernel, > > Your long $SUBJECT says it all. Don't. Yes it is long. I missed the hot-plug part. I skipped installing that beast. Too many people having problems with it and my way has worked fine for me. >>Keep in mind that kernel 2.4.22 by default >>contains support for USB by default, and its hot-plug sub-system loads any >>needed modules as needed. kmod will take care of that too right? Well it does for me. > You were looking in the wrong direction to try to fix this problem. > > I am on record as being vehemently pro-modular-kernels. I cannot fathom > why so many people go to such lengths to throw away the flexibility and > power of modules to get a MS-Windows-like "reboot-to-change-anything" > system. (It is *worse* than Windows, because in many cases it's the > "Three R's": reconfigure, recompile, reboot.) I'm with you here. I need something, load the module and motor on. |
| |||
| In article <3F96F4D1.8010704@-.com>, R. wrote: >> chmod -x /etc/cron.hourly/kmod # (I do that on all my new installs.) > > What if you still want some modules to unload automatically? 1. Why? Planning on saving lots of memory? Forget it. A typical module only uses a few KB -- peanuts on a system with 32MB or more. 2. Then perhaps you would want to learn how it works. "man modprobe", look for references to "autoclean". Note how NOT to set the autoclean flag on a loaded module. >>>Keep in mind that kernel 2.4.22 by default >>>contains support for USB by default, and its hot-plug sub-system loads any >>>needed modules as needed. > > kmod will take care of that too right? Well it does for me. "kmod" != "hotplug". Kmod only loads a module when it is called; when something wants to use a device which doesn't have support in the kernel. OTOH hotplug loads a module for detected hardware, and further may also run configuration commands or scripts. Depending on what USB devices you use, yes, it is possible that you can get by without hotplug. For that matter you can use modules.conf (or modprobe.conf with the replacement for modutils) to train kmod to do some very nice tricks. -- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message On Thu, 23 Oct 2003 17:22:51 -0400, R. <-@-.com> wrote: > /dev/rob0 wrote: > > message > /dev/null ROFL! You're insane. And you'd better add 2> /dev/null in there, too, as he might cause some errors when he gets sent to /dev/null. :-) I think you'll find the newsgroup a less helpful place when /dev/rob0 isn't in it for you. If you want a list of folks to killfile to make your experience more pleasurable, send me an email and I'll send you back my list. ;-) -- Rob | If not safe, Email and Jabber: | one can never be free. athlonrob at axpr dot net | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/mJWehm6KEoOOAe0RAvVLAJsGsMovUVhEZY6AnJRmbGP6NxexnQ Cgp2Zi M4rzMRUrvHXY9Tr0B1ykLrs= =418j -----END PGP SIGNATURE----- |
| |||
| AthlonRob wrote: Yawn.... > I think you'll find the newsgroup a less helpful place when /dev/rob0 > isn't in it for you. No help needed here. Doesn't matter, don't care. |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2003-10-24, R. <-@-.com> wrote: > > No help needed here. Doesn't matter, don't care. Good luck receiving help in the future--sounds like you may need it. If you didn't like /dev/rob0's attitude, you certainly won't like anyone else's. - --keith - -- kkeller-usenet@wombat.san-francisco.ca.us (try just my userid to email me) AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj+YsMEACgkQhVcNCxZ5ID9XTwCfeUnp/YFvcMe/iUJbtHiplTE7 jHgAn3jWCBE4wflx0s4Wf4QOBvElUKU4 =VCBP -----END PGP SIGNATURE----- |
| ||||
| Keith Keller wrote: > On 2003-10-24, R. <-@-.com> wrote: > >>No help needed here. Doesn't matter, don't care. > > Good luck receiving help in the future--sounds like you may need it. If > you didn't like /dev/rob0's attitude, you certainly won't like anyone > else's. Read my two sentences above again. When you finally comprehend them, find something else to do. |