Coder Social home page Coder Social logo

ddc-tray's People

Contributors

jakeler avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ddc-tray's Issues

Check all ddcutil return codes and raise Exceptions

From ddcutil types header:

Most public ddcutil functions return a status code.
These status codes have 3 sources:

  • Linux
  • ADL (AMD Display Library)
  • ddcutil itself

These multiple status code sources are consolidated by "modulating"
the raw values into non-overlapping ranges.

  • Linux errno values are returned as negative numbers (e.g. -EIO)
  • ADL values are modulated by 2000 (i.e., 2000 subtracted from negative ADL status codes,
    or added to positive ADL status codes)
  • ddcutil errors are always in the -3000 range

In summary:

  • 0 always indicates a normal successful status
  • Positive values (possible with ADL) represent qualified success of some sort
  • Negative values indicate an error condition.

for ddc errors see ddcutil_status_codes.h

DDC backend selection

  • monitorcontrol: can't get capabilities or brightness, multiple errors
  • python-ddcci: works only for Acer mon, no EDID parsing or detection
    maybe edid with pyedid and smbus reading possible, but not reliable... detection is try and error?
  • ddcutil: reliable, all features. C lib needs some bindings with CFFI or Swig? or write in actual C++? or Rust with C bindings?

Automatic adjustments

Based on location sunset

  • select library, same as autoled?
  • menu toggle switch
  • main window settings: lat/long, min/max brightness, transition

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.