News for hackers. Stuff that matters.
Re:Display-switch: Turn a $30 USB switch into a full-feature... by bananasbandanas on Sunday December 19, 2021 @04:44AM (#29612631)
Couldn't display-switch send a keypress (something that doesn't do much otherwise, like F15) automatically?

You could probably get that result at the moment using the external command feature and something like xdotool (on Linux)

Re:Display-switch: Turn a $30 USB switch into a full-feature... by pm215 on Sunday December 19, 2021 @06:06AM (#29613020)
Yes, or send a fake mouse move. It does this already when running on Windows or OSX; there's an open issue for adding the Linux host support: https://github.com/haimgel/display-switch/issues/27

I reckon it's probably 25 or 30 lines or Rust if you make it use the uinput crate to create a fake input device and send a mouse-move event that way.