Eu tive o mesmo problema no Ubuntu 14.04 em um Lenovo Thinkpad W541 com um Sierra Wireless EM7345 4G LTE com firmware: FIH7160_V1.2_WW_01.1415.07
Eu li no registro de alterações do firmware 1.1 do EM7345 que o problema de desconexões aleatórias e falha ao reconectar foi corrigido na versão 1.2. Posso confirmar que o problema ainda persiste na versão 1.2 e que não há atualizações para o Lenovo W541.
A solução é cortar a energia do modem Sierra Wireless EM7345 integrado (que é tecnicamente um dispositivo USB), para forçar uma reinicialização total. Tentei absolutamente todas as reinicializações possíveis até encontrar a possibilidade de cortar completamente a energia de uma porta USB sem desligar o laptop.
Siga esses passos:
1. descubra o caminho do barramento do seu modem Sierra Wireless EM7345 com:
$ lsusb -t
procure por "cdc" na saída, aqui está o meu:
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
|__ Port 5: Dev 2, If 0, Class=Chip/SmartCard, Driver=usbfs, 12M
|__ Port 6: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 7: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 10: Dev 14, If 0, Class=Communications, Driver=cdc_mbim, 480M
|__ Port 10: Dev 14, If 1, Class=CDC Data, Driver=cdc_mbim, 480M
|__ Port 10: Dev 14, If 2, Class=Communications, Driver=cdc_acm, 480M
|__ Port 10: Dev 14, If 3, Class=CDC Data, Driver=cdc_acm, 480M
|__ Port 12: Dev 7, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 12: Dev 7, If 1, Class=Video, Driver=uvcvideo, 480M
aqui você pode ver que no barramento 01 porta 10 existe um dispositivo cdc (o modem Sierra Wireless EM7345), isso significa que seu caminho é: 1-10
2. envie o modem para uma reinicialização suave:
$ sudo modem-cmd /dev/ttyACM0 AT+CFUN=16
não haverá saída se for bem-sucedida. esse comando não se fecha, então CTRL + C o mata
3. desligue a energia do modem (você precisa ser root):
$ echo '1-10' |sudo tee /sys/bus/usb/drivers/usb/unbind
aguarde alguns segundos até o dispositivo ser desligado, quando não houver atividade em / var / log / syslog
4. ligue novamente o modem:
$ echo '1-10' |sudo tee /sys/bus/usb/drivers/usb/bind
Depois disso, demorará 1 a 2 segundos para o modem iniciar, pronto quando não houver atividade no syslog
5. marque Ativar banda larga móvel no ícone da bandeja do NetworkManagers clique com o botão direito do mouse no menu.
6. conecte-se à sua conexão de banda larga móvel escolhida como de costume
Ou use este script:
Eu escrevi um pequeno script bash para fazer tudo isso, que começo com gksudo:
#!/bin/bash
# run this with root!!
# if this doesnt work, check if the bus path is correct with:
# lsusb -t (search for cdc)
modem-cmd /dev/ttyACM0 AT+CFUN=16 &
sleep 1
killall modem-cmd
echo '1-10' |tee /sys/bus/usb/drivers/usb/unbind
sleep 2
echo '1-10' |tee /sys/bus/usb/drivers/usb/bind
Apêndice
aqui está o meu syslog para fins de SEO:
Every time I suspend my laptop or disconnect the Mobile Broadband connection or when the Mobile Broadband connection dies by itself (happens sometimes):
Also, the modem sometimes disconnects on its own:
Nov 6 02:19:44 L4 avahi-daemon[1075]: Interface wwan0.IPv6 no longer relevant for mDNS.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Leaving mDNS multicast group on interface wwan0.IPv6 with address fe80::d8a3:4fff:fec9:d56e.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Interface wwan0.IPv4 no longer relevant for mDNS.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Leaving mDNS multicast group on interface wwan0.IPv4 with address 10.144.34.75.
Nov 6 02:19:44 L4 kernel: [258309.296360] usb 1-10: USB disconnect, device number 13
Nov 6 02:19:44 L4 kernel: [258309.296416] cdc_mbim 1-10:1.0 wwan0: unregister 'cdc_mbim' usb-0000:00:14.0-10, CDC MBIM
Nov 6 02:19:44 L4 NetworkManager[1024]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/net/wwan0, iface: wwan0)
Nov 6 02:19:44 L4 ModemManager[982]: <info> (net/wwan0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
Nov 6 02:19:44 L4 avahi-daemon[1075]: IP_DROP_MEMBERSHIP failed: No such device
Nov 6 02:19:44 L4 avahi-daemon[1075]: Withdrawing address record for fe80::d8a3:4fff:fec9:d56e on wwan0.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Withdrawing address record for 10.144.34.75 on wwan0.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Withdrawing workstation service for wwan0.
Nov 6 02:19:44 L4 ModemManager[982]: [/dev/cdc-wdm0] unexpected port hangup!
Nov 6 02:19:44 L4 ModemManager[982]: <info> (usbmisc/cdc-wdm0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
Nov 6 02:19:44 L4 kernel: [258309.319654] cdc_acm 1-10:1.2: failed to set dtr/rts
Nov 6 02:19:44 L4 ModemManager[982]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): deactivating device (reason 'removed') [36]
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: nm_system_iface_flush_routes: assertion 'iface != NULL' failed
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: nm_system_iface_flush_routes: assertion 'iface != NULL' failed
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> Writing DNS information to /sbin/resolvconf
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): cleaning up...
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): taking down device.
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Nov 6 02:19:44 L4 dbus[956]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (cdc-wdm0) failed to disconnect modem: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.ModemManager1.Modem.Simple' on object at path /org/freedesktop/ModemManager1/Modem/3
Nov 6 02:19:44 L4 dbus[956]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 6 02:19:44 L4 dbus[956]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 6 02:19:45 L4 kernel: [258309.563672] usb 1-10: new high-speed USB device number 14 using xhci_hcd
Nov 6 02:19:45 L4 kernel: [258309.699555] usb 1-10: New USB device found, idVendor=1199, idProduct=a001
Nov 6 02:19:45 L4 kernel: [258309.699558] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 6 02:19:45 L4 kernel: [258309.699559] usb 1-10: Product: Sierra Wireless EM7345 4G LTE
Nov 6 02:19:45 L4 kernel: [258309.699560] usb 1-10: Manufacturer: Sierra Wireless Inc.
Nov 6 02:19:45 L4 kernel: [258309.699561] usb 1-10: SerialNumber: 013937005331614
Nov 6 02:19:45 L4 kernel: [258309.720394] cdc_mbim 1-10:1.0: setting rx_max = 16384
Nov 6 02:19:45 L4 kernel: [258309.720903] cdc_mbim 1-10:1.0: cdc-wdm0: USB WDM device
Nov 6 02:19:45 L4 kernel: [258309.721035] cdc_mbim 1-10:1.0 wwan0: register 'cdc_mbim' at usb-0000:00:14.0-10, CDC MBIM, da:a3:4f:c9:d5:6e
Nov 6 02:19:45 L4 kernel: [258309.721963] cdc_acm 1-10:1.2: ttyACM0: USB ACM device
Nov 6 02:19:45 L4 mtp-probe: checking bus 1, device 14: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10"
Nov 6 02:19:45 L4 mtp-probe: bus: 1, device: 14 was not an MTP device
Nov 6 02:19:45 L4 NetworkManager[1024]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/net/wwan0, iface: wwan0)
Nov 6 02:19:45 L4 NetworkManager[1024]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/net/wwan0, iface: wwan0): no ifupdown configuration found.
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #5 wwan0, fe80::d8a3:4fff:fec9:d56e#123, interface stats: received=0, sent=0, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #3 wwan0, 10.144.34.75#123, interface stats: received=144, sent=144, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: 91.189.94.4 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 212.7.1.132 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 193.40.0.5 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 5.101.116.20 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 46.22.223.220 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: peers refreshed
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:48 L4 ModemManager[982]: <info> Creating modem with plugin 'Generic' and '3' ports
Nov 6 02:19:48 L4 ModemManager[982]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10' successfully created
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:49 L4 ModemManager[982]: <info> Modem: state changed (unknown -> disabled)
Nov 6 02:19:49 L4 NetworkManager[1024]: <warn> (cdc-wdm0): failed to look up interface index
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> WWAN now disabled by management service
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): new Broadband device (driver: 'cdc_mbim, cdc_acm' ifindex: 0)
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/6
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): deactivating device (reason 'managed') [2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> NetworkManager state is now DISCONNECTED
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #5 wwan0, fe80::d8a3:4fff:fec9:d56e#123, interface stats: received=0, sent=0, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #3 wwan0, 10.144.34.75#123, interface stats: received=144, sent=144, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: 91.189.94.4 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 212.7.1.132 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 193.40.0.5 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 5.101.116.20 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 46.22.223.220 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: peers refreshed
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:48 L4 ModemManager[982]: <info> Creating modem with plugin 'Generic' and '3' ports
Nov 6 02:19:48 L4 ModemManager[982]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10' successfully created
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:49 L4 ModemManager[982]: <info> Modem: state changed (unknown -> disabled)
Nov 6 02:19:49 L4 NetworkManager[1024]: <warn> (cdc-wdm0): failed to look up interface index
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> WWAN now disabled by management service
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): new Broadband device (driver: 'cdc_mbim, cdc_acm' ifindex: 0)
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/6
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): deactivating device (reason 'managed') [2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> NetworkManager state is now DISCONNECTED
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
after that I can no longer reconnect:
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) starting connection 'EE Elisa Any'
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) Stage 1 of 5 (Device Prepare) scheduled...
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) Stage 1 of 5 (Device Prepare) started...
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) Stage 1 of 5 (Device Prepare) complete.
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect started...
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (4/8): Wait to get fully enabled
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (5/8): Register
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (6/8): Bearer
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (7/8): Connect
Aug 26 16:45:03 L4 ModemManager[923]: <info> Modem /org/freedesktop/ModemManager1/Modem/12: state changed (registered -> connecting)
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1) modem state changed, 'registered' --> 'connecting' (reason: user-requested)
Aug 26 16:45:03 L4 ModemManager[923]: <info> Modem /org/freedesktop/ModemManager1/Modem/12: state changed (connecting -> registered)
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1) modem state changed, 'connecting' --> 'registered' (reason: user-requested)
Aug 26 16:45:03 L4 NetworkManager[965]: <warn> (cdc-wdm1) failed to connect modem: Failure
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): device state change: prepare -> failed (reason 'unknown') [40 120 1]
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Marking connection 'EE Elisa Any' invalid.
Aug 26 16:45:03 L4 NetworkManager[965]: <warn> Activation (cdc-wdm1) failed for connection 'EE Elisa Any'
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): deactivating device (reason 'none') [0]