View previous topic :: View next topic |
Author |
Message |
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Jul 16, 2005 1:58 pm Post subject: Frage zu Coldplug |
|
|
Mit dem neuen Coldplug wird hotplug aus dem runlevel verbannt. Nur Coldplug wird beim booten gestartet.
Frage:
Wieso wird nach einem Start des Linux Systems - mit angeschlossener Digicam - das Device nicht erkannt. Erst nach manuellen aus- und wieder anstecken wird die Digicam erkannt.
Muss hotplug zusätzlich im runlevel boot o. default sein? _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
smg Veteran
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Sat Jul 16, 2005 3:12 pm Post subject: |
|
|
Quote: | coldplug boot
hotplug default
|
cheers. _________________ GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code: | perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);' |
|
|
Back to top |
|
|
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Jul 16, 2005 3:21 pm Post subject: |
|
|
Quote: |
Zitat:
coldplug boot
hotplug default
cheers.
|
eine etwas kurze Antwort. Von wem ist den das Zitat oder sollte es ein Code werden?
Hier ein Auszug von Gentoo Linux Documentation:
Quote: |
If you want modules loaded for devices that have been plugged in before you boot, use the coldplug package
|
das trifft ja auch mich zu, aber coldplug startet z.B. meine Digicam nicht. Muss manuell ab- und wieder angesteckt werden. Dann greift auch schon hotplug:
Quote: |
You do not need to install hotplug unless you want your modules automatically loaded when you plug devices in. hotplug also handles the automated bringup of network devices and firmware downloading.
|
Verstehe ich das jetzt falsch - ich würde sagen hotplug gehört aus allen runlevel, korrekt? _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
smg Veteran
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Sat Jul 16, 2005 3:28 pm Post subject: |
|
|
Mh ich glaube das stand im UDEV Guide drin, also ich habe damit keine Probleme wenn ich die so in die RCs setze.
cheers. _________________ GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code: | perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);' |
|
|
Back to top |
|
|
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Jul 16, 2005 4:13 pm Post subject: |
|
|
Quote: |
Mh ich glaube das stand im UDEV Guide drin, also ich habe damit keine Probleme wenn ich die so in die RCs setze.
|
Kannst du mal den Link für das HowTo posten? Würde gern mal drüber lessen.
Probleme sollten nicht auftreten wenn du hotplug in runlevel hast, aber es ist (wohl) nicht nötigt. _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
flammenflitzer Advocate
Joined: 25 Nov 2003 Posts: 3482 Location: Berlin
|
|
Back to top |
|
|
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Jul 16, 2005 4:44 pm Post subject: |
|
|
ja, aber auf coldplug wird garnicht eingegangen
Genau. Coldplug sollte die device starten, die schon am BUS hängen und hotplug die, die hinzugefügt werden (im laufenden Betrieb). Dazu muss hotplug nicht in den runlevel. So habe ich das verstanden. _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
flammenflitzer Advocate
Joined: 25 Nov 2003 Posts: 3482 Location: Berlin
|
Posted: Sat Jul 16, 2005 5:02 pm Post subject: |
|
|
Wenn Du beide beim booten startest, was ist daran falsch. Coldplug soll per boot. Hotplug ist egal. Ich habe beide ab boot, da es anfangs kain coldplug gab. Da war hotplug ab boot. Später kam coldplug dazu. Also habe ich es dazugenommen und gut. |
|
Back to top |
|
|
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Jul 16, 2005 5:16 pm Post subject: |
|
|
Quote: |
Wenn Du beide beim booten startest, was ist daran falsch. Coldplug soll per boot. Hotplug ist egal. Ich habe beide ab boot, da es anfangs kain coldplug gab. Da war hotplug ab boot. Später kam coldplug dazu. Also habe ich es dazugenommen und gut.
|
Meine Frage bezog sich nur auf Coldplug. Wahrscheinlich ein coldplug problem.
Bez. Hotplug:
Code: |
# cat /etc/init.d/hotplug
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/files/hotplug.rc.empty,v 1.3 2005/01/27 18:29:26 wolf31o2 Exp $
#
# nothing here anymore. Please use the coldplug package if you really want to
# load modules for devices that are discovered by your kernel before init runs.
#
# However, please realize that if you have any problems, the developers
# recommend just using the modules.autoload functionality to handle this in a
# much simpler manner.
#
# Comments, flames, and fine beer should be directed at gregkh@gentoo.org
#
depend() {
need modules
}
start () {
# just verify that people build their kernel with hotplug support.
if [ ! -f /proc/sys/kernel/hotplug ] ; then
eerror "CONFIG_HOTPLUG not enabled for this kernel!"
return 1
fi
# This unpacks any firmware tarballs. Used for LiveCD.
if [ -e /lib/firmware.tar.bz2 ]
then
ebegin "Unpacking hotplug firmware"
tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
eend 0
fi
}
|
Wie du siehst gibt es für hotplug keine Verwendung als boot / default Skript. Kannst es getrost entfernen _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
theche Guru
Joined: 26 Feb 2004 Posts: 512
|
Posted: Sat Jul 16, 2005 11:08 pm Post subject: |
|
|
Ich hab hotplug in garkeinem Level. Geht aber trotzdem. |
|
Back to top |
|
|
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Jul 16, 2005 11:41 pm Post subject: |
|
|
Quote: |
Ich hab hotplug in garkeinem Level. Geht aber trotzdem.
|
aber coldplug
EDIT:
Ich würde diesen Thread gern beenden:
Code: |
# nothing here anymore. Please use the coldplug package if you really want to
# load modules for devices that are discovered by your kernel before init runs.
|
Gruß
Benjamin _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
misterjack Veteran
Joined: 03 Oct 2004 Posts: 1655
|
Posted: Sun Jul 17, 2005 12:40 am Post subject: |
|
|
ein blick ins gentoo wiki hätte das auch beantwortet: Klick mich _________________ „Meine Meinung steht fest! Bitte verwirren Sie mich nicht mit Tatsachen.“ |
|
Back to top |
|
|
|