by alanbernstein · 3y ago · 0 comments
However, what I really want is just to be able to switch the input via command line. I know that there is a protocol that supposedly allows this (ddc?), But it seems that support for it is not standardized. This means the feature I want can't be found in the product specs.
So my question: what's a monitor I can buy that will allow me to switch inputs by command line? (Ideally 4k)
I also keep a public monitor database here where you can check if a specific monitor usually works with DDC or not: https://db.lunar.fyi/
The problem with LG is that they report very generic names so they can't be filtered well in the database. You can see what I mean with this query:
SELECT DISTINCT ON ("DisplayProductID")
name, ddc,
"resolutionString",
"refreshString",
"dotsPerInch",
"isHiDPI",
"isRetina",
"DisplayProductID"
FROM
displays
WHERE
ddc AND "is4K" AND width IS NOT NULL
AND NOT "kCGDisplayIsVirtualDevice" AND NOT "isAirPlayDisplay" AND NOT "isTV"
AND "DisplayProductID" != 0 AND name NOT LIKE 'Unknown Display%' -- Filter out those in a semi-connected state
AND name LIKE 'LG%' AND "DisplayProductName" LIKE 'LG%'
ORDER BY
"DisplayProductID" DESC
LIMIT 10;
Also keep in mind that the GPU used and the hub/dock/adapter can affect this, so aim for as few indirections as possible. A direct connection is almost always the best.FYI, I originally learned about this stuff via https://haim.dev/posts/2020-07-28-dual-monitor-kvm/.
I sometimes want independent control of the keyboard switch and the monitor switch, so I'm not sure if a KVM is the best option for me.