Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71210 - Cellular modem radio is not really switched on after rfkill unblock event.

Attached to Project: Arch Linux
Opened by Romualdas Mincevičius (vertrygen) - Thursday, 10 June 2021, 13:20 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 10 June 2021, 18:32 GMT
Task Type Bug Report
Category Kernel
Status Assigned
Assigned To Andreas Radke (AndyRTR)
Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

The radio of Sierra Wireless EM7345 4G LTE modem in my ThinkPad T450s laptop is switched off after rfkill block command, but it does not switches back on after rfkill unblock command. When changing software radio state of the modem with mbimcli command error is registered in kernel ring buffer:

cdc_mbim 2-4:1.0: nonzero urb status received: -EPIPE


Additional info:

# uname -a
Linux redacted 5.12.9-arch1-1 #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000 x86_64 GNU/Linux
# lsusb | grep -i sierra
Bus 002 Device 003: ID 1199:a001 Sierra Wireless, Inc. Sierra Wireless EM7345 4G LTE
# pacman -Qs libmbim
local/libmbim 1.24.8-1
MBIM modem protocol helper library


Steps to reproduce:

# rfkill
ID TYPE DEVICE SOFT HARD
0 bluetooth tpacpi_bluetooth_sw unblocked unblocked
1 wwan tpacpi_wwan_sw unblocked unblocked
2 wlan phy0 unblocked unblocked
3 bluetooth hci0 unblocked unblocked

# mbimcli -d /dev/cdc-wdm0 -p --query-radio-state
[/dev/cdc-wdm0] Radio state retrieved:
Hardware radio state: 'on'
Software radio state: 'on'

# rfkill block wwan
# rfkill
rfkill
ID TYPE DEVICE SOFT HARD
0 bluetooth tpacpi_bluetooth_sw unblocked unblocked
1 wwan tpacpi_wwan_sw blocked unblocked
2 wlan phy0 unblocked unblocked
3 bluetooth hci0 unblocked unblocked

# mbimcli -d /dev/cdc-wdm0 -p --query-radio-state
[/dev/cdc-wdm0] Radio state retrieved:
Hardware radio state: 'on'
Software radio state: 'off'

# rfkill unblock wwan
# rkfill
ID TYPE DEVICE SOFT HARD
0 bluetooth tpacpi_bluetooth_sw unblocked unblocked
1 wwan tpacpi_wwan_sw unblocked unblocked
2 wlan phy0 unblocked unblocked
3 bluetooth hci0 unblocked unblocked

# mbimcli -d /dev/cdc-wdm0 -p --query-radio-state
[/dev/cdc-wdm0] Radio state retrieved:
Hardware radio state: 'on'
Software radio state: 'off'

# mbimcli -d /dev/cdc-wdm0 -p --set-radio-state=on
[/dev/cdc-wdm0] Radio state retrieved:
Hardware radio state: 'on'
Software radio state: 'on'

# dmesg
<...>
[61668.380281] cdc_mbim 2-4:1.0: nonzero urb status received: -EPIPE

# mbimcli -d /dev/cdc-wdm0 -p --set-radio-state=off
[/dev/cdc-wdm0] Radio state retrieved:
Hardware radio state: 'on'
Software radio state: 'off'

# dmesg
<...>
[61668.380281] cdc_mbim 2-4:1.0: nonzero urb status received: -EPIPE
[61790.859379] cdc_mbim 2-4:1.0: nonzero urb status received: -EPIPE
This task depends upon

Comment by Andreas Radke (AndyRTR) - Thursday, 10 June 2021, 18:34 GMT
Use a kernel before 5.11.x - e.g. out 5.10.x lts kernel.

Bluez will require some fix for rfkill kernel changes introduced in 5.11.
Comment by Romualdas Mincevičius (vertrygen) - Thursday, 10 June 2021, 18:57 GMT
Same problem when using 5.10.42-1-lts kernel.
I don't use bluez.
Comment by Andreas Radke (AndyRTR) - Sunday, 19 September 2021, 08:53 GMT
Is this still an issue? Many updates happened. Maybe also get in touch with libmbim upstream.
Comment by Romualdas Mincevičius (vertrygen) - Sunday, 19 September 2021, 09:12 GMT
Unfortunately yes, I still have the same issue with latest updated packages. Will try to contact upstream.
Comment by Romualdas Mincevičius (vertrygen) - Sunday, 19 September 2021, 14:47 GMT
Created an issue in libmbim issue tracker (https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/issues/20) but it was closed by a developer with an advise to report it to Sierra Wireless which I did (https://forum.sierrawireless.com/t/sierra-wireless-em7345-4g-lte-modem-radio-is-not-really-switched-on-after-linux-rfkill-unblock-event/24942) TBF, I have low exptectations of my issue being addressed there. Not sure if I should post in Linux bugtracker (https://bugzilla.kernel.org/) since they advise to "use distribution's bug tracking tools".
Comment by Romualdas Mincevičius (vertrygen) - Sunday, 19 September 2021, 16:45 GMT
Created an issue in libmbim issue tracker (https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/issues/20) but it was closed by a developer with an advise to report it to Sierra Wireless which I did (https://forum.sierrawireless.com/t/sierra-wireless-em7345-4g-lte-modem-radio-is-not-really-switched-on-after-linux-rfkill-unblock-event/24942) TBF, I have low exptectations of my issue being addressed there. Not sure if I should post in Linux bugtracker (https://bugzilla.kernel.org/) since they advise to "use distribution's bug tracking tools".
Comment by Romualdas Mincevičius (vertrygen) - Sunday, 19 September 2021, 19:48 GMT
Created an issue in libmbim issue tracker (https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/issues/20) but it was closed by a developer with an advise to report it to Sierra Wireless which I did (https://forum.sierrawireless.com/t/sierra-wireless-em7345-4g-lte-modem-radio-is-not-really-switched-on-after-linux-rfkill-unblock-event/24942) TBF, I have low exptectations of my issue being addressed there. Not sure if I should post in Linux bugtracker (https://bugzilla.kernel.org/) since they advise to "use distribution's bug tracking tools".

Loading...