Skip to content

[XLibre and Xorg] Xrandr calls to X server cause stutters. #2109

@itz-me-zappex

Description

@itz-me-zappex

Select the version

Git master branch

Describe your issue

Running xrandr command causes stutters, probably when it asks X server for an information. Same happens with Redshift, it seems it makes calls to randr, and that causes stuttering every 5 seconds when it adjusts gamma ramps on background. I should note that Redshift does not cause such great stutters as xrandr, but still does.

Steps to reproduce

  1. Run any application (e.g. glxgears, vkcube, game etc.) with mangohud or somehow else to see frametime graph.
  2. Open terminal and run xrandr (xrandr -q) or xrandr -v. Both make calls to X server.
  3. Run any other command in terminal, e.g. touch test and rm test, to make sure this is not caused by terminal emulator.

What did you expect?

I guess X server should not lock everything when handle randr calls and stutters should not happen.

Additional Information

Compiled against cb5f2cd (latest commit currently) + this.

Distro: Artix Linux
DE/WM: BSPWM
Compositor: Picom (can reproduce with it disabled)
GPU: noVideo GTX 1050Ti, 580.126.18 (proprietary, not open kernel modules one)
X: XLibre

UPD: Reproduced the same on following (laptop):
Distro: Arch Linux
DE/WM: Cinnamon + Muffin
Compositor: Built into Muffin
GPU: UHD 600 (i915, modesetting in xorg.conf)
X: X.org

Video:
https://github.com/user-attachments/assets/69830b4e-435d-47e7-be84-874616546d4f

Please look at commands I run and frametime graph, there is stutter when xrandr obtains info about server-side version or when it gets monitor list, resolutions, refresh rates etc.

Extra fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageThis needs to be reviewed and categorized.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions