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
Edit ~/.config/display-switch/display-switch.ini
:
usb_device = "05e3:0610"
on_usb_connect = "Hdmi1"
#
# on_usb_disconnect = "Hdmi2"
pacman -S ddcutil
ddcutil detect
ddcutil --display 1 capabilities
ddcutil --display 1 getvcp 60
ddcutil --display 1 setvcp 60 0x11