Skip to content

fix(kms): run modesetting after the surface is resized #272

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

esposm03
Copy link

When the user called Surface::resize with the kms backend, no modesetting was done. At least on the devices I tested with, this made the page flips fail, returning EBUSY. This is now fixed by calling set_crtc inside the resize function.

Additionally, I made the drm example request the UniversalPlanes ClientCapability, since that allows the example to run on less powerful devices that don't have any overlay planes (Unless the client sets that capability, the kernel only returns overlay frames from the Device::plane_handles() call).

Fixes #271.

esposm03 added 3 commits June 20, 2025 10:30
Without setting the UniversalPlanes capability, only planes with PlaneType::Overlay are returned by the kernel. This commit allows the example to run on devices that don't have any of those, but have at least one Primary plane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

DRM: example fails to page flip with EBUSY
1 participant