Hi, all! I want to use the USB tethering to make my PC to connect the internet. I open the settings for usb tethering in my android phone, but not see any new interface with ‘ip a’ command. Lsusb outputs Bus 001 Device 057: ID 2a70:9024 OnePlus Technology (Shenzhen) Co., Ltd. SM8150-MTP.
This is the kernel log:
//usb set to tethering
[1080763.421027] usb 1-1: USB disconnect, device number 60
[1080763.974410] usb 1-1: new high-speed USB device number 61 using xhci_hcd
[1080764.121075] usb 1-1: New USB device found, idVendor=2a70, idProduct=9024, bcdDevice= 4.14
[1080764.121093] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1080764.121100] usb 1-1: Product: SM8150-MTP _SN:8D224E40
[1080764.121106] usb 1-1: Manufacturer: OnePlus
[1080764.121111] usb 1-1: SerialNumber: 9dd70f88
//usb set to MTP
[1080768.231728] usb 1-1: USB disconnect, device number 61
[1080768.827182] usb 1-1: new high-speed USB device number 62 using xhci_hcd
[1080768.970415] usb 1-1: New USB device found, idVendor=2a70, idProduct=9012, bcdDevice= 4.14
[1080768.970462] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1080768.970473] usb 1-1: Product: SM8150-MTP _SN:8D224E40
[1080768.970481] usb 1-1: Manufacturer: OnePlus
[1080768.970486] usb 1-1: SerialNumber: 9dd70f88
ID 2a70:9012 should be the real MTP device, and ID 2a70:9024 should be the excat rndis device.
It seems the device is recognized as a storage device rather than a rndis device. Maybe the rndis_host.ko isn’t running in the kernel? Should I install a package for the rndis_host module? I tried pacman -Ss "rndis|tether" and google the rndis package’s name but not found.
I am running Linux Mypc 5.15.112-1-MANJARO #1 SMP PREEMPT Wed May 17 11:11:32 UTC 2023 x86_64 GNU/Linux in my laptop.
The logs you provided are just an indication that Linux properly noticed you have connected your device to the USB port, but it does not know what todo with it yet…
No matter I set usb to MTP or tethering, udev monitor outputs the same logs above.
Is there any problem with my computer? But lsusb do get the correct device ID.
you are aware you need to activate USB network sharing in your phones settings?
Yeah, I did activate USB network sharing before ‘ip a’. There isn’t a new network interface at all.
There isn’t rndis_host loaded in dmesg log, too. Do i need to install any package to have the rndis_host.ko? Or the module has been installed by default?
Start that in a terminal and watch the output
while you have your phone connected via USB
and then activate/deactivate USB Tethering mode on your phone.
//usb set to network sharing
kernel: usb 1-1: USB disconnect, device number 89
kernel: usb 1-1: new high-speed USB device number 90 using xhci_hcd
kernel: usb 1-1: New USB device found, idVendor=2a70, idProduct=9024, bcdDevice= 4.14
kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 1-1: Product: SM8150-MTP _SN:8D224E40
kernel: usb 1-1: Manufacturer: OnePlus
kernel: usb 1-1: SerialNumber: 9dd70f88
mtp-probe[962911]: checking bus 1, device 90: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
mtp-probe[962911]: bus: 1, device: 90 was not an MTP device
mtp-probe[962951]: checking bus 1, device 90: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
mtp-probe[962951]: bus: 1, device: 90 was not an MTP device
//usb set to file transfer, aka MTP device
kernel: usb 1-1: USB disconnect, device number 90
kernel: usb 1-1: new high-speed USB device number 91 using xhci_hcd
kernel: usb 1-1: New USB device found, idVendor=2a70, idProduct=9012, bcdDevice= 4.14
kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 1-1: Product: SM8150-MTP _SN:8D224E40
kernel: usb 1-1: Manufacturer: OnePlus
kernel: usb 1-1: SerialNumber: 9dd70f88
// file transfer works fine
Almost the same as dmesg. Could not detect rndis device.
That is the message that pops up on the phone where you change the mode.
But that is not the place I was talking about.
Go to the phone settings → Connections → Mobile Hotspot and Tethering.
When the phone is connected via USB, the USB Tethering switch becomes active - and you can turn it on.
It might be slightly differently named depending on the Android version the phone is running on.
It is an Android device, or is it not?
//turn on USB tethering
kernel: usb 1-1: USB disconnect, device number 97
kernel: usb 1-1: new high-speed USB device number 98 using xhci_hcd
kernel: usb 1-1: New USB device found, idVendor=2a70, idProduct=9024, bcdDevice= 4.14
kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 1-1: Product: SM8150-MTP _SN:8D224E40
kernel: usb 1-1: Manufacturer: OnePlus
kernel: usb 1-1: SerialNumber: 9dd70f88
mtp-probe[967180]: checking bus 1, device 98: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
mtp-probe[967180]: bus: 1, device: 98 was not an MTP device
mtp-probe[967221]: checking bus 1, device 98: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
mtp-probe[967221]: bus: 1, device: 98 was not an MTP device
//turn off USB tethering
kernel: usb 1-1: USB disconnect, device number 98
kernel: usb 1-1: new high-speed USB device number 99 using xhci_hcd
kernel: usb 1-1: New USB device found, idVendor=2a70, idProduct=4ee7, bcdDevice= 4.14
kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 1-1: Product: SM8150-MTP _SN:8D224E40
kernel: usb 1-1: Manufacturer: OnePlus
kernel: usb 1-1: SerialNumber: 9dd70f88
mtp-probe[967238]: checking bus 1, device 99: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
mtp-probe[967238]: bus: 1, device: 99 was not an MTP device
mtp-probe[967266]: checking bus 1, device 99: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
mtp-probe[967266]: bus: 1, device: 99 was not an MTP device
Me neither - I just noticed that it doesn’t matter how USB tethering is activated,
The way @inroi23 did it (via the pop up and then select)
or by going to the system settings and doing it from there.
The effect is the very same.
It is just the way I do it and am used to.
Perhaps the USB cable is faulty/not a fully functioning one.
Try another?
@inroi23 , just a thought that went through my head…
Does USB Tethering of your phone work with other computers and cable? (not just OS) This is to rule out the problem being on phone side and cable…
The phone’s USB tethering works fine in other computers, have been tested on Windows 11 and Ubuntu.
The cable should work,too. After all, the USB file transfer works fine with this cable.
Ok thanks at least that rules that part out of the search then
You mentioned Ubuntu where it worked, could you provide the same outputs, as what they asked todo on Manjaro, but this time on Ubuntu?
Maybe it will shed a light of what is missing or not working in (your) Manjaro…
An Ubuntu live system (iso) should suffice if you don’t want to wait.
Also, booting from the Manjaro iso should do - and work.
Or any other Linux that you could quickly boot up via USB.
I did a system update a few hours ago and tested again. No new network interface appeared…
Later I got a bootable Linux USB, test it with the same device and same cable, USB tethering did work.
After I rebooting to my Manjaro, opened network sharing in my phone, rndis_host loaded and a new interface ‘enp0s20f0u1’ just appeared…
I thought it may because I didn’t restart my computer for too long? I am very sorry for such a miss! My computer has been up for almost two months, I really don’t want to reboot it…as many things need to restart again…