You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its because monitors=$(sudo ddcutil detect | grep "I2C bus" | grep -o .$); last_monitor=$(echo $monitors | grep -o .$), here last_monitor is laptop screen which is not supported by ddcutil.
Solution
Instead of sudo ddcutil detect | grep "I2C bus" use
In dotfiles/monitors at master · lukelex/dotfiles,
monitors brightness get
always gives 0!Its because
monitors=$(sudo ddcutil detect | grep "I2C bus" | grep -o .$); last_monitor=$(echo $monitors | grep -o .$)
, here last_monitor is laptop screen which is not supported by ddcutil.Solution
Instead of
sudo ddcutil detect | grep "I2C bus"
usesudo ddcutil detect | sed -r -n -e "/Display [0-9]+/{n;s/I2C bus(.*)/\1/p;}"
Refer
The text was updated successfully, but these errors were encountered: