Skip to content

randr,modesetting,fission: Stop probing and spamming the logs.#117

Open
notbabaisyou wants to merge 2 commits into
SpaghettiFork:masterfrom
notbabaisyou:really-shut-up
Open

randr,modesetting,fission: Stop probing and spamming the logs.#117
notbabaisyou wants to merge 2 commits into
SpaghettiFork:masterfrom
notbabaisyou:really-shut-up

Conversation

@notbabaisyou

@notbabaisyou notbabaisyou commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Replaces #101

This change was done with help of AI, it's probably better than the previous one

@notbabaisyou notbabaisyou self-assigned this Jun 16, 2026
The modesetting and fission hotplug handlers called RRGetInfo(pScreen,
TRUE) unconditionally after detecting connector changes, even when no
connectors were added, removed, or had their link-status fixed.

Gate the RRGetInfo() call behind the existing 'changed' flag and a new
'link_fixed' flag that tracks whether any connector's BAD link-status
was repaired. When neither condition holds, there is nothing to report
to RandR clients and no reason to re-probe outputs.
…nged

Compare the new status from detect() against the previous
output->status before doing the full probe. If the status is
unchanged and modes are already probed, skip the get_modes() call (and its EDID read) entirely.
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

Successfully merging this pull request may close these issues.

1 participant