Forums » Bugs
Linux - Can't set resolution by editing config.ini
I can't set my resolution by editing the xres and yres fields in the config.ini. It limits me to a very small subset of resolutions that my monitors can handle. If I set it to something above 1280x1024 it automatically scales it up to the maximum resolution my monitor arrangement supports (3840x3600). I am also using WIndowed mode.
This might very well be some sort of limitation in the Linux display drivers, but it seems kind of odd that it used to be possible to do this in the past, but not now.
I'm using the OpenGL Reference GKGL driver. The OpenGL 4 GKGL driver doesn't work for me.
This might very well be some sort of limitation in the Linux display drivers, but it seems kind of odd that it used to be possible to do this in the past, but not now.
I'm using the OpenGL Reference GKGL driver. The OpenGL 4 GKGL driver doesn't work for me.
but it seems kind of odd that it used to be possible to do this in the past, but not now.
- Do you have an idea of when this changed, exactly? Is this a recent thing, or a "for a long time" thing?
- Is this the 32bit or the 64bit Linux version?
- Do you have an idea of when this changed, exactly? Is this a recent thing, or a "for a long time" thing?
- Is this the 32bit or the 64bit Linux version?
I honestly couldn't say when it might have changed. Not only was I absent for around 7ish years, I never bothered trying to change it after I found one that worked. My hardware has also changed in the intervening time. There's also a chance I'm suffering from the Mandela Effect.
I've always used the 64bit client.
I included some output below from the errors.log and xrandr. The xrandr output suggests that many other resolutions should be available.
Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
Version: 4.6.0 NVIDIA 525.89.02
----------------------------------------------------------------
From errors.log
[Sun Feb 26 00:22:01 2023] Note: Didn't find exact match for 1920x1080x24.
[Sun Feb 26 00:22:01 2023] Here are the available modes:
[Sun Feb 26 00:22:01 2023] 0) 3840x3600x24
[Sun Feb 26 00:22:01 2023] 1) 1280x1024x24
[Sun Feb 26 00:22:01 2023] 2) 1280x1024x24
[Sun Feb 26 00:22:01 2023] 3) 1152x864x24
[Sun Feb 26 00:22:01 2023] 4) 1024x768x24
[Sun Feb 26 00:22:01 2023] 5) 1024x768x24
[Sun Feb 26 00:22:01 2023] 6) 800x600x24
[Sun Feb 26 00:22:01 2023] 7) 800x600x24
[Sun Feb 26 00:22:01 2023] 8) 1280x800x24
[Sun Feb 26 00:22:01 2023] 9) 1280x720x24
[Sun Feb 26 00:22:01 2023] and it picked mode 0
----------------------------------------------------------------
From xrandr -- output for my primary monitor.
DP-5 connected primary 2560x1440+1280+2160 (normal left inverted right x axis y axis) 553mm x 311mm
2560x1440 59.95*+
2048x1152 60.00
1920x1200 59.88
1920x1080 60.00 59.94 50.00 29.97 25.00 23.98 60.05 60.00 50.04
1680x1050 59.95
1600x1200 60.00
1280x1024 75.02 60.02
1280x720 60.00 59.94 50.00
1200x960 60.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
I've always used the 64bit client.
I included some output below from the errors.log and xrandr. The xrandr output suggests that many other resolutions should be available.
Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
Version: 4.6.0 NVIDIA 525.89.02
----------------------------------------------------------------
From errors.log
[Sun Feb 26 00:22:01 2023] Note: Didn't find exact match for 1920x1080x24.
[Sun Feb 26 00:22:01 2023] Here are the available modes:
[Sun Feb 26 00:22:01 2023] 0) 3840x3600x24
[Sun Feb 26 00:22:01 2023] 1) 1280x1024x24
[Sun Feb 26 00:22:01 2023] 2) 1280x1024x24
[Sun Feb 26 00:22:01 2023] 3) 1152x864x24
[Sun Feb 26 00:22:01 2023] 4) 1024x768x24
[Sun Feb 26 00:22:01 2023] 5) 1024x768x24
[Sun Feb 26 00:22:01 2023] 6) 800x600x24
[Sun Feb 26 00:22:01 2023] 7) 800x600x24
[Sun Feb 26 00:22:01 2023] 8) 1280x800x24
[Sun Feb 26 00:22:01 2023] 9) 1280x720x24
[Sun Feb 26 00:22:01 2023] and it picked mode 0
----------------------------------------------------------------
From xrandr -- output for my primary monitor.
DP-5 connected primary 2560x1440+1280+2160 (normal left inverted right x axis y axis) 553mm x 311mm
2560x1440 59.95*+
2048x1152 60.00
1920x1200 59.88
1920x1080 60.00 59.94 50.00 29.97 25.00 23.98 60.05 60.00 50.04
1680x1050 59.95
1600x1200 60.00
1280x1024 75.02 60.02
1280x720 60.00 59.94 50.00
1200x960 60.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
The xrandr output suggests that many other resolutions should be available.
Yeah, mode detection was historically kind of a trainwreck on Linux. I don't know what the state is like now, we'll have to revisit it to see what "works more commonly" these days.
- What Linux variant / version are you using?
- What X.Org version?
I assume you're probably running something recent, but it's good to know exactly what.
Yeah, mode detection was historically kind of a trainwreck on Linux. I don't know what the state is like now, we'll have to revisit it to see what "works more commonly" these days.
- What Linux variant / version are you using?
- What X.Org version?
I assume you're probably running something recent, but it's good to know exactly what.
I'm currently using
openSUSE Leap 15.4
kernel: 5.14.21-150400.24.38-default x86_64
xorg-x11-server: 1.20.3-150400.38.13.1
openSUSE Leap 15.4
kernel: 5.14.21-150400.24.38-default x86_64
xorg-x11-server: 1.20.3-150400.38.13.1
I wonder if there's any news about this. I'd like to be able to hardcode 1920x1080 in windowed mode, as the offered resolutions aren't useful for me. It'a frankly keeping me from playing and I'd like to give the game a solid try.
Debian 11 (Bullseye), AMD Ryzen 5 5600X, nVidia 1660S with the proprietary drivers.
Debian 11 (Bullseye), AMD Ryzen 5 5600X, nVidia 1660S with the proprietary drivers.
We currently use the XF86VidMode extension to enumerate available resolutions. Is it possible for you to add resolutions to some X config file(s)?
In the config.ini file there should be a [refgl] section.
Try adding/changing these settings to force windowmode at whatever resolution you want:
[refgl]
xf86vidmode=0
xsize=1920
ysize=1080
windowmode=1
Try adding/changing these settings to force windowmode at whatever resolution you want:
[refgl]
xf86vidmode=0
xsize=1920
ysize=1080
windowmode=1
That worked.
Thank you, raybondo.
Thank you, raybondo.