2nd USB ethernet adapter not recognized after reboot unless replugged

I agree. It should be documented.

1 Like

@jon If you create a stub for an entry explaining rc.local in the wiki, I will take my post above and restructure it, with links and everything and fill up the wiki entry. If you agree, should this cover both files (rc.local and firewall.local)?

1 Like

How about here:

https://wiki.ipfire.org/pkgs/rc-local

firewall.local already has a wiki page:
https://wiki.ipfire.org/configuration/firewall/firewall-local

So maybe add links and/or notes to the firewall.local page

1 Like

@meathill
If the 8153 keeps getting detected as 8151, why not just blacklisting the device 8151 in udev? I think the path in IPFire should be /etc/udev/rules.d/23-usb.rules.
Here’s a small writing about how this could be done:
https://www.projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/

@pmueller
What about adding some support (via an additional .local file for example) for blacklisting devices? So that it won’t get overwritten by the next update?

1 Like

Don’t create your rule in 23-usb.rules but create a new rule file such as 99-disable-8151-usb.rules and add the disable info in that. Then it won’t be overwritten by a core update. You can also add that file name to your include.user file so it is backed up and available for restore if you need to do a fresh install etc.

I think that should give you what you are looking for.

3 Likes

Thank you guys for all the workarounds. I tried both the udev blacklisting and the rc.local solution. The udev blacklisting seems like a cleaner solution, but unfortunately doesn’t work for me. Rc.local with usb rebind works fine.

@chrisk1 @bonnietwin
I created “/etc/udev/rules.d/99-disable-8151-usb.rules” with the following content:

# Disable wrong product ID for USB ethernet adapter

SUBSYSTEM=="usb", ATTRS{idVendor}=="2357", ATTRS{idProduct}=="8151", ATTR{authorized}="0"

After several reboots and trying to enable the rule via “udevadm control --reload” lsusb still shows:

Bus 004 Device 002: ID 2357:8151 TP-Link USB 10/100/1000 LAN
Bus 003 Device 002: ID 2357:0601 TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek RTL8153]

@lexuspolaris
Therefore I added the following to “/etc/sysconfig/rc.local”:

echo usb4 > /sys/bus/usb/drivers/usb/unbind
sleep 1
echo usb4 > /sys/bus/usb/drivers/usb/bind

exit 0

Now I’m happy with both ethernet adapters beeing recognized at reboot! :wink:

Thank you again I really appreciate the great support here.

2 Likes

https://bbs.archlinux.org/viewtopic.php?id=284914

Last reply seems to solve the whole problem. Didn´t get any disconnect messages or similar errors for two days at least.

try to disable “SG”

ethtool -K INSERT_NAME_OF_DEVICE_HERE sg off
e.g. ethtool -K orange0 sg off


Problem occured again today. So it´s not a solution :frowning:

EDIT: Moderator corrected the bbs.archlinux.org link in Line 1