Multiple VMs and each with separate Logitech, Inc. Unifying Receivers


Recommended Posts

I want to have a Windows 10 VM and an OpenELEC VM. I have two Logitech Unifying Receivers. When I attempt to assign one of the receivers via the GUI to each VM both receivers are assigned to both VMs.

 

two_logitech_receivers.jpg

 

Any idea how to assign only one receiver to each VM? Can we use multiple Logitech Receivers with Unraid? I assume this is done via the XML.

 

These appear in each VM:

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
      </source>
    </hostdev>

 

Syslog entries when attaching the 1st Logitech Unifying Receiver

Aug 28 23:16:37 TheMatrix kernel: input: Logitech K700 as /devices/pci0000:00/0000:00:12.0/usb8/8-3/8-3:1.2/0003:046D:C52B.001F/0003:046D:2012.0021/input/input20

Aug 28 23:16:37 TheMatrix kernel: logitech-hidpp-device 0003:046D:2012.0021: input,hidraw6: USB HID v1.11 Keyboard [Logitech K700] on usb-0000:00:12.0-3:2

 

Syslog entries when attaching the 2nd Logitech Unifying Receiver

Aug 28 23:16:37 TheMatrix kernel: input: Logitech K400 as /devices/pci0000:00/0000:00:12.0/usb8/8-3/8-3:1.2/0003:046D:C52B.001F/0003:046D:4024.0022/input/input21

Aug 28 23:16:37 TheMatrix kernel: logitech-hidpp-device 0003:046D:4024.0022: input,hidraw7: USB HID v1.11 Keyboard [Logitech K400] on usb-0000:00:12.0-3:3

 

$ lspci|grep USB

00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller

00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller

00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller

00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller

00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller

00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller

00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller

03:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller

04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller

 

$ lsusb|grep -i logitech

Bus 009 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver

Bus 008 Device 016: ID 046d:c52b Logitech, Inc. Unifying Receiver

two_logitech_receivers.jpg.4ef019aecc99d0c7fc8c9ad0c1497e77.jpg

Link to comment
  • 2 weeks later...

I figured this out on via the KVM forum as no one replied :(

 

Maybe this will help someone else...

 

I was right editing the XML was the solution the syntax took some time to figure out. The unRAID VM GUI won't let you assign devices with duplicate names properly. (You add one Unified Receiver both are chosen). You have to edit the XML. Remove the vendor & product which takes detective work. The GUI is no help and once you fix the XML if you go back to the GUI it breaks it again. It would be nice if duplicate devices showed the USB Bus & Device ID.

 

I figured out which entries to replace in the XML by adding & remove devices via the GUI, examining the XML and identifying the differences. Then I ran the lsusb command looking for Logitech to find the bus and device ID.

 

Ultimately for me one VM needed this:

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <address bus='8' device='16' />
      </source>
    </hostdev>

 

 

And the other VM needed this:

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <address bus='9' device='3' />
      </source>
    </hostdev>

 

Your vendor, product, bus id and device id will likely be different.

  • Like 1
Link to comment
Actually this thread here covered it in our forum:  http://lime-technology.com/forum/index.php?topic=41650

 

See my replies in there though as to why this really isn't a full solution and an unsolvable problem.  Yes, you got it to work, but may have issues on reboot.

 

http://lime-technology.com/forum/index.php?topic=41650.msg407588.msg#407588

 

Thanks JonP.

 

I saw those a day or two after I figured it out on my own. Even the response on that thread was over 30 days July 20th to Sept 4th. I would think this is a common issue but apparently not that common. I'm new to unRAID (only about 2 months) and so much of the current version is undocumented. I wish I could have paid for some support from LT. With some sort of support this could probably have been fixed with a 20 minute phone call or an short email chain.

 

So far I reboot 5 - 7 times, my USB bus & device IDs have not changed. As long as I am aware of the possibility they can change, I can deal with it.

 

It would be nice to see the GUI improved to distinguish devices or at least save my custom XML settings. It took me a couple times to understand why my XML changes were over written every time I went back to the GUI to change something. After the initial setup and testing it should be more stable.

 

Getting both my VMs (Win10 & OpenELEC) working through the TV was hopefully my last hurdle. Having a keyboard for each VM was crucial to making that a reality. I thought buying a trusted brand like Logitech would make it easy to support. If I had known I'd have this issue with I might have bought 2 different brands of keyboard or only one with the Logitech Unifying Receiver.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.