Code Monkey home page Code Monkey logo

Comments (4)

ids1024 avatar ids1024 commented on July 17, 2024

Using an array that fits 4 connectors instead of 3 seems to fix this.

Edit: The Linux kernel doesn't write encoders unless out_resp->count_encoders >= encoders_count. But what is the maximum encoders_count, if not 3?

from drm-rs.

ids1024 avatar ids1024 commented on July 17, 2024

Looking at the code in the kernel and the implementation in libdrm (_drmModeGetConnector), it seems like the correct way to is to call DRM_IOCTL_MODE_GETCONNECTOR with the counts set to 0 to get the lengths needed, then again with appropriately sized arrays. Then continue calling in a loop if the counts are different, since there could be a hotplug in between the ioctl calls.

This is probably needed in other places in drm-rs too. Fun.

from drm-rs.

Drakulix avatar Drakulix commented on July 17, 2024

I have addressed parts of this problem for modes already here: #121

I'll make sure to give encoders the same treatment.

from drm-rs.

Drakulix avatar Drakulix commented on July 17, 2024

Will hopefully be fixed by #124

from drm-rs.

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.