dimanche 28 décembre 2014

Modem is stopped from being detected


I am using Trisquel 7.0 LTS and mobile broadband (Net-Setter) to establish connection.


All is working fine. My modem detects as follows (lsusb output):



$ lsusb
Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


And It is also detected at nm-applet or say by using nmcli as follows:



$ nmcli dev list
GENERAL.DEVICE: ttyUSB2
GENERAL.TYPE: gsm
GENERAL.VENDOR: HUAWEI Technology
GENERAL.PRODUCT: HUAWEI Mobile


But I recently Run a installation script from Mobile Parter which not properly installed and hence I also run Un-installation script (Both Script are attached below) And Unfortunately in spite of uninstallation, Now modem doesn't detect.


There is change in detection and new (current) output by lsusb is:



$ lsusb
Bus 001 Device 003: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Here you can visualize difference that is-

Ealier:



Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)



And Now:



Bus 001 Device 003: ID 12d1:1446 Huawei Technologies Co., Ltd. 1552/E1800/E173 (HSPA modem)



And now modem doesn't detect in nm-applet (nor listed by nmcli).


So, How can I reset settings to default because default Trisquel has no problem with my device. In other words which files are affected for this behaviour and How do I revert to Earlier condition ? (Otherwise I've to re-install whole OS!)




EDIT:-


I've written a file named 12d1:1446 under /etc/usb_modeswitch.d/ which is:



DefaultVendor= 0x12d1
DefaultProduct=0x1446

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

And I run this by command:



sudo chmod +x /usr/sbin/usb_modeswitch
sudo usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:1446


Which works fine and cause lsusb changed


From:



Bus 001 Device 003: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)



Back To:



Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)



And hence it will be detected by network-manager ; I will be able to connect.




But I have to use above command & script every time when I plugged in. So, I am looking for permanent solution to earlier condition as mentioned in first post (Earlier/Default Without any extra effort and without changing anything, modem detects properly)


In other words, I want to reset so-that modem detect directly as:



Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)





Attachment:




Aucun commentaire:

Enregistrer un commentaire