Ubuntu 22.04 升级后,LTE 调制解调器 EM7455 停止工作

Ubuntu 22.04 升级后,LTE 调制解调器 EM7455 停止工作

可能与更新至 Ubuntu 22.04 后 Modem-manager-gui 崩溃但在这种情况下我没使用modem-manager-guibut mmcli

现在,经过某次升级(大概 15 天前)后,调制解调器根本没有启动。

调制解调器被识别为:

mmcli -L
    /org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless, Incorporated] Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A

SIM 卡已激活并有余额。甚至无法启动 USSD 命令。

当使用旧 ISO(Lubuntu 21.10)时,它运行完美。

答案1

在最新版本的 ModemManager 中,自动 FCC 解锁已被禁用。您可以在此处看到:https://modemmanager.org/docs/modemmanager/fcc-unlock/ 要再次使用调制解调器,您必须 FCC 解锁调制解调器。

对于联想推出的 EM7455:

sudo ln -sft /etc/ModemManager/fcc-unlock.d /usr/share/ModemManager/fcc-unlock.available.d/1199:9079

答案2

libqmi-utils按照建议安装即可解决https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/1968581/comments/4

不在链接中,但我也重新启动了ModemManager服务。

现在只是modem-manager-gui一个被破坏的输出:

~ modem-manager-gui

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:51.363: g_strrstr: assertion 'haystack != NULL' failed
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:52.063: g_strrstr: assertion 'haystack != NULL' failed

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:52.103: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary,
G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:52.103: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary,
G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:52.103: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary,
G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:52.103: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary,
G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed

(modem-manager-gui:6140): GLib-CRITICAL **: 00:07:52.103: g_variant_unref: assertion 'value != NULL' failed
Segmentation fault at address: 0x20
Stack trace:
1. /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_bit_lock+0x50) [0x7f8d75cd7540]
2. /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_bit_lock+0x50) [0x7f8d75cd7540]
3. /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_variant_n_children+0x1d) [0x7f8d75d5137d]
4. /usr/lib/x86_64-linux-gnu/modem-manager-gui/modules/libmodcm_nm09.so(+0x3bc0) [0x7f8d70077bc0]
5. modem-manager-gui(mmguicore_connections_enum+0x6d) [0x55d2f3383d4d]
6. modem-manager-gui(+0x4a520) [0x55d2f33a4520]
7. modem-manager-gui(mmguicore_devices_open+0x1c0) [0x55d2f3388f90]
8. modem-manager-gui(+0x414fe) [0x55d2f339b4fe]
9. modem-manager-gui(+0x4a7a2) [0x55d2f33a47a2]

但我可以应付mmcli

答案3

我在 2022 年使用 Ubuntu 22 和 Thinkpad Z13 时也遇到了类似的问题:

gdbus.error.org.freedesktop.modermmanager1.error.core.wrongstate. cannot register modem: not yet enabled

调制解调器默认被禁用,无法打开。


经过数小时的谷歌搜索和尝试各种解决方案ls调制解调器启用/禁用脚本,libmbim-utils解决了它

$ sudo apt-get install libmbim-utils
$ sudo mbimcli -p -d /dev/cdc-wdm0 --quectel-query-radio-state
[/dev/cdc-wdm0] Radio state retrieved: 'fcc-locked'

$ sudo mbimcli -p -d /dev/cdc-wdm0 --quectel-set-radio-state=on
[/dev/cdc-wdm0] Successfully requested to enable radio
$ sudo mbimcli -p -d /dev/cdc-wdm0 --quectel-query-radio-state
[/dev/cdc-wdm0] Radio state retrieved: 'on'

现在调制解调器已启用!



感谢非 https 网站:https://koo.fi/blog/2022/12/21/enabling-quectel-em05-g-modem-on-linux/

答案4

这是解决方案:

ln -sft /etc/ModemManager/fcc-unlock.d /usr/share/ModemManager/fcc-unlock.available.d/*

相关内容