gbmonctl icon indicating copy to clipboard operation
gbmonctl copied to clipboard

How do I help find new settings for gbmonctl?

Open sigboe opened this issue 2 years ago • 5 comments

Is there any instructions for how to find new settings?

sigboe avatar Jul 09 '22 09:07 sigboe

https://gist.github.com/wadimw/4ac972d07ed1f3b6f22a101375ecac41

This thread has some information

kelvie avatar Jul 09 '22 17:07 kelvie

Or maybe there isn't. The crux of it is that you need to use Wireshark to capture the USB traffic and reverse-engineer it, and look for patterns.

If you can read the code, you can sort of see the message format.

kelvie avatar Jul 09 '22 23:07 kelvie

Got it, install wireshark on host, install Windows in a VM, move keyboard and mouse directly to the host, passthrough the USB hub of the monitor, install osd side kick, start wireshark session, try to capture packages...

Anyway, FYI my monitor is M34WQ, and all of the commands I tried worked! Also a quick question, is it possible to issue a KVM toggle signal? I intend to run the KVM between my work linux machine and my personal linux machine, and I want to use hotkeys to switch with the same script on both as I have the same dotfiles. Or is -prop kvm-switch -val 1 a toggle, or do I need to read the kvm value and pick the other one?

sigboe avatar Jul 10 '22 10:07 sigboe

@sigboe I don't recall, though it should be pretty easy to test :)

In general you can send both values, though, as with the KVM, your USB connection should be connected to the currently switched device.

kelvie avatar Jul 12 '22 18:07 kelvie

I'm actually back at work now, so I don't actually use the KVM functionality much anymore (this is my home monitor), but my experience was that it had been flaky and I actually have a smart outlet attached to power-cycle the monitor when the KVM doesn't "hit" using a script.

kelvie avatar Jul 12 '22 18:07 kelvie