Created
November 24, 2024 17:10
-
-
Save suspiciousRaccoon/4c607db0f3d8183934cd0dd08709a45b to your computer and use it in GitHub Desktop.
Wayland - Change monitor Brightness, Contrast and RGB values with ddcutil
This file contains hidden or 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
# | |
# ddcutil https://www.ddcutil.com/ | |
# | |
# If you don't like commands there's a GUI available too: https://www.ddcutil.com/#ddcui | |
# 1 Getting our monitors | |
ddcutil detect | |
# This will return the monitors detected by ddcutil, we need this first in case we only want to change a single monitor | |
# This will also tell us if the monitor is detected, and if it is valid | |
# https://www.ddcutil.com/command_detect/ | |
# 2 Getting monitor values | |
ddcutil getvcp color --display 1 # replace with number of desired display | |
# This will return the current values of the display for the group "color" | |
# https://www.ddcutil.com/command_getvcp/ | |
# There are more groups available besides "color" | |
# https://www.ddcutil.com/feature_selection/ | |
# We can also get values by feature | |
ddcutil getvcp 10 --display 1 # replace with number of desired display | |
# This will return the value of Brightness (10) on the 1st display | |
# Full list: | |
# https://www.ddcutil.com/vcpinfo_output/ | |
# Or run | |
ddcutil vcpinfo --brief | |
# 3 Changing monitor values | |
ddcutil setvcp 10 50 --display 1 # replace with number of desired display | |
# This will set the Brightness (10) on the first display to 50 | |
# A few more useful feature codes: | |
# 10: Brightness | |
# 12: Contrast | |
# 13: Backlight control | |
# 14: Video gain: Red | |
# 16: Video gain: Green | |
# 18: Video gain: Blue | |
# 6B: Backlight level: White | |
# 6C: Video black level: Red | |
# 6D: Backlight Level: Red | |
# 6E: Video black level: Green | |
# 6F: Backlight level: Green | |
# 70: Video black level: Blue | |
# 71: Backlight Level: Blue | |
# https://www.ddcutil.com/colormgt/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment