Sharing Frame Dongle with USBIP

The server keeps the dongle plugged in and exports it over the network. The client attaches it and sees a normal local USB device. Install the usbip package on both (Debian/Ubuntu: linux-tools-$(uname -r); Arch: usbip; Fedora: usbip).

Server

sudo modprobe usbip-host             # check if usbip is working
sudo usbipd -D --tcp-port 3240       # start the daemon
sudo firewall-cmd --add-port=3240/tcp # enable firewall (if you have it, could be `sudo ufw allow 3240/tcp` if you're using that instead)    

usbip list -l | grep '28de:2432'     # if the dongle is connected, first line will show bus ID, eg. `busid 4-1 (28de:2432)`
sudo usbip bind -b 4-1               # take the busid and export it

Verify: readlink -f /sys/bus/usb/devices/4-1/driver prints /sys/bus/usb/drivers/usbip-host. The device no longer works on the server until you run sudo usbip unbind -b 4-1.

Client

Assuming your server ip is 192.168.1.50

sudo modprobe vhci-hcd               # make sure USBIP is working
usbip list -r 192.168.1.50           # only bound devices are listed, should show the busID we bound earlier
sudo usbip attach -r 192.168.1.50 -b 4-1   # bind the device
lsusb | grep '28de:2432'             # make sure the device is now local

You should see a new network card. Make sure you have WiFi enabled.

When you're done, you can detach the device

usbip port                           # shows which port the device landed on, i.e. 00
sudo usbip detach -p 00              # detach that device

Notes

  • USB/IP has no authentication or encryption. Only use on trusted LAN.
  • Make sure both devices are connected via 1 Gbps Ethernet, with WiFi you're better off connecting directly to the access point.
  • One client per device, cannot share to more than one PC.
  • If a client dies without closing the connection (crash, unexpected shutdown), the device stays "used". Recover with sudo usbip unbind -b 4-1 && sudo usbip bind -b 4-1 on the server.
  • The busid changes with the physical port. Keep the dongle in the same port, or match 28de:2432 from lsusb in a script.
  • Also works for the Steam Controller for a better Moonlight experience. Just replace vendor ID with 28de:1304