Bug 106234

Summary: ZTE modem doesn't recognized when strict filter policy enabled
Product: ModemManager Reporter: Balló György <ballogyor>
Component: pluginsAssignee: ModemManager bug user <modemmanager>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Relevant part of the output of "ModemManager --filter-policy=STRICT --debug"
Relevant part of the output of "ModemManager --filter-policy=DEFAULT --debug"
Device information

Description Balló György 2018-04-25 09:28:32 UTC
Created attachment 139095 [details]
Relevant part of the output of "ModemManager --filter-policy=STRICT --debug"

ModemManaged doesn't recognize my USB modem in strict filter mode.

Hardware:
Bus 002 Device 015: ID 19d2:0117 ZTE WCDMA Technologies MSM

Package version:
modemmanager 1.8rc2
Comment 1 Balló György 2018-04-25 09:30:33 UTC
Created attachment 139096 [details]
Relevant part of the output of "ModemManager --filter-policy=DEFAULT --debug"

The modem is recognized successfully in default filter mode.
Comment 2 Aleksander Morgado 2018-04-26 05:53:30 UTC
Looks like we need to improve our strict filter somehow to catch this one. The current logic doesn't catch it because this device has only 3 TTYs, so just looking at the ports it exposes it could really be some other thing instead of a modem, so the strict filter ignores the device.

Could you get us more info from the device, e.g.:
  $ sudo udevadm info -p /sys/class/tty/ttyUSB0
  $ sudo udevadm info -p /sys/class/tty/ttyUSB1
  $ sudo udevadm info -p /sys/class/tty/ttyUSB2

  $ sudo udevadm info -p /sys/class/tty/ttyUSB0 --attribute-walk
  $ sudo udevadm info -p /sys/class/tty/ttyUSB1 --attribute-walk
  $ sudo udevadm info -p /sys/class/tty/ttyUSB2 --attribute-walk

  $ sudo lsusb -v -d 19d2:0117

This kind of modem is a good example of a modem we expected to lose when using the strict mode.
Comment 3 Balló György 2018-04-26 08:15:35 UTC
Created attachment 139122 [details]
Device information

The attachment contains the output of these commands.
Comment 4 Aleksander Morgado 2018-05-07 19:50:07 UTC
We actually had a bug in the way kernel drivers are matched. It's now fixed in MM git master and will be released with 1.8.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.