Problems when setting a second's monitor resolution

unknown.srs

New Member
Joined
May 18, 2024
Messages
1
Reaction score
0
Credits
14
I am using my tv as a second monitor and i'm trying add it's resolution for the "perfect fit", but when i'm trying to add it's resolution i get this error message

"
xrandr --addmode HDMI-0 "1848x1036_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: 53
Current serial number in output stream: 54
"

any ideas on how can i solve this?
 


run
xrandr -q
The above command will list all your devices and modes. then run
cvt 1848 1036
should get an output something like
# 1848x1036 59.93 Hz (CVT) hsync: 64.42 kHz; pclk: 159.25 MHz
Modeline "1848x1036_60.00" 159.25 1848 1968 2160 2472 1036 1039 1049 1075 -hsync +vsync

now you can add the modeline
sudo xrandr --newmode "1848x1036_60.00" 159.25 1848 1968 2160 2472 1036 1039 1049 1075 -hsync +vsync
Now we add the mode to the monitor, in this case it is LVDS-1 - Note the LVDS-1 came from running xrandr -q in first step

sudo xrandr --addmode LVDS-1 "1848x1036_60.00"
finally, we set the resolution with the command
sudo xrandr --output LVDS-1 --mode 1848x1036_60.00
The changes are lost after reboot, to set up the resolution persistently, create the file ~/.xprofile with the content:

#!/bin/sh
xrandr --newmode "1848x1036_60.00" 159.25 1848 1968 2160 2472 1036 1039 1049 1075 -hsync +vsync
xrandr --addmode LVDS-1 "1848x1036_60.00"

save the file and exit
 

Staff online


Latest posts

Top