From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 27 Jun 2004 18:53:50 +0300 From: Michael Shigorin To: ALT Devel discussion list Message-ID: <20040627155350.GR21000@osdn.org.ua> Mail-Followup-To: ALT Devel discussion list References: <40B481BF.2060409@altlinux.com> <20040601115852.GE11462@osdn.org.ua> <20040601122935.GC786@master.mivlgu.local> <20040610064505.GB29312@osdn.org.ua> <40C808F0.1020606@altlinux.com> <20040610181841.GQ29306@osdn.org.ua> <40C8AC75.6060401@altlinux.com> <20040610203628.GU29306@osdn.org.ua> <40C94B59.8000309@altlinux.com> <20040611090128.GW29312@osdn.org.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUk9VBj82R8Xhb8H" Content-Disposition: inline In-Reply-To: <20040611090128.GW29312@osdn.org.ua> User-Agent: Mutt/1.4.2.1i Subject: [devel] Re: Q: hotplug vs two sound/network cards X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 15:53:53 -0000 Archived-At: List-Archive: List-Post: --SUk9VBj82R8Xhb8H Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable PreScriptum: =CD=CF=D6=CE=CF =CF=D4=CC=CF=D6=C9=D4=D8 =D2=C1=DA=C2=CF=D2=CB= =C9 =D3 hotplug/pci =CE=C1 post-Master, =CE=CF =D4=CF=C7=C4=C1 =C2=D9 =C7=C4=C5 =CE=C1=D0=C9=D3=C1=D4= =D8, =DE=D4=CF =D0=CF=C4=C4=C5=D2=D6=CB=C1 Linux 2.6 =D7 ALM2.4 -- =DC=CB=D3=D0=C5=D2=C9=CD=C5=CE=D4=C1=CC=D8=CE=C1=D1 =C9 =C9=DA=D7= =C5=D3=D4=CE=D9 =D4=C1=CB=C9=C5-=D4=CF =D0=D2=CF=C2=CC=C5=CD=D9. =E4=C1=CC=D8=DB=C5 -- =D3=CB=CF=D2=C5=C5 =D3=D3=D9=CC=CB=C9 =C9 =CF=C2=D2= =D9=D7=CB=C9, =DE=D4=CF-=D4=CF =C7=CF=CC=CF=D7=C1 =CE=C5 =D7=C1=D2=C9=D4 = =D3=D7=D1=DA=C1=D4=D8 =D7 =CF=C4=CE=D5 =CE=C9=D4=D8. =EE=CF, =D3 =C4=D2=D5=C7=CF=CA =D3=D4=CF=D2= =CF=CE=D9, =D0=D2=CF =D0=D2=CF=D4=C9=D7=CF=D2=C5=DE=C9=D1 install/boot-timt =CE=C1=D3=D4=D2=C1=C9=D7=C1=CC=CF=CB =C9 "=D7=C5=DE=CE=CF= =DA=C5=CC=C5=CE=CF=C7=CF" hotplug =D5=D6=C5 =CB=CF=CA-=DE=C5=C7=CF =D3 pilot@, rider@ =C9 vsu@ =D5=D3=D0=C5=CC=C9 =CF= =C2=D3=D5=C4=C9=D4=D8. =F0=CF=D6=C1=CC=D5=CA, =D3=C1=CD=C1=D1 =A3=CD=CB=C1=D1 =D0=CF =D3=D4=C5=D0= =C5=CE=C9 =D3=D5=CD=CD=C9=D2=CF=D7=C1=CE=C9=D1 =D3=D3=D9=CC=CB=C1: http://lists.debian.org/debian-devel/2004/03/msg02466.html On Fri, Jun 11, 2004 at 12:01:28PM +0300, Michael Shigorin wrote: > =E4=D2=D5=C7=CF=CA =D7=CF=D0=D2=CF=D3 -- =CB=D5=C4=C1 =D7=CF=CF=C2=DD=C5 = =C4=D7=C9=D6=C5=D4=D3=D1 hotplug? =F7=C5=C4=D8 =DC=D4=C9 =D7=CF=D0=D2=CF= =D3=D9 > =D1=D7=CE=CF =D7=CF=DA=CE=C9=CB=CC=C9 =CE=C5 =D4=CF=CC=D8=CB=CF =D5 =CE= =C1=D3 =C9 =D3=C5=CA=DE=C1=D3 =C9 =D1=D7=CE=CF =C4=CF=CC=D6=CE=D9 =C2=D9=CC= =C9 > =D0=D2=C5=C4=D7=C9=C4=C5=D4=D8=D3=D1 =C5=C7=CF =C1=D7=D4=CF=D2=C1=CD=C9 -= - =CE=C1=D3=DE=C5=D4 =D0=D2=CF=D4=C9=D7=CF=D2=C5=DE=C9=D1 hotplug unix-way > =D0=CF =DE=C1=D3=D4=C9 "=C1=D7=D4=CF=CD=C1=D4 vs =D0=D2=C9=C2=C9=CC=C9_= =C9_=C4=C5=D2=D6=C9=D4=D3=D1", =CB=CF=D4=CF=D2=CF=C5 =CF=D3=CF=C2=C5=CE=CE= =CF =C2=D8=C5=D4 > =D0=CF =C4=CF=D2=CF=C7=C9=CD/"=CE=C5=D7=CF=DA=CD=CF=D6=CE=D9=CD" =C4=CC= =D1 =C1=D7=D4=CF=C4=C5=D4=C5=CB=D4=C1 =D3=D4=C1=D2=D9=CD =D6=C5=CC=C5=DA=CB= =C1=CD =C9 > =C1=C4=CD=C9=CE=C9=D3=D4=D2=C1=D4=CF=D2=C1=CD. (*grin*) http://lists.debian.org/debian-devel/2004/03/msg02479.html http://lists.debian.org/debian-devel/2004/03/msg02409.html: > #2) ALSA's init script is executed after hotplug. The mixer > settings are > then "restored." Same issue: a init script is the wrong place to restore the mixer settings. Two correct places are /etc/modprobe.d/ or a script in /etc/dev.d/. =F3 =DC=D4=C9=CD =C9 =C8=CF=D4=C5=CC=CF=D3=D8 =C2=D9 =D3=CF=C7=CC=C1=D3=C9= =D4=D8=D3=D1, =CE=CF udev =D7 Sisyphus =CE=C5 =CE=C1=C2=CC=C0=C4=C1=C0, =C4=C1 =C9 2.6 =D5 =CE=C1=D3 =D0=CF=CB=C1 =CE=C5 =C4=C5=C6=CF=CC=D4=CE=CF= =C5. =EB =DC=D4=CF=CD=D5 =D0=CF =CD=C5=CC=CF=DE=C9 =CD=CF=D6=CE=CF =D0=D2=C9=C2= =C1=D7=C9=D4=D8=20 http://lists.debian.org/debian-devel/2004/03/msg02526.html http://lists.debian.org/debian-devel/2004/03/msg02487.html: >> You need to add something like this in /etc/modprobe.d/ to >> make modprobe automatically load the OSS compatibility >> module. (snd-mixer-oss is loaded anyway, does anybody know >> why?) >> install snd-pcm /sbin/modprobe --ignore-install snd-pcm && >> /sbin/modprobe snd-pcm-oss > Isn't "above snd-pcm snd-pcm-oss" a simpler and clearer way to > express the same thing? Yes, but it's a modprobe (modutils) thing; modprobe (module-init-tools) doesn't support it. =FA=C4=C5=D3=D8 =CE=C1=CB=CC=C1=C4=D9=D7=C1=C5=D4=D3=D1 =CE=C1 =D7=CF=D0=D2= =CF=D3 =CF =C2=D5=C4=D5=DD=C5=CD modutils vs hotplug, =CB=CF=D4=CF=D2=D9=CA, =D0=CF=CD=CE=C9=D4=D3=D1, =C2=D9=CC =CF=D3=D4=C1=D7= =CC=C5=CE =CF=D4=CB=D2=D9=D4=D9=CD =C4=CF =D7=D9=D1=D3=CE=C5=CE=C9=D1. http://lists.debian.org/debian-devel/2004/03/msg02449.html: It's not at all clear to me that the hotplug framework is the right way to deal with automatically loading modules at boot time. We have other schemes, such as /etc/modules, which work just as well, if not better. -- Theodore Ts'o Followup =D3 =D7=D3=C5 =D4=C5=CD =D6=C5 =D7=CF=D0=D2=CF=D3=CF=CD =CF =D0=CF= =D2=D1=C4=CB=C5 =D3=C5=D4=C5=D7=D9=C8 =C9=CE=D4=C5=D2=C6=C5=CA=D3=CF=D7 =CB= =C1=CB =D2=C5=DA=D5=CC=D8=D4=C1=D4=C5 =CF=D0=D2=C5=C4=C5=CC=C5=CE=C9=D1 discover v= s hotplug: http://lists.debian.org/debian-devel/2004/03/msg02456.html http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D240582: =D0=D2=C5=C4=CC=CF=D6=C5=CE=C9=C5 =C4=CF=C2=C1=D7=C9=D4=D8 "=D2=D5=DE=CB=D5= " =C4=CC=D1 =D7=D9=C2=CF=D2=C1 =CE=D5=D6=CE=D9=C8 =DA=C1=C4=C5=D7=C1=C5=CD= =D9=C8 =CB=CF=CD=D0=CF=CE=C5=CE=D4 =D7 hotplug. =F7 =C9=D4=CF=C7=C5 =CF=CE =D0=CF= =CC=D5=DE=C9=CC =D4=C1=CB=CF=CA changelog entry: --- Changes:=20 hotplug (0.0.20040329-3) unstable; urgency=3Dlow . * debian/hotplug.postinst preserve /etc/default/hotplug closes: Bug#240582 anyway, current debconf configurations are deprecated, and I plan to delete these configuration variables in future. If you need something to load at start time, use /etc/modules instead. * debian/hotplug.postinst move deprecated /etc/hotplug/usb.usermap.local to /etc/hotplug/usb/local.usermap closes: Bug#241144 * debian/hotplug.dirs: add /etc/hotplug/blacklist.d patches/014_load_drivers_blacklist_dir blacklist can be added by other packages, such as ALSA closes: Bug#241225 * patches/013_load_drivers_check_module_dup patches/012_usb.agent_check_driver don't load drivers several times. closes: Bug#232909, Bug#237952, Bug#241326 * patches/012_usb.rc_try_all_interfaces for TYPE=3D0/* USB devices, it will have several interfaces, so try them at startup time. problem reported by mat@nask.pl * patches/012_pci.rc_return_value backported * patches/011_hotplug.functions_quote_loaded backported --- PS: =C5=DD=C5 =CD=CF=CD=C5=CE=D4, =CB=CF=D4=CF=D2=D9=CA, =D7=C9=C4=C9=CD=CF= , =CD=CF=D6=C5=D4 =C9=CD=C5=D4=D8 =CF=D4=CE=CF=DB=C5=CE=C9=C5 =CB ALM2.4 =C9/=C9=CC=C9 3.x: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D75015 (=CB=D2=C1=D4=CB=C9=CA =D3=CD=D9=D3=CC -- "=CF=D4=CB=CC=C0=DE=C9=D4=C5 USB-= =DA=D7=D5=CB =D0=C5=D2=C5=C4 =D5=D3=D4=C1=CE=CF=D7=CB=CF=CA =C9 =C4=CF=C2= =C1=D7=D8=D4=C5 =C5=C7=CF _=D0=CF=D3=CC=C5_ =D5=D3=D4=C1=CE=CF=D7=CB=C9, =C5=D3=CC=C9 =C4= =C5=C6=CF=CC=D4=CE=CF=CA =C4=CF=CC=D6=CE=C1 =C2=D9=D4=D8 =D7=CE=D5=D4=D2=C5= =CE=CE=D1=D1 =DA=D7=D5=CB=CF=D7=C1=D1 =CB=C1=D2=D4=C1") (=DA=C4=C5=D3=D8 =D0=D2=C9=D0=CF=CD=C9=CE=C1=C5=D4=D3=D1 btaudio =C9 =CF=D0= =D1=D4=D8 =C9=C4=D5=D4 =CD=D9=D3=CC=C9 =D0=D2=CF =D0=D2=C9=CF=D2=C5=D4=C9=DA=C1=C3=C9=C0 =CD=CF=C4=D5=CC=C5=CA) --=20 ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --SUk9VBj82R8Xhb8H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA3u2ObsPDprYMm3IRAjGbAKCyzhzGRQ8cTRE2/IGnSwoCMIZQzACfV8Dq QgoFElg0G6r55VFl/MR+xSQ= =qEI+ -----END PGP SIGNATURE----- --SUk9VBj82R8Xhb8H--