<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Am 26.08.21 um 18:45 schrieb Alex
Deucher:<br>
</div>
<blockquote type="cite"
cite="mid:CADnq5_PrkEQCpKKWY8QhOqWZ_jxK3vabSjxwRW-+MFnm3Rgs2w@mail.gmail.com">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-unicode">
<pre class="moz-quote-pre" wrap="">On Thu, Aug 26, 2021 at 12:35 PM Paul <a class="moz-txt-link-rfc2396E" href="mailto:pb.g@gmx.de" moz-do-not-send="true"><pb.g@gmx.de></a> wrote:
</pre>
<blockquote type="cite" style="color: #007cff;">
<pre class="moz-quote-pre" wrap="">Hi there
Out of curiosity I would like to ask if it is possible to set a kernel command line parameter for my Radeon 6900XT
that sets a specific resolution and refresh rate of a specific connected monitor.
Ideally this parameter is set to the monitors used desktop (X11, Wayland) resolution/refreshrate.
I did this for years with my Intel IGP's. I appended:
video=HDMI-A-1:1920x1080@50
to the kernel command line. This worked beautifully and the result was my monitor was preconfigured to a specific resolution and refresh
rate from the first lines of the kernel to the desktop (X11) and it did not had to switch to anything else in between.
Another nice side effect is when in X11 one switches to the console, or vice versa, via STRG+Fx, pretty much everyone has this annoying delay because
the monitor has to switch between refresh rates again. With that preconfigured settings at boot this gave a very satisfying feeling, especially if one frequently
switches between console and X11 (or wayland maybe).
Is this kind of parameter implemented in the kernel/amdgpu driver?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">It works the same for all drivers. Just make sure the connector name
is correct.
Alex
</pre>
</div>
</blockquote>
<br>
Thank you, it works.<br>
I just want to mention that I had to look in "/sys/class/drm/" for
the correct connector naming. Connector names shown by xrandr are
different: <br>
<br>
ls /sys/class/drm/ | grep card0-<br>
card0-DP-1 # DP-1<br>
card0-DP-2 # DP-2<br>
card0-DP-3 # DP-3<br>
card0-HDMI-A-1 # HDMI-A-1<br>
<br>
vs.<br>
<br>
xrandr | grep connected | awk '{print $1}'<br>
DisplayPort-0<br>
DisplayPort-1<br>
DisplayPort-2<br>
HDMI-A-0<br>
</body>
</html>