Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Be warned: hotplug & coldplug

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Doubleletter
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Sat Dec 25, 2004 4:56 am
Location: Sharjah, UAE

Be warned: hotplug & coldplug

  • Quote

Post by Doubleletter » Sat Dec 25, 2004 12:28 pm

I just thought I should share a problem I had and how I solved it.

I installed Gentoo 2004.3 from the Universal LiveCD; when I came to the step where the handbook instructs us to: 'emerge coldplug', it gave me an error I didn't understand at that time.

Since my keyboard & mouse wouldn't work without that step I did the next logical thing: 'emerge hotplug'. It worked.

When I booted, all went well: I installed x11, gnome (and did 'emerge world -deep'), etc.

When gnome finished installing, I rebooted, and lo behold my keyboard (USB) wasn't being detected. So I tore out lots of hair before I realised that during 'emerge world --deep' the latest version of hotplug had been installed, in which the HOTPLUG INIT SCRIPTS DO NOT WORK like the old one. You _have_ to install coldplug, and do: 'rc-update add coldplug default'.

So if any of you ever happen to have this problem, there it is.

Good luck.
Top
mbjr
Guru
Guru
User avatar
Posts: 531
Joined: Sat Jan 17, 2004 11:32 pm
Location: Budapest/Hungary

  • Quote

Post by mbjr » Sat Dec 25, 2004 8:17 pm

Coldplug worked fine for me today upon new system installation from 2004.3 minimal livecd. :-)

Oh and one more: don't ever use USB if you don't need to :-) I'm still confused why a keyboard and a mouse need to be connected through USB. This is some madness came from Apple Computers Inc. :-) But they have special USB plugs, to just be different... but this is another story and probably a flame :-D so won't bother you with this :-)

The bottom line is that a PS/2 connector should be more than fair enough to connect a kbd or mouse to a box :-)
mb
Top
Daemonax
Apprentice
Apprentice
User avatar
Posts: 211
Joined: Fri Apr 30, 2004 7:46 am

  • Quote

Post by Daemonax » Sun Dec 26, 2004 2:33 am

So we are meant to use coldplug now instead of hotplug? I haven't been keeping up to date on the changes made lately, what makes coldplug different from hotplug?
The God idea is growing more impersonal and nebulous in proportion as the human mind is learning to understand natural phenomena and in the degree that science progressively correlates human and social events. -- Emma Goldman
Top
rhill
Retired Dev
Retired Dev
User avatar
Posts: 1629
Joined: Fri Oct 22, 2004 9:58 am
Location: sk.ca

  • Quote

Post by rhill » Sun Dec 26, 2004 6:06 am

hotplug: automatically detects and (un)loads kernel modules for hardware devices that are (dis)connected while the system is already active. eg. USB printer, plugging in your digital camera or your new mouse you got for xmas and being able to use it right away.

coldplug: automatically detects and loads modules for hardware devices that are already connected when the system becomes active (ie boots). eg. your keyboard, your PCI ethernet card.

hotplug used to also cover for coldplug, loading modules at boot, but that recently changed.

imho, i find it best to build drivers for devices you know you need at boot time directly into the kernel, or use the /etc/modules.autoload.d/kernel-2.6 file to load the modules, and not even bothering to have coldplug at all. :wink:

just a tip: you probably want to put coldplug in the 'boot' runlevel rather than 'default'.
Top
mcdermottpa
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Wed Oct 06, 2004 6:02 pm

  • Quote

Post by mcdermottpa » Sun Dec 26, 2004 7:27 am

dirtyepic wrote:imho, i find it best to build drivers for devices you know you need at boot time directly into the kernel, or use the /etc/modules.autoload.d/kernel-2.6 file to load the modules, and not even bothering to have coldplug at all. :wink:
For what its worth I second this :). If your going to have the device plugged in everytime you press the power button and leave it plugged in until you shutdown modularizing things seems unnecessary.
Murphy's Military Laws:
#19.There is no such thing as an atheist in a foxhole.
#54. Killing for peace is like screwing for virginity.
Top
Daemonax
Apprentice
Apprentice
User avatar
Posts: 211
Joined: Fri Apr 30, 2004 7:46 am

  • Quote

Post by Daemonax » Wed Dec 29, 2004 11:47 pm

So you should have both cold and hotplug installed? And yea just listing modules in modules.autoload.d sounds much better
The God idea is growing more impersonal and nebulous in proportion as the human mind is learning to understand natural phenomena and in the degree that science progressively correlates human and social events. -- Emma Goldman
Top
certocivitas
Apprentice
Apprentice
User avatar
Posts: 194
Joined: Wed Dec 29, 2004 7:10 am

  • Quote

Post by certocivitas » Thu Dec 30, 2004 2:21 am

As I understand it, without coldplug, hotplug will no longer catch usb devices that are plugged in before boot.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic