Skip to content

Brightness value of external monitor is always shown as 0! #2

@lamyergeier

Description

@lamyergeier

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" use

sudo ddcutil detect | sed -r -n -e "/Display [0-9]+/{n;s/I2C bus(.*)/\1/p;}"

Refer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions