The C Source, Patches and (shudder!) Bugs
-
jjakob
- Posts: 1
- Joined: 19 Jun 2019, 21:24
Post
by jjakob » 19 Jun 2019, 21:32
Only works with -R (reset).
I think what needs to be added is:
usb-modeswitch-data/usb_modeswitch.d/2357:0600
Code: Select all
# TP-Link UE300
TargetVendor=0x2357
TargetProduct=0x0601
ResetUSB=1
Probably also this to 40-usb_modeswitch.rules (though I see it's only for backward compatibility)
Code: Select all
# TP-Link UE300
ATTR{idVendor}=="2357", ATTR{idProduct}=="0600", RUN+="usb_modeswitch '/%k'"
Anything else that'd need adding?
-
JLT
- Posts: 2
- Joined: 11 Jan 2025, 06:49
Post
by JLT » 11 Jan 2025, 06:53
This config does indeed keep the TP-Link UE300 in ethernet mode, but the reset keeps happening on OpenSUSE.
Using
Code: Select all
udevadm monitor /sys/bus/usb/devices/3-4 -p -k -u
I found that the kernel removes the device after UDEV successfully registered in 'ethernet mode' to then be removed and added again as usb-storage device by the kernel. Since I do use USB storage devices i can probably not simply blacklist usb-storage modules to remediate this.
-
JLT
- Posts: 2
- Joined: 11 Jan 2025, 06:49
Post
by JLT » 11 Jan 2025, 07:03
SOLVED:
USBguard was permitting the USB ethernet adapter in one mode yet not the other mode.
So, unplug the adapter, plug-in the adapter and keep running `usbguard list-devices -b` to then allow the detected device.