LINUX.ORG.RU
решено ФорумAdmin

Перестали «видится» юсб-модемы

 ,


0

2

Два хуавея от опсоса до вчерашнего обновления прекрасно работали. На ночь выключился, сегодня с утра модемы как модемы не работают. Вот что обновилось:

[2015-06-23 07:34] [PACMAN] Running 'pacman -Syu'
[2015-06-23 07:34] [PACMAN] synchronizing package lists
[2015-06-23 07:35] [PACMAN] starting full system upgrade
[2015-06-23 08:23] [ALPM] transaction started
[2015-06-23 08:23] [ALPM] removed dnsutils (9.9.2.P2-2)
[2015-06-23 08:23] [ALPM] upgraded tzdata (2015d-1 -> 2015e-1)
[2015-06-23 08:23] [ALPM] upgraded ca-certificates-mozilla (3.19.1-1 -> 3.19.1-2)
[2015-06-23 08:23] [ALPM] upgraded libsystemd (219-6 -> 221-1)
[2015-06-23 08:23] [ALPM] warning: /etc/systemd/journald.conf installed as /etc/systemd/journald.conf.pacnew
[2015-06-23 08:23] [ALPM] upgraded systemd (219-6 -> 221-1)
[2015-06-23 08:23] [ALPM] installed libgudev (230-1)
[2015-06-23 08:23] [ALPM] upgraded colord (1.2.9-2 -> 1.2.9-3)
[2015-06-23 08:23] [ALPM] upgraded curl (7.42.1-1 -> 7.43.0-1)
[2015-06-23 08:23] [ALPM] installed geoip-database (20150602-1)
[2015-06-23 08:23] [ALPM] installed geoip (1.6.2-1)
[2015-06-23 08:23] [ALPM] installed bind-tools (9.10.2.P1-1)
[2015-06-23 08:23] [ALPM] upgraded file (5.22-1 -> 5.23-2)
[2015-06-23 08:23] [ALPM] upgraded gnutls (3.4.1-1 -> 3.4.2-1)
[2015-06-23 08:23] [ALPM] upgraded gstreamer0.10-good (0.10.31-6 -> 0.10.31-8)
[2015-06-23 08:23] [ALPM] upgraded libmbim (1.12.2-1 -> 1.12.2-2)
[2015-06-23 08:23] [ALPM] upgraded libmm-glib (1.4.8-1 -> 1.4.8-2)
[2015-06-23 08:23] [ALPM] upgraded nss (3.19.1-1 -> 3.19.1-2)
[2015-06-23 08:23] [ALPM] upgraded libnm-glib (1.0.2-3 -> 1.0.2-4)
[2015-06-23 08:23] [ALPM] upgraded mesa (10.5.7-1 -> 10.6.0-1)
[2015-06-23 08:23] [ALPM] upgraded mesa-libgl (10.5.7-1 -> 10.6.0-1)
[2015-06-23 08:23] [ALPM] upgraded modemmanager (1.4.8-1 -> 1.4.8-2)
[2015-06-23 08:23] [ALPM] upgraded mpfr (3.1.2.p11-1 -> 3.1.3-1)
[2015-06-23 08:23] [ALPM] upgraded nm-connection-editor (1.0.2-1 -> 1.0.2-3)
[2015-06-23 08:23] [ALPM] upgraded network-manager-applet (1.0.2-1 -> 1.0.2-3)
[2015-06-23 08:23] [ALPM] upgraded networkmanager (1.0.2-3 -> 1.0.2-4)
[2015-06-23 08:23] [ALPM] upgraded systemd-sysvcompat (219-6 -> 221-1)
[2015-06-23 08:23] [ALPM] upgraded upower (0.99.2-2 -> 0.99.3-1)
[2015-06-23 08:23] [ALPM] upgraded xf86-video-intel (2.99.917-5 -> 1:2.99.917+364+gb24e758-1)
[2015-06-23 08:23] [ALPM] transaction completed

Собственно, в какую сторону копать?

★★★★★

Последнее исправление: mandala (всего исправлений: 1)

Ответ на: комментарий от crutch_master

Лицемер.

Я и не говорил, что ни чего не делал.

Короче, по какому-то приколу usb_modeswitch перестала переключать свисток в режим модема. Я добавил в файл leafpad /etc/usb_modeswitch.conf следующие:

# Huawei E150
# Use device /dev/ttyUSB0 for connecting 
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
MessageContent="55534243000000000000000000000011060000000000000000000000000000"
MessageEndpoint=0x01
CheckSuccess=5

Потом перечитал конфиг:

# usb_modeswitch -c /etc/usb_modeswitch.conf
Note: No target parameter given; success check limited
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 007 on bus 004
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
 Could not reset endpoint (probably harmless): -99
Reset message endpoint 0x01
 Could not reset endpoint (probably harmless): -99
 Device is gone, skip any further commands

Check for mode switch (max. 5 times, once per second) ...
 (For a better success check provide target IDs or class)
 Original device vanished after switching

Mode switch most likely succeeded. Bye!

Поймал в dmesg следующие сообщения:

[17279.164963] usb 4-2: new full-speed USB device number 8 using uhci_hcd
[17279.336052] option 4-2:1.0: GSM modem (1-port) converter detected
[17279.336218] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
[17279.339214] qmi_wwan 4-2:1.1: cdc-wdm0: USB WDM device
[17279.339948] qmi_wwan 4-2:1.1 wwan0: register 'qmi_wwan' at usb-0000:00:1d.2-2, WWAN/QMI device, ea:8f:e1:d1:7b:31
[17279.340105] option 4-2:1.2: GSM modem (1-port) converter detected
[17279.340262] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB1
[17279.340391] option 4-2:1.3: GSM modem (1-port) converter detected
[17279.340501] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB2
[17279.340627] usb-storage 4-2:1.4: USB Mass Storage device detected
[17279.343774] scsi host8: usb-storage 4-2:1.4
[17279.403621] qmi_wwan 4-2:1.1 wwp0s29f2u2i1: renamed from wwan0
[17280.350788] scsi 8:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[17280.365786] sr 8:0:0:0: [sr1] scsi-1 drive
[17280.366088] sr 8:0:0:0: Attached scsi CD-ROM sr1

Рестартовал ModemManager и подключился к сети:

[root@localhost tux]# systemctl restart ModemManager
[root@localhost tux]# nmcli c up Megafon
Соединение успешно активировано (адрес действующего D-Bus: /org/freedesktop/NetworkManager/ActiveConnection/16)

Посмотрим что будет дальше.

mandala ★★★★★
() автор топика
Ответ на: комментарий от mandala

Я и не говорил, что ни чего не делал.

Я только обновил арчик! :)

mandala ★★★★★
() автор топика
Ответ на: комментарий от ABW

по какому-то приколу usb_modeswitch перестала переключать свисток в режим модема

Уже разобрался.

mandala ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.