Load rndis_host module on usb plug?

Hi I have an old Android phone that I use for USB tethering. I would like to modprobe rndis_host when I plug the phone in. Do I need to create a udev rule? Or a modprobe.d rule?

running openSUSE Tumbleweed

I was testing my Android (10) phone today to see if tethering worked. Initially, it did not, the ip address command didn’t show the phone. But I found a post online that said to run sudo modprobe rndis_host and that alone took care of it, phone successfully tethered.

yes same here. I was hoping to automate that on usb plug in.

You can load the module always at boot time. This is the easy way.

man 5 modules-load.d

Or you can use udev rules to detect the specific device you’re connecting and only then load the module. This is the hard way and requires some scripting and experimentation:

2 Likes

@arvidjaar Bingo that was the fix.

I consider myself a Linux veteran - how did I not know to look in /usr/lib/modprobe.d/ !? I did look in /etc/modprobe.d and /usr/etc and /usr/local/etc but nothing there. oh well thanks man!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.