[Spice-devel] [Users] Fedora 18 and usb pass-through

Hans de Goede hdegoede at redhat.com
Thu May 30 08:08:50 PDT 2013


Hi,

On 05/30/2013 04:34 PM, Ryan Wilkinson wrote:
> Yes, I can manually pass it through.  Not necessarily looking to use this specific device (usb wifi adaptor) but was just handy.  Here is the output:

Hmm, that should work.

I just noticed that in your last mail you mentioned that you've virt-viewer installed
"double".

Can you try doing:

rpm -e --allmatches virt-viewer
yum install virt-viewer

And see if that fixes things ?

Regards,

Hans



>
> Bus 001 Device 003: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               2.00
>    bDeviceClass            0 (Defined at Interface level)
>    bDeviceSubClass         0
>    bDeviceProtocol         0
>    bMaxPacketSize0        64
>    idVendor           0x0bda Realtek Semiconductor Corp.
>    idProduct          0x8172 RTL8191SU 802.11n WLAN Adapter
>    bcdDevice            2.00
>    iManufacturer           1 Manufacturer Realtek
>    iProduct                2 RTL8191S WLAN Adapter
>    iSerial                 3 00e04c000001
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           46
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0x80
>        (Bus Powered)
>      MaxPower              500mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           4
>        bInterfaceClass       255 Vendor Specific Class
>        bInterfaceSubClass    255 Vendor Specific Subclass
>        bInterfaceProtocol    255 Vendor Specific Protocol
>        iInterface              0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x83  EP 3 IN
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x04  EP 4 OUT
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x06  EP 6 OUT
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x0d  EP 13 OUT
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
> Device Qualifier (for other device speed):
>    bLength                10
>    bDescriptorType         6
>    bcdUSB               2.00
>    bDeviceClass            0 (Defined at Interface level)
>    bDeviceSubClass         0
>    bDeviceProtocol         0
>    bMaxPacketSize0        64
>    bNumConfigurations      1
> Device Status:     0x0000
>    (Bus Powered)
>
> Bus 005 Device 002: ID 2101:020f ActionStar
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.00
>    bDeviceClass            0 (Defined at Interface level)
>    bDeviceSubClass         0
>    bDeviceProtocol         0
>    bMaxPacketSize0         8
>    idVendor           0x2101 ActionStar
>    idProduct          0x020f
>    bcdDevice            0.01
>    iManufacturer           0
>    iProduct                0
>    iSerial                 0
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           59
>      bNumInterfaces          2
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0xa0
>        (Bus Powered)
>        Remote Wakeup
>      MaxPower              500mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         3 Human Interface Device
>        bInterfaceSubClass      1 Boot Interface Subclass
>        bInterfaceProtocol      1 Keyboard
>        iInterface              0
>          HID Device Descriptor:
>            bLength                 9
>            bDescriptorType        33
>            bcdHID               1.01
>            bCountryCode            0 Not supported
>            bNumDescriptors         1
>            bDescriptorType        34 Report
>            wDescriptorLength      63
>           Report Descriptors:
>             ** UNAVAILABLE **
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x81  EP 1 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0008  1x 8 bytes
>          bInterval              10
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        1
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         3 Human Interface Device
>        bInterfaceSubClass      1 Boot Interface Subclass
>        bInterfaceProtocol      2 Mouse
>        iInterface              0
>          HID Device Descriptor:
>            bLength                 9
>            bDescriptorType        33
>            bcdHID               1.01
>            bCountryCode            0 Not supported
>            bNumDescriptors         1
>            bDescriptorType        34 Report
>            wDescriptorLength      72
>           Report Descriptors:
>             ** UNAVAILABLE **
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x82  EP 2 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0008  1x 8 bytes
>          bInterval              10
> Device Status:     0x0002
>    (Bus Powered)
>    Remote Wakeup Enabled
>
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               2.00
>    bDeviceClass            9 Hub
>    bDeviceSubClass         0 Unused
>    bDeviceProtocol         0 Full speed (or root) hub
>    bMaxPacketSize0        64
>    idVendor           0x1d6b Linux Foundation
>    idProduct          0x0002 2.0 root hub
>    bcdDevice            3.06
>    iManufacturer           3 Linux 3.6.10-4.fc18.x86_64 ehci_hcd
>    iProduct                2 EHCI Host Controller
>    iSerial                 1 0000:00:1d.7
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           25
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0xe0
>        Self Powered
>        Remote Wakeup
>      MaxPower                0mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         9 Hub
>        bInterfaceSubClass      0 Unused
>        bInterfaceProtocol      0 Full speed (or root) hub
>        iInterface              0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x81  EP 1 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0004  1x 4 bytes
>          bInterval              12
> Hub Descriptor:
>    bLength              11
>    bDescriptorType      41
>    nNbrPorts             8
>    wHubCharacteristic 0x000a
>      No power switching (usb 1.0)
>      Per-port overcurrent protection
>    bPwrOn2PwrGood       10 * 2 milli seconds
>    bHubContrCurrent      0 milli Ampere
>    DeviceRemovable    0x00 0x00
>    PortPwrCtrlMask    0xff 0xff
>   Hub Port Status:
>     Port 1: 0000.0100 power
>     Port 2: 0000.0100 power
>     Port 3: 0000.0100 power
>     Port 4: 0000.0100 power
>     Port 5: 0000.0100 power
>     Port 6: 0000.0503 highspeed power enable connect
>     Port 7: 0000.0100 power
>     Port 8: 0000.0100 power
> Device Status:     0x0001
>    Self Powered
>
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.10
>    bDeviceClass            9 Hub
>    bDeviceSubClass         0 Unused
>    bDeviceProtocol         0 Full speed (or root) hub
>    bMaxPacketSize0        64
>    idVendor           0x1d6b Linux Foundation
>    idProduct          0x0001 1.1 root hub
>    bcdDevice            3.06
>    iManufacturer           3 Linux 3.6.10-4.fc18.x86_64 uhci_hcd
>    iProduct                2 UHCI Host Controller
>    iSerial                 1 0000:00:1d.0
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           25
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0xe0
>        Self Powered
>        Remote Wakeup
>      MaxPower                0mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         9 Hub
>        bInterfaceSubClass      0 Unused
>        bInterfaceProtocol      0 Full speed (or root) hub
>        iInterface              0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x81  EP 1 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0002  1x 2 bytes
>          bInterval             255
> Hub Descriptor:
>    bLength               9
>    bDescriptorType      41
>    nNbrPorts             2
>    wHubCharacteristic 0x000a
>      No power switching (usb 1.0)
>      Per-port overcurrent protection
>    bPwrOn2PwrGood        1 * 2 milli seconds
>    bHubContrCurrent      0 milli Ampere
>    DeviceRemovable    0x00
>    PortPwrCtrlMask    0xff
>   Hub Port Status:
>     Port 1: 0000.0100 power
>     Port 2: 0000.0100 power
> Device Status:     0x0001
>    Self Powered
>
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.10
>    bDeviceClass            9 Hub
>    bDeviceSubClass         0 Unused
>    bDeviceProtocol         0 Full speed (or root) hub
>    bMaxPacketSize0        64
>    idVendor           0x1d6b Linux Foundation
>    idProduct          0x0001 1.1 root hub
>    bcdDevice            3.06
>    iManufacturer           3 Linux 3.6.10-4.fc18.x86_64 uhci_hcd
>    iProduct                2 UHCI Host Controller
>    iSerial                 1 0000:00:1d.1
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           25
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0xe0
>        Self Powered
>        Remote Wakeup
>      MaxPower                0mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         9 Hub
>        bInterfaceSubClass      0 Unused
>        bInterfaceProtocol      0 Full speed (or root) hub
>        iInterface              0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x81  EP 1 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0002  1x 2 bytes
>          bInterval             255
> Hub Descriptor:
>    bLength               9
>    bDescriptorType      41
>    nNbrPorts             2
>    wHubCharacteristic 0x000a
>      No power switching (usb 1.0)
>      Per-port overcurrent protection
>    bPwrOn2PwrGood        1 * 2 milli seconds
>    bHubContrCurrent      0 milli Ampere
>    DeviceRemovable    0x00
>    PortPwrCtrlMask    0xff
>   Hub Port Status:
>     Port 1: 0000.0100 power
>     Port 2: 0000.0100 power
> Device Status:     0x0001
>    Self Powered
>
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.10
>    bDeviceClass            9 Hub
>    bDeviceSubClass         0 Unused
>    bDeviceProtocol         0 Full speed (or root) hub
>    bMaxPacketSize0        64
>    idVendor           0x1d6b Linux Foundation
>    idProduct          0x0001 1.1 root hub
>    bcdDevice            3.06
>    iManufacturer           3 Linux 3.6.10-4.fc18.x86_64 uhci_hcd
>    iProduct                2 UHCI Host Controller
>    iSerial                 1 0000:00:1d.2
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           25
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0xe0
>        Self Powered
>        Remote Wakeup
>      MaxPower                0mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         9 Hub
>        bInterfaceSubClass      0 Unused
>        bInterfaceProtocol      0 Full speed (or root) hub
>        iInterface              0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x81  EP 1 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0002  1x 2 bytes
>          bInterval             255
> Hub Descriptor:
>    bLength               9
>    bDescriptorType      41
>    nNbrPorts             2
>    wHubCharacteristic 0x000a
>      No power switching (usb 1.0)
>      Per-port overcurrent protection
>    bPwrOn2PwrGood        1 * 2 milli seconds
>    bHubContrCurrent      0 milli Ampere
>    DeviceRemovable    0x00
>    PortPwrCtrlMask    0xff
>   Hub Port Status:
>     Port 1: 0000.0100 power
>     Port 2: 0000.0100 power
> Device Status:     0x0001
>    Self Powered
>
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.10
>    bDeviceClass            9 Hub
>    bDeviceSubClass         0 Unused
>    bDeviceProtocol         0 Full speed (or root) hub
>    bMaxPacketSize0        64
>    idVendor           0x1d6b Linux Foundation
>    idProduct          0x0001 1.1 root hub
>    bcdDevice            3.06
>    iManufacturer           3 Linux 3.6.10-4.fc18.x86_64 uhci_hcd
>    iProduct                2 UHCI Host Controller
>    iSerial                 1 0000:00:1d.3
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength           25
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0xe0
>        Self Powered
>        Remote Wakeup
>      MaxPower                0mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           1
>        bInterfaceClass         9 Hub
>        bInterfaceSubClass      0 Unused
>        bInterfaceProtocol      0 Full speed (or root) hub
>        iInterface              0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x81  EP 1 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0002  1x 2 bytes
>          bInterval             255
> Hub Descriptor:
>    bLength               9
>    bDescriptorType      41
>    nNbrPorts             2
>    wHubCharacteristic 0x000a
>      No power switching (usb 1.0)
>      Per-port overcurrent protection
>    bPwrOn2PwrGood        1 * 2 milli seconds
>    bHubContrCurrent      0 milli Ampere
>    DeviceRemovable    0x00
>    PortPwrCtrlMask    0xff
>   Hub Port Status:
>     Port 1: 0000.0100 power
>     Port 2: 0000.0303 lowspeed power enable connect
> Device Status:     0x0001
>    Self Powered
>
>
>
> On Thu, May 30, 2013 at 8:27 AM, Hans de Goede <hdegoede at redhat.com <mailto:hdegoede at redhat.com>> wrote:
>
>     Hi,
>
>
>     On 05/30/2013 04:17 PM, Ryan Wilkinson wrote:
>
>         Hans,
>
>         Thanks for the info.  Remote viewer has keyboard focus when attempting usb pass-through.  Just tried again to confirm.  These are the two package versions I'm seeing that are installed:
>
>         virt-viewer.x86_64                     0.5.4-3.fc18
>         virt-viewer.i686                          0.5.3-1.fc17
>
>
>     And you can pass the device through manually from the menu?
>
>     Can you do lsusb -v with the device plugin and then copy and
>     paste the output for the device in question into your next mail ?
>
>     Regards,
>
>     Hans
>
>


More information about the Spice-devel mailing list