Le vendredi, 18 janvier 2013 10.38:11, Stefano Rivera a écrit :
> Hi Didier (2013.01.18_11:01:29_+0200)
>
> > That's very weird as 20120815-2 and 20121109-1 have the exact same
> > configuration file for 12d1:14fe :
> Yeah, I found it fairly confusing too.
Well, just reminded that there is another difference:
-# Special treat for IF 3
-ATTRS{bInterfaceNumber}=="03", ATTRS{bInterfaceClass}=="08",
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", GOTO="modeswitch_rules_begin"
-ATTRS{bInterfaceNumber}=="03", ATTRS{bInterfaceClass}=="08",
ATTRS{idVendor}=="16d8", ATTRS{idProduct}=="6803", GOTO="modeswitch_rules_begin"
-# Most known install partitions are on interface 0, two on 3, one on 9
-ATTRS{bInterfaceNumber}!="0[09]", GOTO="modeswitch_rules_end"
+# Don't continue on "change" event, prevent trigger by changed configuration
+ACTION!="add", GOTO="modeswitch_rules_end"
(…)
# T-Mobile NL (Huawei E352)
-ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14fe", RUN+="usb_modeswitch
'%b/%k'"
+ATTR{idVendor}=="12d1", ATTR{idProduct}=="14fe", RUN+="usb_modeswitch '%b/%k'"
> How do I go about debugging usb_modeswitch_dispatcher?
You can use the usb_modeswitch.tcl file from the usb-modeswitch source, install
a valid tclsh and put it as "usb_modeswitch_dispatcher" in /usr/sbin , then you
can debug its tcl.
An easier first step is enabling EnableLogging in /etc/usb_modeswitch.conf and
send the /var/log/* resulting file to the buglog where Josua will parse it for
you. :-)
Cheers,
OdyX
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]