Coder Social home page Coder Social logo

Comments (2)

archisman-panigrahi avatar archisman-panigrahi commented on July 20, 2024

See I2C Device Permissions section in https://www.ddcutil.com/config_steps/

from brightness.

thardev avatar thardev commented on July 20, 2024

Hi @archisman-panigrahi

I'm experiencing a similar problem and I think it might be a bug 🤔
This is the output that I get when I run the ddcutil detect command for the first time with the correct permissions.
And then, as you can see, the built-in display is no longer detected.
Screenshot_20240626_182504
So after this happens, from what I understand of the implementation, xrandr is used to detect the number of displays, and when I run the xrandr --query command, as it is used here I correctly get two displays connected.
Screenshot_20240626_182851

So, I suspect that during the init of the app, xrandr detects two displays but ddcutil only one, so when the following variable is filled, it contains two displays.

self.displays = CDisplay.detect_display_devices()
self.no_of_displays = len(self.displays)
self.no_of_connected_dev = self.no_of_displays

Finally, when it reaches the following line, an error is thrown since the self.displayNames comes from ddcutil output not from xrandr.

for i in range(self.no_of_connected_dev):
self.ui.secondary_combo.addItem(self.displayNames[i])
self.ui.primary_combobox.addItem(self.displayNames[i])
pass

This is the error that I see on the logs.
Screenshot_20240626_183442

If needed I can create a separate issue for this.
Thank you very much for your work!

from brightness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.