Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lamyergeier opened this issue Apr 11, 2022 · 1 comment
Open

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

lamyergeier opened this issue Apr 11, 2022 · 1 comment

Comments

@lamyergeier
Copy link

lamyergeier commented Apr 11, 2022

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

@lukelex
Copy link
Owner

lukelex commented May 30, 2022

I'll give this a try this weekend. Thanks for taking the time to report it ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants