You are not logged in.

#1 2023-07-28 16:32:44

rebelCoderX
Member
Registered: 2023-07-28
Posts: 1

Setting undetected resolution with xrandr help needed

Hello.

Issue: Monitor is DELL u2715h (2560x1440@60), but older hardware seems to not detect that resolution, when this monitor is connected via the HDMI. I remember using xrandr commands to add and set the custom resolution and making a script that runs on startup. Now, I have a mini-PC (ASUS VIVOPC VM60 Mini Tiny PC i5-3337U 1.8GHz), and it seems to have Intel HD 3rd edition video chip, and xrandr fails to add/set the new/custom resolution.

I have tried EVERY combination ChatGPT generated and what I found online.

One example:

# Step 1: Generate the new mode using 'cvt'`
cvt 2560 1440 60

# Step 2: Add the new mode to HDMI-1 using 'xrandr'
xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync
xrandr --addmode HDMI-1 2560x1440_60.00

# Step 3: Apply the new resolution to HDMI-1
xrandr --output HDMI-1 --mode 2560x1440_60.00

Another example:

cvt 2560 1440 60 && \
xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync && \
xrandr --addmode HDMI-1 2560x1440_60.00 && \
sleep 1 && \
xrandr --output HDMI-1 --mode 2560x1440_60.00

Device name is correct: HDMI-1

No matter what, the following command always generates an error:

xrandr --newmode 2560x1440  311.83  2560 2744 3024 3488  1440 1441 1444 1490  -HSync +Vsync

Error:

X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  30
  Current serial number in output stream:  30

I found some vague info, that that video chip driver is a problem.
Any help with any other ideas would be much appreciated.

Thanks.

Offline

#2 2023-07-28 18:27:13

xerxes_
Member
Registered: 2018-04-29
Posts: 1,061

Re: Setting undetected resolution with xrandr help needed

Did you saw examples section in manual page of xrandr? Also see:
https://wiki.archlinux.org/title/Xrandr
https://stackoverflow.com/questions/851 … -not-exist
https://github.com/kbumsik/VirtScreen/issues/33

Last edited by xerxes_ (2023-07-28 18:28:37)

Offline

Board footer

Powered by FluxBB