UM-175 not being switched.

Bug #626568 reported by Noel J. Bergman
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usb-modeswitch (Ubuntu)
Confirmed
High
Didier Raboud

Bug Description

Binary package hint: usb-modeswitch-data

Ubuntu uses usb-modeswitch[-data] by default now. The default configuration does not enable the UM-175, and probably does not enable other modems.

The default rule:

    # UTStarcom UM175 (distributor "Alltel")
    ATTRS{idVendor}=="106c", ATTRS{idProduct}=="3b03", RUN+="usb_modeswitch '%b/%k'"

does not perform the switch. But this rule:

    SUBSYSTEM=="usb", ATTR{idProduct}="3b03", ATTR{idVendor}=="106c", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/106c:3b03"

works with both Lucid and Maverick.

I suspect that the salient difference in the parameter being passed, but haven't had time to dig into the details.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: usb-modeswitch-data 20100817-1~exp0
ProcVersionSignature: Ubuntu 2.6.35-19.28-generic 2.6.35.3
Uname: Linux 2.6.35-19-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Aug 29 22:15:22 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100601)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: usb-modeswitch-data

Revision history for this message
Noel J. Bergman (noeljb) wrote :
Revision history for this message
Noel J. Bergman (noeljb) wrote :

This may also be the cause of Bug 625110 and similar bugs.

Revision history for this message
Martin Pitt (pitti) wrote :

Didier, should the rules perhaps use

  SUBSYSTEM=="usb", ATTR{idProduct}="3b03", ATTR{idVendor}=="106c", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/$attr{idVendor}:$attr{idProduct}"

then? Is that the correct calling for usb_modeswitch?

Revision history for this message
Martin Pitt (pitti) wrote :

Indeed there's a /lib/udev/usb_modeswitch as well, but it just seems to be a shell wrapper around /usr/sbin/usb_modeswitch_dispatcher. But since it is set -e, and /lib/udev/hotplug.functions does not exist, this script is broken and won't do anything.

Changed in usb-modeswitch-data (Ubuntu):
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote :

Marking as high, since this will likely affect a lot of of modems, if not all of them.

Revision history for this message
Didier Raboud (odyx) wrote :

Oh. Ah. Uh. :-/ I patched usb-modeswitch to use the Debian-specific functions, which are not in Ubuntu's udev. (aka http://patch-tracker.debian.org/patch/misc/view/udev/161-1/extra/hotplug.functions ). Having that patch in udev could be cool indeed.

Anyway, I'm preparing a fixed version right now. Martin: is it possible to get a PPA-style package accepted into Ubuntu or should I first get it in Debian ?

affects: usb-modeswitch-data (Ubuntu) → usb-modeswitch (Ubuntu)
Changed in usb-modeswitch (Ubuntu):
assignee: nobody → Didier Raboud (odyx)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.