xrandr "X Error of failed request: BadMatch (invalid parameter attributes)"

Poet5526

New Member
Joined
Jan 15, 2024
Messages
6
Reaction score
3
Credits
61
I want to add 1920x1080 resolution but I get this error;

:~$ xrandr
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 16384 x 16384
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
VGA-0 connected 1600x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00 +
1600x900 59.82*
1400x900 59.88
1368x768 59.88 59.85
1280x800 59.91 59.81
1280x720 59.86 59.74
1024x576 59.90 59.82
960x540 59.82 59.63
864x486 59.92 59.57
800x600 72.19 60.32 56.25
800x450 59.82
700x450 59.88
684x384 59.88 59.85
640x480 59.94
640x400 59.98 59.88
640x360 59.86 59.83
512x384 60.00
512x288 60.00 59.92
480x270 59.82 59.63
432x243 59.92 59.57
400x300 72.19
320x240 60.05
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
:~$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
:~$ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
:~$ xrandr --addmode VGA-0 "1920x1080_60.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 29
Current serial number in output stream: 30
 


This line looks odd because of the "16384x16384" which is rather large resolution :)
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 16384 x 16384
The xrandr output looks like it's telling you that the highest resolution of your monitor screen it can detect is 1600x900, so a value higher is not likely to be able to be applied by X, despite what cvt says.
 
Last edited:
After reading through the man page for xrandr I thought is was helpful.
These 2 commands showed the defaults for me but didn't show the name of the monitor.

Code:
xrandr --listmonitors

Code:
xrandr --listactivemonitors

Also the man page for xrandr says:

Code:
       --fb widthxheight
              Reconfigures the screen to the specified size. All configured monitors must fit within this size. When this option is not  provided,  xrandr
              computes the smallest screen size that will hold the set of configured outputs; this option provides a way to override that behaviour.

What monitor do you have?
 
This line look odd because of the "16384x16384" which is rather large resolution :)

The xrandr output looks like it's telling you that the highest resolution of your monitor screen it can detect is 1600x900, so a value higher is not likely to be able to be applied by X, despite what cvt says.
Looking at these 2 lines:
Code:
:~$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz

Confirms what you said, however; there is a pound sign in front of the 1920x1080 resolution.
Can that be un-commented in the Xorg file?
 
After reading through the man page for xrandr I thought is was helpful.
These 2 commands showed the defaults for me but didn't show the name of the monitor.

Code:
xrandr --listmonitors

Code:
xrandr --listactivemonitors

Also the man page for xrandr says:

Code:
       --fb widthxheight
              Reconfigures the screen to the specified size. All configured monitors must fit within this size. When this option is not  provided,  xrandr
              computes the smallest screen size that will hold the set of configured outputs; this option provides a way to override that behaviour.

What monitor do you have?
21.5" WLED Monitor casper model no: M2289A
 
I
21.5" WLED Monitor casper model no: M2289A
I tried to find your monitors manual.
Unfortionately I could only find the casper manual for the
P227DPU
P227DP

Do you have the manual for your monitor?
 
According to the specification of the monitor here:
which is as close as appeared here searching online, the monitor is apparently capable of 1920x1080.

As shown in the output in post #1, xrandr doesn't see the 1920x1080 resolution, so has been unable to apply it. That's a problem because it suggests that X doesn't see the resolution. That can be checked directly by checking the Xorg.0.log file which may be located at /var/log/Xorg.0.log, or ~/.local/share/Xorg/xorg.0.log. All the modes X sees will be present in that file. It's wise to check the date of that log file so that you can see the values of the current boot.

If by chance the 1920x1080 is present in the Xorg.0.log file, then it's possible to force the resolution through a configuration snippet as shown under section 4.3 on this webpage:

However, since you have tried to use xrandr unsuccessfully as proposed in 4.2 on that webpage, then you may be looking at needing to go to a lower level to try and fix the matter. For that, you may get help by following the link on that webpage to:
and a further link from this latter page to "upstream documentation". At this level, the issue gets quite involved with the need to have the kernel source and headers for the current kernel installed to be able to do what's needed. Perhaps have a read of the material and see whether you wish to go down that path.
 
X Error of failed request: BadMatch (invalid parameter attributes)
I've found that if you add this line:

Option "UseEDID" "FALSE"

to your xorg.conf file usually located here (etc/X11/xorg.conf) at the monitor section and then reboot, it will give you a bunch of new resolutions and the possibility to finally add your custom resolutions using xrandr without giving the error of the above.

See here - https://download.nvidia.com/XFree86/Linux-x86_64/396.51/README/xconfigoptions.html
 
I've found that if you add this line:

Option "UseEDID" "FALSE"

to your xorg.conf file usually located here (etc/X11/xorg.conf) at the monitor section and then reboot, it will give you a bunch of new resolutions and the possibility to finally add your custom resolutions using xrandr without giving the error of the above.

See here - https://download.nvidia.com/XFree86/Linux-x86_64/396.51/README/xconfigoptions.html
Thanks for sharing the fix.
If you get a new kernel do you have to go back and re-edit the Xorg.conf?
 

Staff online


Top