-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device change button does not affect other connected devices #28
Comments
Agreed, this feature would be great. Needing to lift the MX Masters 2s is a tedious process. |
Also agree! I hate picking up my mouse and pushing the button every time I want to switch. One sort-of workaround is using "Flow" to switch devices, but my experience is it still has a lot of bugs. I use the "ctrl+screen edge" option so I don't switch devices on accident by moving the mouse too far. Sometimes it will switch anyway when my mouse moves to the edge of the screen (seems to be an issue mostly when computer(s) is/are waking up). Other times it will only switch one device - mouse or keyboard - but not both. I'd say it works the way it should (move mouse to edge of screen while pressing "ctrl" key, switch mouse and keyboard to other device) about 60% of the time, which is why I usually just hit the "1", "2", or "3" button (using 3 computers) on the keyboard and would prefer to be able to just hit this key to switch my keyboard and mouse!! |
The sad truth is, that it's just a neglected driver for the MX Masters 2s and the Craft keyboard. The fact that Flow allows switching of both devices to a different computer (and indeed it does this as one would expect) shows that it is possible, and that syncing mouse and keyboard switching is just not implemented in the computer's driver. |
Right. All of the functionality is already there - it just needs to be utilized in the user interface. I can't imagine it would be too difficult to have a checkbox or something in the "Options" software to switch both mouse and keyboard when the 1, 2, or 3 toggle buttons are used to switch devices. Any idea if this is a custom option that could be implemented fairly easily? |
I have been doing some raw command line sniffing of the USB commands sent by the Logitech software to the unifying receiver, and could switch both Craft keyboard and MX Masters 2S mouse (which are connected using the same unifying receiver) to any other channel(1, 2, or 3). For sniffing I used busdog: https://github.com/djpnewton/busdog I never did USB development, or protocol decoding, so my skills are fairly low on that end, but I'm still documenting what I found out so far. The logitech driver uses simple commands to the unifying receiver, that encode the index of the device connected to the unifying receiver (in my case 1 being the keyboard, and 2 being the mouse), as well as some commands. For example, this is one example for a command sent to the device:
As far as I have seen, all commands start with The next 2 bytes are different for each command. I assume that these two bytes encode the actual command, and I have been able to identify at least some commands: Channel switching
I haven't figured out why Logitech uses a range of commands for switching, as I could spot no difference in behavior between any of the commands. For example, my computer sending this command, will make my keyboard (index 2) switch to the first channel:
And this command switches my keyboard to the second channel instead:
(The first two arguments to the tool are the VID and PID of the USB interface or endpoint, and not part of the protocol itself.) Here's another example, switching my mouse (index 1) to the first channel (channel index 0):
When Flow switches my mouse and keyboard, among other things, it sends two commands to the unifying receiver:
The first one switches my mouse to channel 2 (my other computer), the second command switches my keyboard. From everything I learned today, it should indeed be possible to write a small "driver extension" that switches devices at the same time. |
Just for the sake of completeness, another command I deciphered is some kind of channel description. When sending this, the selected device will return a description of the device that is connected to the given channel:
In this case, my keyboard (02) is asked to return description of channel
That's the name of my desktop machine, which is mapped to channel 2. The first byte of the message is |
Did anyone solve this issue? I do have a MX Keys and a MX Vertical and i would like to switch my devices with a single touch on the mx keys button. |
I haven't followed up on this after my initial experiments. While this is definitely just a driver issue (or at least can be easily fixed via the driver) it doesn't seem Logitech has scheduled any work on fixing this for the higher end product lineup right now. |
@davidschreiber
unfortunately while I am trying to send the command using USB-HID-Tool:
I receive following errors:
and on my second laptop:
Could you please tell me what I am doing wrong? Have you complied USB-HID-Tool using Microsoft Visual C++ Build Tools or just used pre-compiled |
Have the same issue, on both mac and windows. Would be nice to know how to make it work. Thx! |
Hi, |
@dnlw07 and @vladubogdan usbhidtool 0x046D 0xC52B 0x10 0x02 0x41 0x04 0x71 0x61 0x40 Thank you @davidschreiber |
thanks for the tip. I have checked PID and VID and actually are the same values in my case. I used different tool called command I send:
output I receive:
I also wrote a python script, but also without result:
Is anyone who also tried to play with that? |
@dnlw07 have played with it for a couple of hours. Finally got a script that switches between two devices using a Logitech Unifying adapter (I think it can be done via bluetooth connection as well). It was done by sending the hex data I've got from Solaar change-host execution for each host-device combinations (e.g. switch keyboard from first to second device and vice versa). |
@altvnv Unfortunately I am still struggling with it. Did you write a python script or used a command line tool? |
@dnlw07 I don't think it can be done with the same hex values, but let's give it a try.
Hope it helps you |
Thanks a lot for the snippet! Could you tell me which lirbary are you using?
Both of them are very simillar and its a bit confusing. |
@dnlw07 hid
Let me know if this snippet will do a trick for you as for the next iteration I want to try to customize the driver part. And note that it was done with two transmitters. I have no idea whether it works using the regular bluetooth connection. |
I am also using the same library as you. I am able to open the device: import hid
h = hid.Device(0x046D, 0xC52B)
h.nonblocking = 1 however I receive an error while using write method: hex_code = b"\x10\x03\x41\x04\x71\x8a\x40"
h.write(hex_code) the error message:
Did you face similar error before? I am pretty sure it also works via Bluetooth. The codes will be different. P.S. Are you using Linux or you were able to install Solaar on WSL2? |
@dnlw07 I'm used Linux only to obtain the proper commands for host changing feature. According to the issue - haven't faced it but try to remove hiadpi library from your machine and download hiadpi library from official reference and import it directly from python.
Btw, I've done it in following way:
P.S. I've tried this script on Linux, Mac and Windows - everything works fine for me. |
Hey folks, been trying to get this working as well. Thanks to the awesome information shared above and a bit of trial and error, I have two commands that switch my mouse and keyboard from the receiver in my laptop to the receiver in my desktop, and vice versa. They are: Mouse 1 -> 2./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x04,0x09,0x11,0x01,0x00,0x00 Keyboard 1 -> 2./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x03,0x09,0x11,0x01,0x00,0x00 Mouse 2 -> 1./hidapitester --vidpid 046D:C52B --open --length 7 --send-output "0x10,0x02,0x09,0x11,0x00,0x00,0x00" Keyboard 2 -> 1./hidapitester --vidpid 046D:C52B --open --length 7 --send-output "0x10,0x01,0x09,0x11,0x00,0x00,0x00" This makes sense to me because the only difference is the device index. However, I have another mouse that's also synced to both of these receivers, and it seems no value in the device index updates that mouse. It is an MX Anywhere 3. Has anyone encountered any similar behavior? Thanks! |
@arjunchhabra @altvnv used Solaar linux driver to get exact codes for his Logitech devices. Maybe you can try do the same if you have linux distro installed on your machine. Here is also the documentation to HID++ 2.0 protocol: It may help you to figure out the hex codes. However the documentation is not easy to understand, because of missing examples. P.S. Could you please add information to your post what keyboard and mouse are you using? |
Figured it out! I realized the values I was capturing the values from busdog incorrectly. What I was doing:
What I should have been doing (and what worked):
Capturing the output from my computer in the second scenario and then running that with the hidapitest executable provided the desired results and makes sense from a conceptual standpoint. For reference, I have tested this across my MX Keys, MX Anywhere (3) and M585. I will share the commands used for posterity, though the hex values seem to differ for all. MX Anywhere 1 -> 2./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x01,0x0a,0x1a,0x01 MX Keys 1 -> 2./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x03,0x09,0x11,0x01,0x00,0x00 M585 1 -> 2./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x04,0x09,0x11,0x01,0x00,0x00 MX Anywhere 1 -> 3./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x01,0x0a,0x1a,0x02 MX Keys 1 -> 3./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x03,0x09,0x11,0x02,0x00,0x00 MX Anywhere 2 -> 1./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x03,0x0a,0x1a MX Keys 2 -> 1./hidapitester --vidpid 046D:C52B --open --length 7 --send-output "0x10,0x01,0x09,0x11,0x00,0x00,0x00" M585 2 -> 1./hidapitester --vidpid 046D:C52B --open --length 7 --send-output "0x10,0x02,0x09,0x11,0x00,0x00,0x00" MX Anywhere 2 -> 1./hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x03,0x0a,0x1a,0x02 MX Keys 2 -> 3~Scripts/hidapitester --vidpid 046D:C52B --open --length 7 --send-output "0x10,0x01,0x09,0x11,0x02,0x00,0x00" |
@arjunchhabra thank you for your commands! I also faced simillar issue with I also have Command I am using for MX Keys keyboard to change channel from 1 -> 2:
Output I receive:
Could you tell mi if you have the same output as me or different? |
Hey @dnlw07, I see the same output, though sometimes it says "wrote -1 bytes" and sometimes where it writes "wrote 7 bytes". I believe only the one where it says "wrote 7 bytes" are successful writes. In any case, I keep it in a loop and within a few executions it successfully switches devices. I would recommend giving that a shot! |
Thanks everyone, I can finally switch seamlessly between my Linux machine/Windows laptop. I cant understand why Logitech have not implemented this in their own software, makes everything so much better. Linux machine is using solaar rule to switch both mouse and keyboard at the same time. Windows machine, a .bat file executing: MX Keys from 1 to 2: |
Hmm I am struggling with that for two months now and still not sure if I am doing sth wrong.
cd %userprofile%\Desktop\hidapitester
# Flow Master 2S mouse switch 1 --> 2
hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x01,0x09,0x1c,0x01,0x00,0x00
# Flow MX Keys keyboard switch 1 --> 2
hidapitester --vidpid 046D:C52B --open --length 7 --send-output 0x10,0x03,0x09,0x1c,0x01,0x00,0x00 Nothing is working. I repeated with my second laptop with the same result. |
Did someone succeed with keyboard keys (1,2,3 device) rebinding? Is it possible without any driver customisation? |
So I'm using linux as well...but oddly my gui for Solaar isn't giving me the change host options. I'm trying to figure out the command line, but not quite sure how the command should go. Incidentally, I think that has help me understood what the hex code actually represents...or at least why hex codes are not transferring well from one user to another, it looks like they might include the computer name in them (in the output of the solar CLI here under CHANGE HOST you see my computer name which is "tincan"):
Did any of you linux people use the CLI to swtich? I'm having trouble figuring out how to use the config command. |
Ah. Ok. Im pretty sure that the commend you are sending via hidapitester
is specifically for communicating the dongle.
Vid/pid 046D/C52B is the address of the dongle.
…On Mon, 1 Nov 2021 at 19:29, Adrian Alexandrescu ***@***.***> wrote:
Thank you arblackman for quick response :)
But , let me explain my situation.I am conected with MX3 mouse to PC2 via
Bluetooth(I dont have a dongle inserted to PC2), and I want to send a
command to dongle .
This command will change the device back to PC1, and it looks like :
"*hidapitester.exe --vidpid 046D:C52B --usage 1 --usagePage 0xFF00 --open
--length 7 --send-output "0x10,0x01,0x09,0x1c,0x00,0x00,0x00"*
Unfortunately , I get an error like
[image: image]
<https://user-images.githubusercontent.com/51136509/139727140-c9879381-ee25-4f35-b055-5b0b3772387b.png>
Ps: hidapitester.exe can be downloaded from here
https://github.com/todbot/hidapitester/releases
My question is : why this error uccurs ? And how you can get rid of this
error if you know ? :D .
I see here , there are people which executed command succesfully from
device2 and device1 and don't understand how is that possible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5IDLUBKNGRRX4SUZTZXEDUJ3TBRANCNFSM4I5HZXJA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Awesome detectives here :) |
I have a slightly different setup, using a Logitech M720 mouse and a K850 keyboard (sold as the MK850 mouse/keyboard set). They're both connected to System 1 using a single Logitech unifying receiver and System 2 using Bluetooth. Both systems are running Windows 10. The Bluetooth side requires long HID++ commands to initiate switching, which I figured out using this article: pwr-Solaar/Solaar#1154. So, my commands turned out to be these: Switch keyboard from System 1 to System 2: Switch mouse from System 1 to System 2: Switch keyboard from System 2 to System 1: Switch mouse from System 2 to System 1: The above mouse commands always work fine, and the command for switching the keyboard to System 2 always works fine too, but I'm having some problems with the keyboard when switching from System 2 to System 1 only. It works with no issues most of the time. However, every once it a while, after running hidapitester.exe to switch the keyboard back to System 1, the keyboard will immediately "bounce" back to System 2. This is visible by observing the white "Easy Switch" buttons on the keyboard. I'll see the "1" key solidly illuminate briefly followed by "2" flashing once and then solidly illuminating again. A few successive retries typically yield the same "bouncing" behavior, and then the normal switching behavior will resume and things will be fine again for a while. That's a bit irritating and I never have this problem with the mouse, or when the keyboard switches to System 2. An easy workaround is just to send many of the same hidapitester.exe commands to switch the keyboard. Unfortunately, an even bigger problem is that the keyboard will eventually get "broken" if the "bouncing" behavior happens over the course of many system switches. The "shift" key will get stuck on System 2 only. This is not visible on the Windows 10 On-Screen Keyboard and the caps-lock key can't be used to fix it. The only fix that I've found is to reboot System 2. I used Wireshark to try to figure out what is going on during a normal "Logitech Flow" keyboard switch on the Bluetooth-connected System 2, just to see if there is more involved than just sending the above control commands. The only thing I noticed is there there are 3 USB URB_INTERRUPT packets sent to the keyboard right before the system switch control command gets sent. Each one has a Packet Data Length of 0. I'm thinking that these may prep the keyboard for the switch to System 1 by telling it to flush any remaining input (or something like that) but I'm not sure. Also, I don't know how to send those URB_INTERRUPT packets with hidapitester.exe. Has anyone else experienced this keyboard "bouncing" and "shift-key-stuck" behavior? Have you had any luck with sending URB_INTERRUPT packets to fix it? I thought that maybe the keyboard has trouble switching when it is in use (for Bluetooth only), so I bound the switching script to a mouse button to ensure the keyboard remained idle before and during the switch. However, I still observe the same issues after a while. I also thought that this may be a driver issue on System 2. However, using the keyboard switching buttons never causes the bad behavior and the mouse always switches fine with hidapitester.exe, so I'm hoping that there is a way to fix the problem by sending additional USB flush/quiesce/interrupt commands before/during the keyboard switch to System 1. If anyone has any ideas, please let me know. Also, thanks for all the work put into this so far and all the detailed posts. I would not have gotten this far without them. |
@tsplat |
@dnlw07 - Thanks for your reply. Have you also run into the "shift-key-stuck" problem? |
@tsplat |
Hello all, |
Great thread! Thanks everyone for posting. I managed to get this working for my setup and wanted to post my findings in case it helps someone else with a similar setup: Keyboard: Logitech Ergo K860 My use case is switching both my keyboard and mouse between two systems using a script. Both systems have a logitech unifying receiver which I seemed to have better luck with instead of bluetooth. Here are the commands I used: On my secondary system, I have a script to switch to my first system. The script runs the following commands: Swap to Channel 1 of MX Vertical Mouse: Then on my first system, I have a script to switch to the secondary one: Swap to Channel 2 of MX Vertical Mouse: Here's a rough breakdown of the anatomy of the Logitech Ergo K860
MX Vertical
Some notes:
Hope that helps! |
@JLeikam if you'll look at readme in me repo, you'll find that what you refer to as "ID" in this message is the number of the |
@KonradFoit Nice! That's good to know. In my case, I was switching between windows and mac, so wasn't able to use Solaar. |
Adding to what @JLeikam said, the id for MX Master 3 is: 0x0a |
Perhaps I misunderstood how this is supposed to work. Running hidapitester from RECEIVER_2, I can switch MX Anywhere 3 TO RECEIVER_1 or RECEIVER_3, but I can't switch FROM RECEIVER_1 or RECEIVER_3. What I'm trying to do, if I have MX Keys and MX Mouse set to RECEIVER_2, once I switch the keyboard using the easy keys, I want to bind a command to some other key to take control of the mouse as well, is that possible? Also, seems like the values for my MX Anywhere 3 is different from the one posted before, so if anyone needs, it's 0x10,0x02,0x0a,0x1e,0x00,0x00,0x00 |
Amazing insights here, thank you to all that have contributed. Question, does this method work when your Logitech device(s) are connected via bluetooth or does it only work when using the a Bolt or Unifying receiver? |
I've the same. "busdog" tells me to send the command twice, if I press easy switch. So I send all command double time like: Switch mouse from 2->1 (one line): |
Hi, I'm new here and have literally no experience in what You are doing, |
Hi community. I created cross platform application for linux macos and windows to change source whenever go to edge of screen. It is creating system tray icon and you can activate or do the settings from there. You can emulate mouse movement for not sleeping even you can sync your clipboard from your local network as well. I hope it helps everyone https://github.com/meliksah/lcs happy coding :) executables are in here: https://github.com/meliksah/lcs/releases/tag/v0.0.2 |
TIP FOR PEOPLE REPLACING DEVICES My MX Vertical had a failing button so I replaced it with another one. Getting InputSwitcher working again was quite a pain but I finally figured it out. I was having a hell of a time figuring stuff out. Big tip: When using BusDog, the only button you care about pushing is the easy switch button(s) I got the info not when I left my device but when I pushed the button to come back to it Anyways, long story short, for whatever reason I had to change the second byte/chunk whatever from 0x01 to 0x03 and I changed the 4th byte but I'm not 100% sure I had to, but I'm over testing it. Hopefully this saves someone else a couple hours Someone should be a champ and get the IDs of all the Logitech products. ..maybe they should get paid for doing that. Seems like a perfect task for an employee of Logitech. Not like they have access to any of the devices or anything right? Maybe wrap all this in a nice little program for their paying customers. smh |
Massive thanks to everyone involved in this! Complete newbie in this area, so after struggling a bit with figuring it out, I thought of leaving my setup here in case anyone finds it useful: PC 1: desktop, Win 10, regular Logi Options+, via Logi Bolt marcelhoffs has left some very useful directions about Bluetooth connections at the end of his readme at: https://github.com/marcelhoffs/input-switcher . I took the id for the mouse from there and it worked right away via the dongle. However I couldn't find any info about the id of the keyboard (the id for the MX Keys didn't do the trick). Since I don't have a Linux machine, I setup Flow with a third PC and traced it using Wireshark and USBPcap. You can filter by usb.data_fragment to get what's being sent. One of the first entries contained the id for the MX Keys S which for added confusion turned out to be the same as the id for the mouse O.o. So PC1 to PC2 turned out to be: rem Switch MX Keys S, Logi Bolt, slot 3, to channel 1 The first index in the Logi Bolt wasn't in use probably as a result of all the switching, reconnecting and testing. The 4th byte seems to have several valid values so literally the only meaningful difference was the position in the Logi Bolt (the 2nd byte). The reverse direction was trickier. I followed the same logic however instead of slots there are different Bluetooth pseudo devices. The slot byte seems irrelevant. I used hidapitester.exe --list-detail to get the ids for the Bluetooth devices so the result came out as: rem Switch MX Master 3S, via Bluetooth, slot N/A, to channel 2 rem Switch MX Keys S, via Bluetooth, slot N/A, to channel 2 |
I have same issue with MX ergo mouse and Ergo K860 keyboard |
Hey @nefricore, I managed to switch the keyboard (MX Keys S) following your message, but I'm having trouble finding the id for the mouse (I have a MX Anywhere 3S). |
Hey @davide-stefanini ,
I hope that helps. |
is there a way to do it without the USB receiver, using bluetooth instead? would i be using hidapitester.exe for this? ex: .\hidapitester.exe --vidpid d2ca4b92c94f --usage 1 --usagePage 0xFF00 --open --length 7 --send-output 0x10,0x02,0x0c,0x1c,0x02,0x00,0x00 where vidpid: is an address of the bluetooth device? |
It's been some time, but I used bluetooth too. I think you use the address of the bluetooth HID device 👍 |
this works for me when using the USB receiver, how would I modify it to use Bluetooth? .\hidapitester.exe --vidpid 046D:C52B --usage 1 --usagePage 0xFF00 --open --length 7 --send-output 0x10,0x02,0x0c,0x1c,0x00,0x00,0x00 |
Finally got it to work - with MX Vertical 3 Mouse: There are several version of this (USB receiver to Bluetooth, Bluetooth to Bluetooth etc) 1 - Bluetooth channel 2 to Bluetooth channel 1: :: DEVICE_ID = device identifier (mouse/keyboard etc) :: Index of device in a list (typically this maps to the order of mouse devices you see in the unifying software app in Advanced settings) :: DST_CH = destination channel 0x00 for 1, 0x01 for 2, 0x02 for 3 :: Use hidapitester --list-detail to obtain both the vendorID and productID :: Bluetooth .\hidapitester.exe -v --vidpid %RCVR_VID%:%RCVR_PID% --usagePage 0xFF43 --usage 0x0202 --open --length 7 --send-output 0x11,%DVC_INDEX%,%DVC_ID%,0x1C,%DST_CH%,0x00,0x00 exit 0 2 - USB channel 1 to Bluetooth channel 2: :: DEVICE_ID = device identifier (mouse/keyboard etc) :: Index of device in a list (typically this maps to the order of mouse devices you see in the unifying software app in Advanced settings) :: DST_CH = destination channel 0x00 for 1, 0x01 for 2, 0x02 for 3 :: Use hidapitester --list-detail to obtain both the vendorID and productID :: Bluetooth .\hidapitester.exe -v --vidpid %RCVR_VID%:%RCVR_PID% --usagePage 0xFF00 --usage 1 --open --length 7 --send-output 0x10,%DVC_INDEX%,%DVC_ID%,0x1C,%DST_CH%,0x00,0x00 exit 0 3 - Bluetooth channel 3 to Bluetooth channel 2 @echo off :: MSE_ID = mouse identifier :: DST_CH = destination channel 0x00 for 1, 0x01 for 2, 0x02 for 3 :: Use hidapitester --list-detail to obtain both the vendorID and productID .\hidapitester.exe -v --vidpid %RCVR_VID%:%MSE_PID% --usagePage 0xFF43 --usage 0x0202 --open --length 7 --send-output 0x11,0x00,%MSE_ID%,0x1C,%DST_CH%,0x00,0x00 exit 0 MACOS - for some reason on my MAC you have to send length 20 instead of 7 #!/bin/bash /hidapitester --vidpid 046D:B020 --usagePage 0xFF43 --usage 0x0202 --open --length 20 --send-output 0x11,0x00,0x0C,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 exit 0 is it possible to use hipapitester.exe with a Keychron keyboard to change Bluetooth channel? |
Hi guys, this topic has been here for years, it helps me so much (cannot understand why Logitech still doesn't have such function....). Thanks to everyone involved in this! I notice most of the comments are with USB receiver. I'm working with both Windows PC using Bluetooth, so I thought of leaving my setup here in case anyone finds it useful: PC 1: laptop , Win 11, regular Logi Options+, via Bluetooth I followed marcelhoffs useful directions about Bluetooth connections at the end of his readme at: https://github.com/marcelhoffs/input-switcher. PC1 to PC2 turned out to be: rem Switch MX Master 2S to channel 2 PC2 to PC1 turned out to be: rem Switch MX Master 2S to channel 1 |
Thankyou everyone so much, now I can switch my 2x monitors, kb and mouse at tap of a single button! Again I will share my setup for others, in similar format as @Biyss (thanks!) PC 1: Home PC , Win 11, regular Logi Options+, MX Master 3 via Unifying Receiver, MX Keys S via Logi Bolt I had to also download a newer version of hidapitester from the official github, as the version saved in marcelhoffs repo didn't work on my Work laptop for some reason (seemed blocked). PC1 to PC2: rem Switch MX Keys S to channel 2 PC2 to PC1: rem Switch MX Keys S to channel 1 Unrelated, but may be helpful to someone: I am also switching my monitors using the method described in this reddit thread. |
Great thread! Thanks everyone for posting. @pleshakovalexander I successfully switched my K860, maybe you can get some useful information from here. Thank u @JLeikam, I successfully switched my K860 from Computer A, which was connected via a logitech unifying receiver, to Computer B, which was connected via Bluetooth. However, I have been unable to connect it from Computer B to Computer A. Here are the commands I used: **B to A(bluetooth to logitech unifying receiver): It is worth noting that, first of all, I activated the channel switching through the flow function and simultaneously used busdog to capture the Hex during the switching process. However, when I tried to switch from Computer B to Computer A using the same HEX, I couldn't succeed without specifying the "--usage" and "--usagePage". Later, I used the command "hidapitester --list-detail" to list all the information and specified the "--usage" and "--usagePage" to try one by one. Eventually, I found the command that could be executed successfully. I hope the above information is helpful to you. The above content is translated by AI, and there may be some language errors. |
When using the device switch button on the MX Keys the MX Master 3 does not also switch devices or vice versa. Providing this option allows better swapping between devices.
The text was updated successfully, but these errors were encountered: