我遇到了一些调制解调器邮件列表的这个主题中讨论的一个奇怪问题https://lists.freedesktop.org/archives/modemmanager-devel/2017-February/003804.html。
基本上,当我在日志中启动系统时,我会收到消息,提示调制解调器无法激活,因为“未插入 SIM 卡”。此外,当我执行 mmcli -LI get
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/0 [Sierra] MBIM [1199:9079]
当我执行 mmcli -m 0 时,我得到了
-------------------------
Hardware | manufacturer: 'Sierra'
| model: 'MBIM [1199:9079]'
| revision: 'SWI9X30C_02.30.03.00'
| supported: 'gsm-umts, lte'
| current: 'gsm-umts, lte'
| equipment id: '014582005392668'
-------------------------
Status | lock: 'unknown'
| unlock retries: 'unknown'
| state: 'failed'
| failed reason: 'sim-missing'
| power state: 'low'
| access tech: 'unknown'
| signal quality: '0' (cached)
我的调制解调器管理器一切正常,并且可以与 MBIM 配合使用。
borowis@NoName:~$ dpkg -l modemmanager
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==========================-==================-==================-==========================================================
ii modemmanager 1.6.8-2ubuntu1 amd64 D-Bus service for managing modems
但如果我合上盖子,我的笔记本电脑进入挂起模式,然后我再次打开盖子,一切都会按预期工作。我的调制解调器现在是:mmcli -L
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/1 [Sierra] MBIM [1199:9079]
Sim 卡已准备就绪 mmcli -m 1
-------------------------
3GPP | imei: '014582005392668'
| enabled locks: 'fixed-dialing'
| operator id: '25501'
| operator name: 'Vodafone UA'
| subscription: 'unknown'
| registration: 'home'
我可以连接到互联网,发出 AT 命令等。另一件有趣的事情是,我必须关闭并打开盖子,执行# systemctl restart ModemManager 并不能解决问题。
好像我遇到了 modemmanager/libqmi/whatever 的错误?您知道在这种情况下可以/应该做什么吗?
答案1
我遇到了非常类似的问题(sierra 调制解调器、Thinkpad X240、Ubuntu 18.04),但就我而言,情况恰恰相反——ModemManager 在连续三次挂起(关闭盖子)后停止工作。之后我无法再挂起。当这种情况发生时,mmcli -L 给出:
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/9 [Sierra] MBIM [1199:A001]
和 mmcli -m 9:
Status | lock: 'none'
| unlock retries: 'sim-pin (3)'
| state: 'registered'
| power state: 'on'
| access tech: 'gprs, lte'
| signal quality: '0' (cached)
乍一看,重新启动 ModemManager(sudo service ModemManager restart 或 systemcl)无法解决问题。重新启动 ModemManager 后,mmcli -L:
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/0 [Sierra] MBIM [1199:A001]
mmcli-m 0:
Status | lock: 'none'
| unlock retries: 'sim-pin (3)'
| state: 'registered'
| power state: 'on'
| access tech: 'lte'
| signal quality: '0' (cached)
但是,如果我等待几秒钟直到 ModemManager 指示器出现,然后单击连接,指示器会消失一会儿,然后再次开始加载和连接,这一次它开始正常工作。
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/1 [Sierra] MBIM [1199:A001]
mmcli -m 1:
Status | lock: 'none'
| unlock retries: 'sim-pin (3)'
| state: 'connected'
| power state: 'on'
| access tech: 'lte'
| signal quality: '0' (cached)
在 Ubuntu 16.04 上,ModemManager 运行完美。