The attached file is an extract from syslog that includes debug output
from udev when I manually use usb_modeswitch to switch the K3520-Z's
mode, i.e. when I issue the command

usb_modeswitch --default-vendor 0x19d2 --default-product 0x2000
--message-content
"5553424312345678000000000000061e000000000000000000000000000000"
--message-
content2="5553424312345679000000000000061b000000020000000000000000000000"
--message-
content3="55534243123456702000000080000c85010101180101010101000000000000"
--need-response --target-vendor 0x19d2 --target-product 0x0055 -s 20 -D

You will notice that initially there is a lot of activity removing the
storage device that no longer exists.  Then udev starts looking for
rules for the new device.  First it finds a matching entry in
/lib/udev/rules.d/40-usb_modeswitch.rules at line 9. That line is

KERNEL=="ttyUSB*", ATTRS{bNumConfigurations}=="*",
PROGRAM="usb_modeswitch --symlink-name %p %s{idVendor} %s{idProduct}
%E{PRODUCT}", SYMLINK="%c"

Then it finds another matching entry in
/lib/udev/rules.d/40-usb_modeswitch.rules at line 16.  That line is

ATTR{bInterfaceClass}=="ff", ATTR{bInterfaceNumber}=="00",
ATTRS{bNumConfigurations}=="*", RUN+="usb_modeswitch --driver-bind %p
%s{idVendor} %s{idProduct} %E{PRODUCT}"

This is the rule that causes /lib/udev/usb_modeswitch to load the option
driver if it not already loaded and to add the dongle to the devices
managed by the option driver.

All of that activity would have appeared in the syslog extract in my
previous comment if usb_modeswitch had successfully switched the
dongle's mode at udev's instigation.

One other thing that you will find in the attached syslog extract is the
following entry made by usb_modeswitch:

May  9 09:37:07 dell-desktop usb_modeswitch: switching device 19d2:2000
on 007/004

Bear this in mind when reading my next comment in which I shall show the
extract from syslog that includes debug output from udev when the K3770
is connected to the system.

** Attachment added: "syslog extract showing udev debug output after manually 
using usb_modeswitch"
   
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1175093/+attachment/3671279/+files/k3520z-2.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1175093

Title:
  K3520-Z mode not switched automatically

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1175093/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to