You are not logged in.

#1 2014-02-09 23:18:06

Neky
Member
Registered: 2010-05-18
Posts: 38

[SOLVED] udev rule for ZTE MF667 mode switch

Hello,

Some time ago my ZTE MF667 stopped working. After a few tries I found that this command will get it to properly switch to modem mode:

usb_modeswitch -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0031 -m 0x01 -M 55534243123456782000000080000c85010101180101010101000000000000

After that I can connect with NetworkManager KDE applet. I've tried to make an udev rule which will do this for me but with no luck. Here is some more info. Upon insertion, device registers as

lsusb
Bus 004 Device 006: ID 19d2:2000 ZTE WCDMA Technologies MSM 

After executing the manual modeswitch it changes to:

lsusb
Bus 004 Device 006: ID 19d2:0017 ZTE WCDMA Technologies MSM 

I've created the rule at /etc/udev/rules.d/90-zte.conf

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="/usr/bin/usb_modeswitch -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0031 -m 0x01 -M 55534243123456782000000080000c85010101180101010101000000000000"

but my modem won't switch properly. What am I doing wrong here? Thank for any insight.

Last edited by Neky (2014-02-15 10:44:45)

Offline

#2 2014-02-15 10:44:14

Neky
Member
Registered: 2010-05-18
Posts: 38

Re: [SOLVED] udev rule for ZTE MF667 mode switch

VirtualBox package created this mess by introducing an udev rule (or something like that). Solution is fairly simple and the original discussion can be found here:

https://bbs.archlinux.org/viewtopic.php?id=175443

Quick fix is:

sudo mv /lib/udev/rules.d/40-usb_modeswitch.rules /lib/udev/rules.d/61-usb_modeswitch.rules
udevadm control --reload-rules

Thanks to the original poster from that thread!

Last edited by Neky (2014-02-15 10:44:28)

Offline

Board footer

Powered by FluxBB