LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2005, 05:36 PM   #1
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Rep: Reputation: 33
the truth about hotplug


I have been trying to figure out hotplugging for a while now, and I can't really come to a good understanding of it. I've experimented with it from disabling certain agents, to disabling it all together. I've read up what I can comprehend on the sourceforge hotplug site, googled it, etc, and I just can't seem to find any concrete info.

Here's the problem: it takes forever during boot

I don't have anything blacklisted, as I don't have any errors. I've experimented with disabling agents and the rc.hotplug script in various combinations. So far, even with it completely disabled it seems to have no effect on my system. It boots faster, all my hardware works, etc. But from what I've read about disabling it, I won't be able to plug anything into my computer while it's running and be able to use it.

What I'd like to do is scale it down to the point that it doesn't bother with detecting all the hardware that is already supported by my kernel config. I'd basically like it to do nothing during the boot process, while leaving it active so it will still work if I plug in a digital camera or a different mouse, a pda, etc. Basically what it amounts to is I want to be able to hotlpug usb devices.

I looked through /etc/hotplug.d/default.hotplug, and it looks like it just looks for the various agents found in /etc/hotplug/ But disabling them doesn't seem to have any effect at boot. And the /etc/rc.d/rc.hotplug script just looks for *.rc files in /etc/hotplug/. The only .rc files there are input.rc, pci.rc, and usb.rc. I'm wondering if I can just disable or rename the input.rc and pci.rc files so the usb.rc script is the only one that rc.hotplug finds.

I have no idea if this is the right way to approach this, or if I'm completely off base.

If anyone can point me in the right direction or post a link that explains it a little better, please let me know. I'm clueless so far.

Thanks in advance.
 
Old 01-13-2005, 05:44 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
---------
But from what I've read about disabling it, I won't be able to plug anything into my computer while it's running and be able to use it.
---------

i think that's not true. hotplug loads modules, udev makes the devices.
you can ( correct me if i'm wrong ? ) load all modules you need in rc.modules, and leave out hotplug.

when you plug-in smth. in a usb conn. ,a device will be made and you can use it....( if the modules are there )

egag
 
Old 01-13-2005, 06:01 PM   #3
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Original Poster
Rep: Reputation: 33
Well, i was reading a bit more about the agents. It sounds like the agents are the part that loads the appropriate driver/module when you plug something in after you boot. It sounds like the *.rc files in /etc/hotplug just configure everything that's already plugged in at boot. But if they're already built in to the kernel or loaded as modules, it sounds like you won't need hotplug to see them during the boot.

egag, so basically I can just build and load the appropriate modules for the things I know i might need and forget about hotplug? If that's the case, then I think I'm set. I just built 2.6.10 and included support for the few extra things that I use. It's not like I have a basket full of random gadgets that I plug into my computer to see if they work....there's just a few things I use on occasion. I'll have to experiment a bit more and see how it works. Thanks.
 
Old 01-13-2005, 06:14 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well...if i were you i'd just try it.
i think hotplug is meant for " universal " kernels with lots of modules ( like the startup kernels supplied on disc), to boot on a variety of hardware-combinations.

if you build your own kernel/modules you can do without that.
( you know what you need... )

hope you'll post if all works... ( or not )

egag

Last edited by egag; 01-13-2005 at 06:15 PM.
 
Old 01-13-2005, 11:09 PM   #5
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Original Poster
Rep: Reputation: 33
Well, I have a bit of an update. I'm currently working with hotplug completely disabled. chmod ugo-x /etc/rc.hotplug. Boot is noticeably faster (obviously). Unfortunately I haven't been able to test a whole lot of devices. I plugged in a USB game controller pad thing that I never use. It was immediately recognized and listed in "cat /proc/input/devices" with appropriate usb address, etc. As I didn't have any game installed to see if it actually worked, I decided to try an additional USB mouse. I plugged it into the same port, alongside my usual mouse, and /proc/input/devices was immediately updated with new information about the mouse. Better yet, it worked....instantly....with my other mouse. I would really like to see if I can plug in the digital camera and mount the device to get pics, but the battery is dead. And I can't find the adapter. As soon as I do, I'll try it out and post back. But so far, things are looking good for running without hotplug. I'll let you know if anything changes. In the meantime, I'm going to scour the house for more things to try out.

Last edited by kersten78; 01-13-2005 at 11:12 PM.
 
Old 01-14-2005, 04:28 AM   #6
brancalessio
LQ Newbie
 
Registered: Aug 2004
Posts: 24

Rep: Reputation: 0
I know you problem (unfortunately).

I installed Slackware on three computer: 9.1 on two desktops and 10.0 on a laptop. On the two desktops it takes a while to start, on the laptop it takes quite a long time instead.

Since the hotplug script does nothing other than loading the appropriate modules for devices already found by the kernel (eventually on boot), the answer should be that one or more of these modules takes a lot to load...

I think the problem is with the pcmcia (more or less the only difference with the three computers). What kind of computer is yours?


I confirm that you can disable hotplug and edit rc.modules to have the right modules loaded (of course you must know what these modules are and take care that when you plug a flash pen o a usb cdwriter usually hotplug loads some other modules). So you are compelled to load modules which you are not using... this is not a good thing.

Bye!
 
  


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
Moment of truth... Installing Linux! ugoff Linux - Newbie 7 12-09-2004 05:35 AM
Finally the truth! witeshark General 7 09-01-2004 09:40 AM
The truth according to M$ london_geezer General 7 07-28-2004 03:11 PM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 01:37 PM
hotplug? DrGnome Linux - Software 8 04-07-2004 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:00 AM.

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