Skip to content

Instantly share code, notes, and snippets.

@olivierlemoal
Last active April 9, 2021 09:26
Show Gist options
  • Save olivierlemoal/9a3bc17b3c5940aebfa9336296c00ff4 to your computer and use it in GitHub Desktop.
Save olivierlemoal/9a3bc17b3c5940aebfa9336296c00ff4 to your computer and use it in GitHub Desktop.

display-switch install and config

yay -S display-switch-git
  • doc : https://github.com/haimgel/display-switch
  • Note that the preferred way is to have this app installed on both computers. Switching "away" is problematic: if the other computer has put the monitors to sleep, they will switch immediately back to the original input.
groupadd i2c
usermod -aG i2c myusername
echo 'KERNEL=="i2c-[0-9]*", GROUP="i2c"' >> /etc/udev/rules.d/10-local_i2c_group.rules
udevadm control --reload-rules && udevadm trigger
printf "i2c-dev" > /etc/modules-load.d/i2c.conf

Config

Edit ~/.config/display-switch/display-switch.ini :

usb_device = "05e3:0610"
on_usb_connect = "Hdmi1"
# 
# on_usb_disconnect = "Hdmi2"

Manual debugging with ddcutil

pacman -S ddcutil
ddcutil detect
ddcutil --display 1 capabilities
ddcutil --display 1 getvcp 60
ddcutil --display 1 setvcp 60 0x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment