I have used the ltunify
pairing tool for Logitech Unifying Receiver, written by Lekensteyn, on my Logitech M510 mouse and K350 keyboard, which works perfectly. However, when I reboot, these changes are lost and I have to plug in an old keyboard so that I can re-run ltunify
.
Is there any way to make these changes permanent so that I don't have to keep switching my devices on and off each time I reboot?
EDIT: After rebooting the machine and executing ltunify list
, it shows that the devices ARE connected and paired, despite the fact that they are not working:
Devices count: 2
Connected devices:
idx=1 Mouse M510
idx=2 Keyboard K350
Note also, that:
- In the BIOS, both the keyboard and mouse work out-of-the-box
- In the GRUB boot menu, the keyboard works (cannot test the mouse, as it's not a GUI)
- In the installer (CentOS 7) both the keyboard and mouse work out-of-the-box
- CentOS 7 64-bit with kernel 3.10.0-123.20.1.el7.x86_64
EDIT2: The system I'm using is an Intel NUC DN2820HKFY.
Best Answer
As you have mentioned, the device have not really lost their pairing state so that should rule out hardware defects.
The most likely issue I can think of is the presence of runtime power management that somehow makes the USB port sleep and thus be unaware of the receiver. Clicking with the mouse or pressing a key should however solve such issues.
Suggestions that are worth trying:
In the past, I have written this udev rules file to trigger the pairing process upon receiver insertion. Adjust the ltunify and timeout values and place them in
/etc/udev/rules.d/60-ltunify-pair.rules
.