一周前,我从运行 Ubuntu 11.04 的旧电脑迁移到运行 Kubuntu 16.04 的笔记本电脑。
我在新设置中使用 USB 调制解调器时遇到问题。
第一个调制解调器是中兴通讯。该调制解调器间歇性加载。当我检查$ lsusb
那里作为中兴通讯的条目但当我$ ls /dev/ | grep USB
什么也没检查时。
我必须不断地移除和插入调制解调器几次,直到在 下出现一个条目$ ls /dev/ | grep USB
。这是我可以连接的时间。
连接后,如果幸运的话,连接将持续存在。否则一段时间后就会下降。
如果我很幸运并且连接正常,它仍然比我在旧电脑上使用相同的调制解调器慢得多。
第二个调制解调器是华为 USB 调制解调器。它既不作为闪存盘加载,也不作为调制解调器加载。我联系了电话公司,他们说驱动程序和安装说明都在闪存盘上。但由于我无法访问闪存盘,我陷入了如何让第二个调制解调器工作的困境。
我不确定这是硬件问题还是操作系统问题。该笔记本电脑是HP pavilion,配备Intel Core i7处理器。
任何想法?
谢谢。
编辑 1:其他详细信息
$ uname -a
Linux hppavilion 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
当第一个调制解调器加载节目时dmesg
:
[ 3473.319817] usb 2-6: new high-speed USB device number 8 using xhci_hcd
[ 3473.450070] usb 2-6: New USB device found, idVendor=19d2, idProduct=0031
[ 3473.450079] usb 2-6: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 3473.450085] usb 2-6: Product: ZTE WCDMA Technologies MSM
[ 3473.450088] usb 2-6: Manufacturer: ZTE,Incorporated
[ 3473.450091] usb 2-6: SerialNumber: P673A3ZTED010000
[ 3473.453414] option 2-6:1.0: GSM modem (1-port) converter detected
[ 3473.453629] usb 2-6: GSM modem (1-port) converter now attached to ttyUSB0
[ 3473.453831] option 2-6:1.1: GSM modem (1-port) converter detected
[ 3473.454009] usb 2-6: GSM modem (1-port) converter now attached to ttyUSB1
[ 3473.454161] usb-storage 2-6:1.2: USB Mass Storage device detected
[ 3473.454320] scsi host11: usb-storage 2-6:1.2
[ 3473.454580] option 2-6:1.3: GSM modem (1-port) converter detected
[ 3473.454710] usb 2-6: GSM modem (1-port) converter now attached to ttyUSB2
[ 3474.453577] scsi 11:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
[ 3474.455098] sd 11:0:0:0: Attached scsi generic sg2 type 0
[ 3474.457835] sd 11:0:0:0: [sdb] Attached SCSI removable disk
当插入第二个调制解调器时,dmesg
显示:
[ 543.661273] usb 1-1.2: new high-speed USB device number 6 using ehci-pci
[ 543.755384] usb 1-1.2: New USB device found, idVendor=1bbb, idProduct=022c
[ 543.755388] usb 1-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 543.755390] usb 1-1.2: Product: HSPA+ USB Modem
[ 543.755392] usb 1-1.2: Manufacturer: Spreadtrum
[ 543.755870] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 543.756777] scsi host6: usb-storage 1-1.2:1.0
[ 544.755426] scsi 6:0:0:0: CD-ROM USBModem Mass Storage 2.31 PQ: 0 ANSI: 2
[ 544.764335] sr 6:0:0:0: [sr1] scsi-1 drive
[ 544.764549] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 544.764650] sr 6:0:0:0: Attached scsi generic sg3 type 5
[ 544.792148] usb 1-1.2: usbfs: interface 0 claimed by usb-storage while 'usb_modeswitch' sets config #2
[ 544.810994] usb_modeswitch_[2182]: segfault at 0 ip 00007f18cc79a9f5 sp 00007ffc85117b48 error 4 in libc-2.23.so[7f18cc70e000+1c0000]
每当第一个调制解调器无法加载时,就会出现以下内容dmesg
:
[ 3057.029719] usb 2-6: new high-speed USB device number 5 using xhci_hcd
[ 3057.159683] usb 2-6: New USB device found, idVendor=19d2, idProduct=2000
[ 3057.159688] usb 2-6: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 3057.159690] usb 2-6: Product: ZTE WCDMA Technologies MSM
[ 3057.159692] usb 2-6: Manufacturer: ZTE,Incorporated
[ 3057.159693] usb 2-6: SerialNumber: P673A3ZTED010000
[ 3057.162269] usb-storage 2-6:1.0: USB Mass Storage device detected
[ 3057.162390] scsi host8: usb-storage 2-6:1.0
[ 3058.163841] scsi 8:0:0:0: CD-ROM ZTE USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 2
[ 3058.164981] scsi 8:0:0:1: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
[ 3058.168188] sr 8:0:0:0: [sr1] scsi-1 drive
[ 3058.168550] sr 8:0:0:0: Attached scsi CD-ROM sr1
[ 3058.168702] sr 8:0:0:0: Attached scsi generic sg2 type 5
[ 3058.169096] sd 8:0:0:1: Attached scsi generic sg3 type 0
[ 3058.183288] sd 8:0:0:1: [sdb] Attached SCSI removable disk
尝试了以下说明这里但并不幸运。
答案1
我使用以下步骤激活了第二个调制解调器https://askubuntu.com/questions/512092/how-to-set-modem-on-huawei-mobile-broadband:
创造
/etc/usb_modeswitch.d/19d2:2000
sudo touch /etc/usb_modeswitch.d/19d2:2000
sudo nano /etc/usb_modeswitch.d/19d2:2000
放:
######################################################## # ZTE WCDMA Technologies MSM MF627/MF628/MF628+/MF636+ HSDPA/HSUPA DefaultVendor= 0x19d2 DefaultProduct= 0x2000 TargetVendor= 0x19d2 TargetProduct= 0x2000 CheckSuccess=20 MessageEndpoint= 0x0f MessageContent= "55534243123456780000000000000011062000000100000000000000000000"
sudo nano /lib/udev/rules.d/40-usb_modeswitch.rules
添加:
# 2016/05/15: ZTE WCDMA Technologies MSM MF627/MF628/MF628+/MF636+ HSDPA/HSUPA ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/19d2:2000"
拔出并插入 USB 调制解调器
注释/问题:
a) 最后一步https://askubuntu.com/questions/512092/how-to-set-modem-on-huawei-mobile-broadband似乎没有必要。调制解调器仍然可以工作,没有改变/etc/modules
。但是,它对于较旧的内核可能有用
b) 通过添加第一个调制解调器 (ZTE) 的条目,我使第二个调制解调器正常工作。因此,我不需要添加另一个调制解调器配置。
c) 如果为第二个调制解调器添加了 usb_modeswitch 配置,它将作为闪存盘加载,而不是作为调制解调器加载