From mboxrd@z Thu Jan 1 00:00:00 1970 From: Beffe Date: Wed, 04 Sep 2002 21:03:23 +0000 Subject: Re: help for loading pwc module (solved) Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi again, i don't know if anybody reads this list, but i`ll tell you how i solved my problem anyway. As i told you, usbmodules didn't find the pwc module for my webcam allthough it is there in modules.usbmap. Now the problem was that the function load_drivers didn't execute the usb_map_modules function either cause it had the LISTER variable set. So i simply had to change line 122 in hotplug.functions from=20 if [ "$LISTER" =3D "" ]; then to=20 if [ "$LISTER" =3D "" -o "$DRIVERS" =3D "" ]; then to let it execute usb_map_modules which finds the pwc module. Another question: in usb.agent you first call load_drivers with modules.usbmap, then you call load_drivers with usb.handmap and last you call it with usb.usermap, regardless if the prior call did already load a module. Also, if load_modules has found a module, first it tries to load the kernel module and then it executes the userscript. In my opinion, if i have a userscript i would like to have it precedence before the kernel module. That means that first load_drivers has to be called with the usermap and it has to try to execute the userscript before loading a kernel driver. Also if there has been a driver found and loaded, why not just stop but trying to find one or two more times a driver again?=20 In my case, where usbmodules takes some 5 seconds on the webcam before it cancels, this means about 15 seconds slowdown at boot time. I would be really happy if one would answer. Maybe everybody is on holiday? Bye, Beffe Am Die, 2002-09-03 um 22.25 schrieb Beffe: > Hi all, >=20 > at least i would have expected an RTFM or something. But nothing. OK. I > did some more debugging and found out, that usbmodules on the webcam > device takes some seconds and then gives a "cannot get config descriptor > 0, Connection timed out (110)" > Does anybody (if there is someone) know what that means and what i can > do to help usbmodules to find the right driver? > Also, where can i find this shell script "usb_map_modules"? Maybe that > would find my driver. >=20 > I would be really greatful for any help. >=20 > Thanks, > Beffe >=20 > Am Fre, 2002-08-30 um 23.51 schrieb Beffe: > >=20 > >=20 > > Hi List, > >=20 > > first thanks for your great work on hotplug, i like it. > >=20 > > Now i have a Philips Webcam, the PCVC680K "Vesta Pro" and i don't know > > how to tell hotplug to load the pwc module. > >=20 > > when i plug it in, hotplug says:=20 > > {syslog}/etc/hotplug/usb.agent: ... no modules for USB product 471/308/6 > >=20 > > the entry in /proc/bus/usb/devices looks like this: > >=20 > > T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#=3D 6 Spd=12 MxCh=3D 0 > > D: Ver=3D 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=3D 8 #Cfgs=3D 1 > > P: Vendor=0471 ProdID=0308 Rev=3D 0.06 > > S: SerialNumber=02130211A0105BF5 > > C:* #Ifs=3D 3 Cfg#=3D 1 Atr=A0 MxPwrP0mA > > I: If#=3D 0 Alt=3D 0 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 0 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 1 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 196 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 2 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 292 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 3 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 448 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 4 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 592 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 5 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 704 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 6 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 776 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 7 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 840 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 8 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 896 Ivl=3D1ms > > I: If#=3D 0 Alt=3D 9 #EPs=3D 2 Cls (data ) Sub=FF Prot=00 Driver=3D(none) > > E: Ad=82(I) Atr=03(Int.) MxPS=3D 1 Ivl=100ms > > E: Ad=84(I) Atr=01(Isoc) MxPS=3D 960 Ivl=3D1ms > > I: If#=3D 1 Alt=3D 0 #EPs=3D 0 Cls=01(audio) Sub=01 Prot=00 Driver=3D(= none) > > I: If#=3D 2 Alt=3D 0 #EPs=3D 1 Cls=01(audio) Sub=02 Prot=00 Driver=3D(= none) > > E: Ad=85(I) Atr=05(Isoc) MxPS=3D 0 Ivl=3D1ms > > I: If#=3D 2 Alt=3D 1 #EPs=3D 1 Cls=01(audio) Sub=02 Prot=00 Driver=3D(= none) > > E: Ad=85(I) Atr=05(Isoc) MxPS=3D 90 Ivl=3D1ms > > I: If#=3D 2 Alt=3D 2 #EPs=3D 1 Cls=01(audio) Sub=02 Prot=00 Driver=3D(= none) > > E: Ad=85(I) Atr=05(Isoc) MxPS=3D 46 Ivl=3D1ms > > I: If#=3D 2 Alt=3D 3 #EPs=3D 1 Cls=01(audio) Sub=02 Prot=00 Driver=3D(= none) > > E: Ad=85(I) Atr=05(Isoc) MxPS=3D 25 Ivl=3D1ms > > I: If#=3D 2 Alt=3D 4 #EPs=3D 1 Cls=01(audio) Sub=02 Prot=00 Driver=3D(= none) > > E: Ad=85(I) Atr=05(Isoc) MxPS=3D 16 Ivl=3D1ms > >=20 > > now i tried several lines in usb.distmap, usb.handmap and usb.usermap, > > the last try was: > > pwc 0x0003 0x0471 0x0308 0x0000 0x0000 = =20 > > 0x00 0x00 0x00 0x00 0x00 > > 0x00 0x00000000 > >=20 > > but nothing worked. Always " ... no modules for USB product 471/308/6" > >=20 > > Can anybody tell me the right line?? > > Thanks in advance. > >=20 > > Just for understanding: > > this line in usb.distmap would try to load the pwc kernel module, while > > this line in usb.usermap would execute a script called > > /etc/hotplub/usb/pwc ? is this right? i have this script but it is not > > executed. > >=20 > > What are these parameters, especially the match_flags? > >=20 > > It would be great if one could help. > > Bye, > > Beffe > >=20 > >=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > > _______________________________________________ > > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > > Linux-hotplug-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > _______________________________________________ > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > Linux-hotplug-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel