So for linux (e.g. fedora):
dnf install ddcutil
ddcutil capabilities -d 1 # show the available commands
ddcutil setvcp 60 0x11 # for example switch to HDMI 1
# assign a global shortcut key to the `ddcutil setvcp` command you need
And for windows: - download the "Dell Display Manager" software from their support site
- assign a shortcut key in the Dell Display Manager: "Input Manager" tab => "Favourite Input Shortcut Key"
I used the same shortcut (Ctrl-Alt-ScrollLock) for both linux(kde)/windows #!/bin/bash
ddcutil setvcp 60 0x11
On my Windows guest desktop, I set up a shortcut for Dell Display manager to switch back to my Linux host and primary graphics card on my display's DisplayPort input "C:\Program Files (x86)\Dell\Dell Display Manager\ddm.exe" SetActiveInput DP
Trivial to set up and works great.I have a short script that will allow me to change input on a specific display. Very handy. However please note, that while this does work for HDMI, DVI and Displayport only DVI/HDMI seems to have an active connection when another input has been selected.
That means that while I can switch to another input I can not switch back from the same computer but must install something on the other machine to give it back. This is of course exactly what the linked article is doing, but with HDMI/DVI I don't have to have that requirement. And on top of that, operating systems in general seem to believe that, when using displayport, switching to another input is equivalent to disconnecting the display altogether and thus remove it and rearrange windows etc. Insanely frustrating.
Again, no problem with HDMI/DVI. So although Displayport is a much better interface and I've been a strong advocate for it, these issues makes me hate it with passion.
DDC can also be used to change display brightness, which in my opinion is way too cumbersome to do manually (especially if you have more than one display).
As well as Dell's 40" ultrawide, that also has the built-in KVM (there are not that many models that have the built-in KVM).
:~$ sudo ddcutil detect
Invalid display
I2C bus: /dev/i2c-1
EDID synopsis:
Mfg id: AUO
Model:
Serial number:
Manufacture year: 2009
EDID version: 1.3
DDC communication failed
This appears to be a laptop display. Laptop displays do not support DDC/CI.
Display 1
I2C bus: /dev/i2c-2
EDID synopsis:
Mfg id: DEL
Model: DELL U2415
Serial number: CFV9N94S0Y2S
Manufacture year: 2019
EDID version: 1.3
VCP version: 2.1Whoah. How do I obtain these ddc commands on macOS?