Created
October 29, 2022 19:14
-
-
Save vrendina/87b476ffc88afa34b75b3c250d5dc91c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Detect supported devices | |
# ddccontrol -p | |
LEFT_MONITOR=dev:/dev/i2c-8 | |
RIGHT_MONITOR=dev:/dev/i2c-6 | |
# Read all possible controls for the monitor | |
#ddccontrol -d $LEFT_MONITOR | |
# Set brightness value for each monitor | |
#ddccontrol -r 0x10 -w 75 $LEFT_MONITOR | |
#ddccontrol -r 0x10 -w 75 $RIGHT_MONITOR | |
# Query the current input source | |
#ddccontrol -r 0x60 $RIGHT_MONITOR | |
# 15 = Display port | |
# 16 = Mini display port | |
# 17 = HDMI 1 (MHL) | |
# 18 = HDMI 2 (MHL) | |
ddccontrol -r 0x60 -w 15 $RIGHT_MONITOR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment