Currently here:
Currently here:
- Run the downloaded
ddmhkm.exe
to start the DDM Hotkey Manager. - In the DDM command-line parameters box, type
/1:SetActiveInput HDMI
. - Click in the Select system-wide-hotkey, and press the hotkey combination.
- Close the DDM Hotkey Manager.
- Exit & Restart the Dell Display Manager.
sudo bash
apt install ddcutil
cat <<EOF >/usr/share/polkit-1/actions/sh.fabi.pkexec.ddcutil.policy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="sh.fabi.pkexec.ddcutil">
<message>Authentication is required to run the ddcutil</message>
<icon_name>CHOOSEAGOODLOGO</icon_name>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/ddcutil</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">false</annotate>
</action>
</policyconfig>
EOF
cat <<EOF >/usr/share/polkit-1/rules.d/49-ddcutil_nopass_tony.rules
polkit.addRule(function(action, subject) {
if (action.id == "sh.fabi.pkexec.ddcutil" && subject.user == "tony") {
return polkit.Result.YES;
}
});
EOF
cat <<EOF >/usr/local/bin/switch-monitor-to-displayport.sh
#!/bin/bash
pkexec ddcutil setvcp 60 0x0f
EOF
chmod +x /usr/local/bin/switch-monitor-to-displayport.sh
Varies depending on Linux distro.
For Linux Mint:
- Open Keyboard Settings > Shortcuts > Custom Shortcuts
- Press Add custom shortcut button
- In the Name: box, enter something like
Switch Monitor To DisplayPort
- In the Command: box, enter
/usr/local/bin/switch-monitor-to-displayport.sh
- Press the Add button
- In the Keyboard bindings list, click on first
unassigned
slot - Press the hotkey combination