So, I happened to umm… own both the Logitech Performance MX, and the sleek Anywhere MX, both supporting Logitech Unifying receivers. Meaning a single usb receiver can be used to connect more multiple Logitech peripherals at once. To do that, Logitech has provided Windows and Mac users with the Logitech Unifying software.
Linux? Not so much.
Anyway, Benjamin Tissoires posted a program that we can compile and use to connect an existing usb receiver to additional logitech stuff. First, get the script here.
It seems that some of you are having trouble compiling the script on 32-bit environment. Actually, despite the warning, the program compiled just fine. I have updated the script so it can be compiled without warning on 32-bit or 64-bit. You can get it here
Put the file in a directory, let say /opt/unify, then compile the program
ikhsan@Mach5-NX:/opt/unify$ sudo gcc -o pairing_tool pairing_tool.c
Next, we need to find out which hidraw device represents the unifying receiver. Unplug and replug the receiver, and type:
You should see messages such as these:
[18675.906824] generic-usb 0003:046D:C52B.000F: hiddev99,hidraw8: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.6/input2
Unfortunately, it seems that, all of hidraw devices in my box (0 to 8) belong to the receiver, so I ended up trying each of them one by one. To start connecting, do this:
ikhsan@Mach5-NX:/dev$ sudo /opt/unify/pairing /dev/hidrawx
Where x is the number of hidraw device that belong to the receiver, in my case, it’s hidraw2. You should see this message:
The receiver is ready to pair a new device. Switch your device on to pair it.
Turn on the new device, and it will be ready for use.