Banda larga móvel não funciona com o Thinkpad T440p no Ubuntu 13.10

1

Eu tenho um novo Lenovo T440p com built-in Mobile Broadband um Lenovo N5321gw (eu estou supondo que é um novo Ericsson H5321gw).

O Ubuntu detecta tudo bem e eu posso configurá-lo e fornecer o código pin. Mas assim que pressiono conecto tento conectar e depois falha com isso no log:

Jan 21 19:13:36 maximus kernel: [   54.432298] usb 3-10: new high-speed USB device number 8 using xhci_hcd
Jan 21 19:13:36 maximus kernel: [   54.449019] usb 3-10: New USB device found, idVendor=0bdb, idProduct=193f
Jan 21 19:13:36 maximus kernel: [   54.449022] usb 3-10: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Jan 21 19:13:36 maximus kernel: [   54.449024] usb 3-10: Product: N5321 gw
Jan 21 19:13:36 maximus kernel: [   54.449025] usb 3-10: Manufacturer: Lenovo
Jan 21 19:13:36 maximus kernel: [   54.449027] usb 3-10: SerialNumber: 44********
Jan 21 19:13:36 maximus pppd[2782]: Exit.

--- Pressing connect here ---

Jan 21 19:14:26 maximus kernel: [  104.463741] usbhid 3-10:1.0: can't add hid device: -110
Jan 21 19:14:26 maximus kernel: [  104.463772] usbhid: probe of 3-10:1.0 failed with error -110
Jan 21 19:14:26 maximus kernel: [  104.463895] usb 3-10: USB disconnect, device number 8
Jan 21 19:14:26 maximus kernel: [  104.703794] usb 3-10: new high-speed USB device number 9 using xhci_hcd
Jan 21 19:14:26 maximus kernel: [  104.722786] usb 3-10: New USB device found, idVendor=0bdb, idProduct=193e
Jan 21 19:14:26 maximus kernel: [  104.722800] usb 3-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 21 19:14:26 maximus kernel: [  104.722808] usb 3-10: Product: N5321 gw
Jan 21 19:14:26 maximus kernel: [  104.722815] usb 3-10: Manufacturer: Lenovo
Jan 21 19:14:26 maximus kernel: [  104.722821] usb 3-10: SerialNumber: 44************
Jan 21 19:14:26 maximus kernel: [  104.756813] cdc_acm 3-10:1.1: ttyACM0: USB ACM device
Jan 21 19:14:26 maximus kernel: [  104.760797] cdc_acm 3-10:1.3: ttyACM1: USB ACM device
Jan 21 19:14:26 maximus kernel: [  104.768804] cdc_wdm 3-10:1.5: cdc-wdm1: USB WDM device
Jan 21 19:14:26 maximus kernel: [  104.796140] cdc_mbim 3-10:1.6: cdc-wdm2: USB WDM device
Jan 21 19:14:26 maximus kernel: [  104.796491] cdc_mbim 3-10:1.6 wwan0: register 'cdc_mbim' at usb-0000:00:14.0-10, CDC MBIM, ce:bc:1e:4a:d7:9f
Jan 21 19:14:26 maximus kernel: [  104.797298] cdc_wdm 3-10:1.8: cdc-wdm3: USB WDM device
Jan 21 19:14:26 maximus kernel: [  104.797767] cdc_acm 3-10:1.9: ttyACM2: USB ACM device
Jan 21 19:14:26 maximus mtp-probe: checking bus 3, device 9: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10"
Jan 21 19:14:26 maximus mtp-probe: bus: 3, device: 9 was not an MTP device
Jan 21 19:14:26 maximus NetworkManager[902]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.6/net/wwan0, iface: wwan0)
Jan 21 19:14:26 maximus NetworkManager[902]:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.6/net/wwan0, iface: wwan0): no ifupdown configuration found.
Jan 21 19:14:26 maximus modem-manager[846]: <info>  (ttyACM1) opening serial port...
Jan 21 19:14:26 maximus modem-manager[846]: <info>  (ttyACM0) opening serial port...
Jan 21 19:14:26 maximus modem-manager[846]: <info>  (ttyACM2) opening serial port...
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM1) closing serial port...
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM1) serial port closed
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (Generic): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10 claimed port ttyACM1
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM0) closing serial port...
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM0) serial port closed
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (Generic): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10 claimed port ttyACM0
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM2) closing serial port...
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM2) serial port closed
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (Generic): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10 claimed port ttyACM2
Jan 21 19:14:30 maximus modem-manager[846]: <info>  (ttyACM0) opening serial port...
Jan 21 19:14:30 maximus NetworkManager[902]: <warn> (ttyACM0): failed to look up interface index
Jan 21 19:14:30 maximus NetworkManager[902]: <info> WWAN now disabled by management service
Jan 21 19:14:30 maximus NetworkManager[902]: <info> (ttyACM0): new GSM/UMTS device (driver: 'cdc_acm' ifindex: 0)
Jan 21 19:14:30 maximus NetworkManager[902]: <info> (ttyACM0): exported as /org/freedesktop/NetworkManager/Devices/3
Jan 21 19:14:30 maximus NetworkManager[902]: <info> (ttyACM0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jan 21 19:14:30 maximus NetworkManager[902]: <info> (ttyACM0): deactivating device (reason 'managed') [2]
Jan 21 19:14:30 maximus NetworkManager[902]: <info> (ttyACM0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Jan 21 19:14:33 maximus modem-manager[846]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: unlock no longer required
Jan 21 19:14:33 maximus modem-manager[846]: <info>  (ttyACM0) closing serial port...
Jan 21 19:14:33 maximus modem-manager[846]: <info>  (ttyACM0) serial port closed
Jan 21 19:14:56 maximus NetworkManager[902]: <info> Activation (ttyACM0) starting connection 'Telia Telia 3G 1'
Jan 21 19:14:56 maximus NetworkManager[902]: <info> (ttyACM0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jan 21 19:14:56 maximus NetworkManager[902]: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 21 19:14:56 maximus NetworkManager[902]: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started...
Jan 21 19:14:56 maximus NetworkManager[902]: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete.
Jan 21 19:14:56 maximus modem-manager[846]: <info>  (ttyACM0) opening serial port...
Jan 21 19:14:56 maximus whoopsie[1132]: offline
Jan 21 19:14:56 maximus modem-manager[846]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (disabled -> enabling)
Jan 21 19:14:56 maximus modem-manager[846]: <info>  (ttyACM1) opening serial port...
Jan 21 19:14:56 maximus modem-manager[846]: <info>  (ttyACM0): using PDU mode for SMS
Jan 21 19:14:56 maximus modem-manager[846]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (enabling -> enabled)
Jan 21 19:14:56 maximus NetworkManager[902]: <info> WWAN now enabled by management service
Jan 21 19:14:56 maximus modem-manager[846]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (enabled -> registered)
Jan 21 19:14:57 maximus modem-manager[846]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (registered -> connecting)
Jan 21 19:14:58 maximus modem-manager[846]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (connecting -> connected)
Jan 21 19:14:58 maximus NetworkManager[902]: <info> Activation (ttyACM0) Stage 2 of 5 (Device Configure) scheduled...
Jan 21 19:14:58 maximus NetworkManager[902]: <info> Activation (ttyACM0) Stage 2 of 5 (Device Configure) starting...
Jan 21 19:14:58 maximus NetworkManager[902]: <info> (ttyACM0): device state change: prepare -> config (reason 'none') [40 50 0]
Jan 21 19:14:58 maximus NetworkManager[902]: <info> Activation (ttyACM0) Stage 2 of 5 (Device Configure) successful.

Depois disso, preciso reiniciar o computador para ativá-lo novamente.

Então baixei o modem-manager-gui e olhei ao redor. Ele também detecta o boradband móvel, eu também posso ativá-lo e procurar redes funciona bem. Ele detecta o provedor certo. Eu também posso enviar SMS e recebê-los. O cartão SIM foi utilizado com sucesso em outro computador antes.

$> for n in 'ls /sys/class/*/*{ACM,wdm}*/device/interface';do echo $(echo $n|awk -F '/' '{print }') : $(cat $n);done
ttyACM0 : N5321 gw Mobile Broadband Modem
ttyACM1 : N5321 gw Mobile Broadband Data Modem
ttyACM2 : N5321 gw Mobile Broadband GPS Port
cdc-wdm1 : N5321 gw Mobile Broadband Device Management
cdc-wdm2 : N5321 gw Mobile Broadband USIM Port
cdc-wdm3 : Ericsson N5321 gw

Alguém sabe o que está errado?

/ BR Erik

    
por user2645085 21.01.2014 / 21:02

1 resposta

3

Esses módulos implementam os protocolos NCM e MBIM em uma única função, o que significa que o kernel precisa fazer uma escolha em nome do usuário porque a escolha é feita ao selecionar o driver apropriado. Isso é lamentável porque o kernel não tem conhecimento sobre o suporte ao aplicativo userspace nem sobre as preferências do usuário. O problema no seu caso é que o MBIM foi selecionado pelo kernel, mas ainda não é suportado pela versão do ModemManager que você tem.

A solução a longo prazo seria um ModemManager mais recente com suporte MBIM adequado. Mas até que isso esteja disponível no Ubuntu, você pode dizer ao kernel para fazer uma escolha diferente. A preferência padrão pode ser temporariamente substituída, fazendo

 echo N >/sys/module/cdc_ncm/parameters/prefer_mbim

ou mais permanentemente alterado, criando, e. um arquivo /etc/modprobe.d/ncm.conf com uma linha como esta:

 options cdc_ncm prefer_mbim=N

Note que esta nova preferência só terá efeito na próxima sonda de driver, então você terá que "desconectar" e reconectar o modem para torná-lo efetivo. E como o seu modem é embutido, isso provavelmente significa usar o rfkill. Ou apenas crie o arquivo e descarregue / recarregue os drivers. Ou reinicie se achar mais fácil. Esteja ciente de que a solução temporária dada acima só funcionará com o método baseado em rfkill.

O acima só deve ser considerado uma solução temporária. Existem boas razões pelas quais você gostaria de usar o MBIM para dispositivos de banda larga móvel no futuro, assim que o suporte do ModemManager estiver em vigor. O gerenciamento de interface do NCM é baseado em alguns comandos AT específicos do fornecedor. O MBIM fornece um protocolo de gerenciamento de modem 3G / LTE padronizado e muito mais completo.

    
por Bjørn Mork 11.02.2014 / 13:12