Bug 2348500 - Fails to initialize LTE Huawei dongle through udev
Summary: Fails to initialize LTE Huawei dongle through udev
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: usb_modeswitch
Version: 41
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Sergio Basto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 01:04 UTC by Patrick Monnerat
Modified: 2025-03-15 00:34 UTC (History)
4 users (show)

Fixed In Version: usb_modeswitch-2.6.2-2.fc41 usb_modeswitch-2.6.2-2.fc40 usb_modeswitch-2.6.2-2.fc42
Clone Of:
Environment:
Last Closed: 2025-03-01 01:24:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Patrick Monnerat 2025-02-27 01:04:23 UTC
When starting a RPi 4 with the LTE Huawei dongle (12d1:1f01), the device stays in CDROM mode and is not switched to LTE router mode automatically.

/var/log/message shows "usb_modeswitch failed with exit code 1".

Manually submitting "usb_modeswitch -v 12d1 -p 1f01 -W -J -R -w 400" in a root session succeeds and performs the switch.

usb_modeswitch-2.6.1-11.fc41 worked like a charm and downgrading to it restores proper functioning.

Reproducible: Always

Steps to Reproduce:
1. Plug a Huawei LTE dongle.
2. Start the computer
3. Login to a root session
Actual Results:  
- The dongle LED stays red
- lsusb shows it as a mass storage device (CDROM icon on desktop).

Expected Results:  
- Led blinks red, then turns green,
- lsusb shows it with a different product id and as an LTE
- Networking starts on device.

Comment 1 Sergio Basto 2025-02-27 01:06:29 UTC
which version ?

Comment 2 Sergio Basto 2025-02-27 01:08:46 UTC
(In reply to Patrick Monnerat from comment #0)
> When starting a RPi 4 with the LTE Huawei dongle (12d1:1f01), the device
> stays in CDROM mode and is not switched to LTE router mode automatically.
> 
> /var/log/message shows "usb_modeswitch failed with exit code 1".
> 
> Manually submitting "usb_modeswitch -v 12d1 -p 1f01 -W -J -R -w 400" in a
> root session succeeds and performs the switch.
> 
> usb_modeswitch-2.6.1-11.fc41 worked like a charm and downgrading to it
> restores proper functioning.

ok , you already wrote the version, I will check

Comment 3 Patrick Monnerat 2025-02-27 01:12:33 UTC
> which version ?

usb_modeswitch-2.6.2-1.fc41

I set it in the BZ form, but it seems the latter does not show it on final page :-(

Comment 4 Sergio Basto 2025-02-27 01:30:07 UTC
please see https://bugzilla.redhat.com/show_bug.cgi?id=1373274 if not a similar issue

udev file moved from /usr/lib/udev/ to /usr/lib/udev/rules.d 


moreover 

 For debugging of the automated system integration, edit (as root or su) /etc/usb_modeswitch.conf in a text editor and change the line

 EnableLogging=0

to

 EnableLogging=1

This gives you a verbose output of the hotplug activity to /var/log/usb_modeswitch_<device>.

Comment 5 Patrick Monnerat 2025-02-27 01:41:15 UTC
> udev file moved from /usr/lib/udev/ to /usr/lib/udev/rules.d

I'm currently relying on usb_modeswitch-data-20191128-12.fc41 which contains /usr/lib/udev/rules.d/40-usb_modeswitch.rules

Updating this file manually (for tests) shows changes are effective (/var/log/messages) but all attempts failed.

> EnableLogging=1

Thanks for the info and your investigations.

Comment 6 Sergio Basto 2025-02-27 12:59:29 UTC
ah ok , I going revert the move of usb_modeswitch to /usr/lib/udev/rules.d  , it was wrong 

Thank you for your bug report

Comment 7 Fedora Update System 2025-02-27 14:49:59 UTC
FEDORA-2025-bae569b1b4 (usb_modeswitch-2.6.2-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bae569b1b4

Comment 8 Fedora Update System 2025-02-27 14:50:22 UTC
FEDORA-2025-c19624531c (usb_modeswitch-2.6.2-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c19624531c

Comment 9 Fedora Update System 2025-02-27 14:50:44 UTC
FEDORA-2025-f8a424b82f (usb_modeswitch-2.6.2-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f8a424b82f

Comment 10 Fedora Update System 2025-02-28 01:10:02 UTC
FEDORA-2025-bae569b1b4 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-bae569b1b4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-bae569b1b4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-02-28 02:19:39 UTC
FEDORA-2025-c19624531c has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c19624531c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c19624531c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2025-02-28 02:31:49 UTC
FEDORA-2025-f8a424b82f has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f8a424b82f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f8a424b82f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2025-03-01 01:24:04 UTC
FEDORA-2025-c19624531c (usb_modeswitch-2.6.2-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Patrick Monnerat 2025-03-03 17:33:17 UTC
usb_modeswitch-2.6.2-2.fc41 fixes the problem for me.
Many thanks for your action.

Comment 15 Sergio Basto 2025-03-03 17:46:28 UTC
thank you for your feedback !

Comment 16 Fedora Update System 2025-03-08 01:35:39 UTC
FEDORA-2025-f8a424b82f (usb_modeswitch-2.6.2-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2025-03-15 00:34:11 UTC
FEDORA-2025-bae569b1b4 (usb_modeswitch-2.6.2-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.