Quote:
Originally posted by eNightmare
What exactly does hotplug do, and what am I missing if I disable this feature.
|
What hotplug does (in Gentoo it's called coldplug) is to detect your hardware and cause a number of modules to be loaded. Modules are part of the kernel, but instead of being compiled in, they can be loaded to a running kernel or not as need be. This means that the kernel takes less memory, because on a general purpose distro, loads of modules have to be available to cover a range of hardware that the system may encounter. In Gentoo, Hotplug then controls the reaction to things you might plug in AFTER the system has booted (USB keys, etc). When you stop Hotplug in other system, these functions still work. So Hotplug comes in two sections, if you like, which is why Gentoo calls one of them Coldplug!
The consequence of disabling Hotplug is that you have to tell your distro which modules to load. otherwise some of your hardware won't work.
In Gentoo there is a file at /etc/modules.autoload.d/kernel-2.6, and in PCLinuxOS and Mandrake/Mandriva it is at /etc/modprobe.preload. This lists the modules that the system must load. Other distros will have to have a similar file, you'll have to find it. How do you find out what modules you need?
Well you open a terminal AS ROOT, and issue the command: "lsmod"
What you get, is a list of modules loaded by hotplug. Before stopping Hotplug, you need to copy these module names, IN REVERSE ORDER, to the file I mentioned above. Only the module name, nothing else. Modules which have a further list of modules further along their line, do not need to be added specifically, as loading any of the modules in the list will cause them to load anyway, but there is no harm in you keeping them in. You may even notice some that clearly refer to hardware you don't have (eg with sata in the name) as Hotplug does tend to go too far. You could try leaving those out.
To actually stop hotplug running in Mandr*** or PCLinuxOS, you have to run the M/P Control Centre > System > Configure System Services then you just find Hotplug in the list and uncheck it so it doesn't start on the next boot. In Gentoo you have to run this line from a console as root:
Code:
rc-update del coldplug boot
If you are using another distro, you'll have to find out for yourself how to stop hotplug at startup. But of course, once you know what modules are needed, why waste time whilst a program searches them out every time you boot?