xrandr sometimes fails with "BadMatch", but mostly succeeds with exactly the same arguments
System info: kubuntu 22.04 running on NUC7PJYH2 connected to Samsung 65QN90B.
How to reproduce:
- set DE resolution to 4k.
- in terminal run
xrandr --output HDMI-1 --mode 1920x1080
--verbose
Result: most of the times it changes the resolution (although there's no sound anymore until restoring 4k resolution - but that'll be another issue) some times the screen stops getting a signal for a few seconds and when the signal returns, the screen is back to 4k resolution, and the following output is present in the terminal:
crtc 0: disable
screen 0: 1920x1080 506x285 mm 96.25dpi
crtc 0: 1920x1080 120.00 +0+0 "HDMI-1"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 21 (RRSetCrtcConfig)
Serial number of failed request: 51
Current serial number in output stream: 51