Keep/Scale Custom Resolution

Okay so I have been tinkering with custom resolutions and I can apply and use them on either of my screens, however whenever I shutdown or restart I have to re type the --newmode --addmode commands to get it to reappear in the resolution options. Its not too much to C+P every-time I decide to play games but it would be nice if I could make it permanent on reboot. Also if its possible to scale to aspect ratio rather than making the 4:3 res stretch to 16:9 as I cannot find any information on that in either the Manjaro Manual or the Arch Wiki.

These are the commands I use

cvt 1440 1080 120

xrandr --newmode "1440x1080_120.00" 276.00 1440 1560 1712 1984 1080 1083 1087 1160 -hsync +vsync

xrandr --addmode DisplayPort-2 1440x1080_120.00

Note: Using Mesa on Vega 56

Any help or pointers would be most appreciated <3
Thank you, Hope hope your day is wonderful :wink:

Make it a sh file and set it as executable.

#!/bin/bash

cvt 1440 1080 120 &
xrandr --newmode "1440x1080_120.00" 276.00 1440 1560 1712 1984 1080 1083 1087 1160 -hsync +vsync &
xrandr --addmode DisplayPort-2 1440x1080_120.00 &

call it for instance gaming.sh and place it to ~/.local/bin

If you want it to run at startup, create a gaming.desktop file for example and place it in ~/.config/autostart/ with this entry:

[Desktop Entry]
Comment[en_US]=
Comment=
Exec=gaming.sh
GenericName[en_US]=
GenericName=
Icon=system-run
MimeType=
Name[en_US]=
Name=
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Same you can create a user systemd service ... Here are a lot of examples

1 Like

THANK YOU!
Super helpful and is exactly what I was looking for!
Hope you have a wonderful day!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by