On Thu, Sep 22, 2011 at 23:17, Richard Schütz <r.schtz@xxxxxxxxxxx> wrote: > Am 22.09.2011 22:48, schrieb Benjamin Tissoires: >> >> Hi Richard, >> >> here, you'll find a small C program that allows you to do a pairing of >> a new device to a receiver. > > Thanks. > > Could you also add the possibility to remove a pairing? It would be nice if > the program would print the product name of device detected during the > pairing process, too. mmm... this would be more complicated: - the first problem is a NDA and political one. As I worked in Logitech, I had access to some internal (confidential) documentation. I was able to release this piece of code as it can be easily retrieved by adding a spy on the usb stack when doing the pairing on windows. Discovering the command that removes devices is not so easy (to my mind), thus, I can not give it right now. Please note that I asked them if I could release this magic sequence, and it went quite high in the hierarchy (but this piece of code has nothing to do with Logitech, just to be clear). - the second problem is more a technical one. The removal of the device would require you two know which device you want to remove. So it would require the ability to know all the different devices and their pairing number. This information shows up somewhere in the log but there is no way to ask the receiver for this information with the current status of the driver (without knowing internal commands). Getting it from the list of devices would be quite complicated depending on the number of receivers you have plugged, etc... - Obtaining the name of the device can not be retrieved at the moment without knowing the different commands to send to the device. As it's confidential Logitech, I can not give them to you unless someone else does the retro-engineering. So, to sum up, I agree this would be better, but today, this has to be done by someone else, either officially at Logitech, or by someone not related to Logitech that does the retro-engineering. > > I think the tool should be distributed somewhere officially. There are > probably a lot of people, who would use the Unifying feature under Linux, > but don't read the mailing lists. I really don't have the time to do it. If somebody else want to pack it and publish it, I'm fine with it. I just gave this piece of code on this channel in order to target skilled persons that are able to compile a C file, and to run it from a shell. Then, if someone wants to do a gui or anything else (the important part in the code is the magic sequence), it's ok for me. Sorry for not being able to do more. Benjamin > > -- > Regards, > Richard Schütz > -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html