Repository: pwr-Solaar/Solaar

Issue:
Any chance to add MK220 combo (K220 + M150)?
Well, the title says it all.

The combo is the MK220:
Keyboard: K220
Mouse: M150

Thanks and good work!



Discussion:
Please clone from git and report the output of `bin/solaar show > mk220.txt` and `lsusb -d 046d`.

And THAT'S how you spot a noob.
I know nothing of what you're talking about. ):

Is this the second part?
<code>Bus 007 Device 002: ID 046d:c534 Logitech, Inc.</code>

@joaojotta: the first part was about building the project from source, so that you have the newest version running on your machine. This requires you to clone the repository (this repository) to your machine (check this: http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide#323906, don't forget to install git I guess). It is actually simpler than it looks, don't be afraid, use google if something is not clear, git is very widespread, so are introductory guides.
Alternatively, you could also download the zipped project from github (there is usually a link on the project's main page), but you would be required to do this every time you want the newest code, where the other way you can just use git commands.

Once you got this, you can build and run the newest version on your local machine, for which the steps are described in the readme (se the project's start page on the bottom). This might require that you search for some solutions regarding your python installation, udev rules and such, but it's not exactly rocket science.

Well, I guess I'm one step ahead.
Still, thanks @bipson.

The software is already running but I can't find the <code>mk220.txt</code> under the <code>/bin/solaar</code> folder not can I create one.

Thats the step I don't understand.
(sorry for the delay on the response but we got some virus at home and the kids have been sick)

Actually, the device info was already reported before at https://github.com/pwr/Solaar/blob/master/docs/devices/mk220.txt, so you do not have to report it once again. Once I've some time and finished MX master support, I'll look into this.

Great!
That's amazing!

I'm sorry for the double report than. I did search for it but got no results so...
Hope the support comes soon.

Thanks again!

Hi!

MK220 kit is very popular here in Brazil.

I still waiting for. Thanks! :)

Guys,

The problem with MK220 is that it is non unifying just like the MK270 (see issue #234). The receiver bundled with MK220 has product ID 0xc534 exactly like MK270 from the issue above. At this time, Solaar does not recognize this device, I made some changes to Solaar and it found the device but crashed with error as told to @Lekensteyn (again, see #234).

If you are on Linux machine with the receiver plugged in please run a `solaar show --debug` on a Solaar modified as I described in #234 and post it here so we can look it. I will only get back to home next week, until there I cannot do this command myself but would look to results and try to find something.

@FabioBeneditto, I am from Brazil also, if you want to help drop me a message.

Regards

@Lekensteyn ,

Regarding mk220.txt you pointed out, it is a different (newer?) combo with same label name (MK220 - WTF Logitech? Second time I see it, same thing with K270 keyboard and MK270 combo). The MK220 claimed by @joaojotta  uses different receiver `046d:c534` while the mk220.txt pointed in the repo uses `USB id       : 046d:c52e`

This is still related (dup) of #234 and #152 

I´ve just updated #234  with debug information about this receiver.

PR #337
@FabioBeneditto , @joaojotta 

Do you still have the MK220 available? If so, could you please checkout [my branch PR337](https://github.com/jrbenito/Solaar/tree/PR337) and run `solaar show` for me? 

Thanks
@jrbenito let me clone and try it
Results here: 
[PR337.txt](https://github.com/pwr/Solaar/files/832186/PR337.txt)

@FabioBeneditto ,

Thanks! One question: Are you using keyboard from the combo or another one?

The question came from the fact that your keyboard have same WPID as K270 (keyboard from MK270 combo). If you are using original keyboard then MK220 brings same keyboard as MK270. 

Regarding mouse M150, I will submit a PR with its descriptor based on your report.


@jrbenito I'm using keyboard (K220) and mouse (M150) from combo. 

Resolving patch:
diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py
--- a/lib/logitech_receiver/descriptors.py
+++ b/lib/logitech_receiver/descriptors.py
@@ -212,6 +212,7 @@ def _D(name, codename=None, kind=None, wpid=None, protocol=None, registers=None,
 
 # Mice
 
+_D('Wireless Mouse M150', protocol=2.0, wpid='4022')
 _D('Wireless Mouse M175', protocol=2.0, wpid='4008')
 _D('Wireless Mouse M185')
 _D('Wireless Mouse M187', protocol=2.0, wpid='4019')


Test patch: