Introduction
Linux users who run Wine games on older laptops with Linux Kernel 5.15 might encounter an issue where the screen resolution changes automatically during gameplay. This behavior can be disruptive and affect the gaming experience. In this article, we will discuss the possible causes and solutions for this issue.
Causes
The automatic screen resolution change in Wine games on Linux Kernel 5.15 can be caused by several factors. One common reason is a mismatch between the game's expected resolution and the actual display resolution. Another reason could be a conflict between the Wine configuration and the X11 settings.
Solutions
Accept Default Resolution
The easiest solution is to accept the game's default resolution. This can be done by adding the following command-line option when starting the game:
wine .exe WINEDLLOVERRIDES="d3d11=n,builtin" WINECONFIG="desktop_resolution="
Replace
with the desired screen resolution. For example:
wine StarCraft.wine WINECONFIG="desktop_resolution=1024x768"
Manual Configuration
If accepting the default resolution does not work, you can try manual configuration of the Wine settings. This can be done by editing the Wine configuration file:
$ winecfg
In the "Graphics" tab, you can set the desktop resolution and the maximum resolution for the games. Try setting both to the desired resolution and test the game.
X11 Settings
If the issue persists, you might need to check the X11 settings. Open the X11 configuration file:
$ xrdb -edit .Xresources
Add the following lines:
Wine.LXSession.Desktop.Wine.WineConfiguration.Graphics.DesktopResolution:
Wine.LXSession.Desktop.Wine.WineConfiguration.Graphics.MaxDesktopResolution:
Replace
Summary
In this article, we discussed the issue of automatic screen resolution changing in Wine games on Linux Kernel 5.15 and provided solutions for this problem. We covered accepting the default resolution, manual configuration of Wine settings, and X11 settings.