USB passthrough for change-sensitive devices
Posted: 14. Oct 2019, 12:45
Hello,
I've seen that some devices are sensitive to HOST/VM switching and reset their available functions.
Examples could be flashing modes and, my personal case: Sony USB tethering (tested also with Samsung, which behaves as desired; but I have 3 generations of Sonys that behave like this).
When I want to tether my VM, phone tether activation always triggers a USB change (thus tethering will always start at the host), but VM-ing the tethered mode (whether manually or with automatic rule) will "reset" the USB connection and phone will get back to default non-tethered mode. I assume 2nd guest init resets the device.
Steps that happen:
1. phone connected - default config
(optional) 2. VM connection - phone remains in default config
3. tether activated - phone changes USB settings and host sees a disconnection/connection event
4. VM connecting - usb switch is detected (usb ?sw reset?) by phone and switches to default configuration -> back to 1.
As I recall (long time ago), in VMWare, with Windows 7 host, I could force the usb passthough driver on this device (especially tethered). Could something like this be done in Linux? As in no USB init on the host side?
I'm not scared of udev rules damage and know how to recover. No need (ever) for the device on host OS.
Thank you!
I've seen that some devices are sensitive to HOST/VM switching and reset their available functions.
Examples could be flashing modes and, my personal case: Sony USB tethering (tested also with Samsung, which behaves as desired; but I have 3 generations of Sonys that behave like this).
When I want to tether my VM, phone tether activation always triggers a USB change (thus tethering will always start at the host), but VM-ing the tethered mode (whether manually or with automatic rule) will "reset" the USB connection and phone will get back to default non-tethered mode. I assume 2nd guest init resets the device.
Steps that happen:
1. phone connected - default config
(optional) 2. VM connection - phone remains in default config
3. tether activated - phone changes USB settings and host sees a disconnection/connection event
4. VM connecting - usb switch is detected (usb ?sw reset?) by phone and switches to default configuration -> back to 1.
As I recall (long time ago), in VMWare, with Windows 7 host, I could force the usb passthough driver on this device (especially tethered). Could something like this be done in Linux? As in no USB init on the host side?
I'm not scared of udev rules damage and know how to recover. No need (ever) for the device on host OS.
Thank you!