Introduction
This article aims to provide a solution for an issue where Wine games automatically change the screen resolution when running on a Linux kernel 5.15 old laptop. The article focuses on accepting the default resolution instead of the one that gets loaded.
Background
Wine is a compatibility layer capable of running Windows applications on various operating systems, including Linux. With the release of Linux kernel 5.15, some users reported an issue where Wine games would change the screen resolution without their consent. This behavior can be frustrating, especially when using an old laptop with limited hardware resources.
Symptoms
The following are the symptoms of the screen resolution buffer issue with Wine games on Linux kernel 5.15 old laptops:
- Automatically changing screen resolution when running Wine games
- Inability to set the desired screen resolution manually
- Poor game performance due to resolution changes
Cause
The exact cause of this issue is not clear, but it is believed to be related to the interaction between the Linux kernel, Wine, and the specific graphics driver being used.
Solution
To accept the default screen resolution when running Wine games on Linux kernel 5.15 old laptops, follow these steps:
- Open the terminal application.
- Type the following command and press Enter:
- Restart the computer.
- Install Wine, if not already installed. Run the following command and press Enter:
- Run the Wine game, and the default screen resolution should be accepted.
echo 'option "dwm_driver" "vesa"' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf
This command sets the graphics driver to VESA, which is known to work well with Wine and does not change the screen resolution.
sudo apt install wine
Alternative
An alternative solution is to use a different graphics driver that does not change the screen resolution when running Wine games. Some users have reported success with the Gallium3D driver.
To install the Gallium3D driver, follow these steps:
- Add the PPA repository:
- Update the package index:
- Install the Gallium3D driver:
- Run the Wine game, and the default screen resolution should be accepted.
sudo add-apt-repository ppa:ubuntu-x-swat/ppa
sudo apt update
sudo apt install gallium0.4-mesa-dri gallium0.4-mesa-dri-lts gallium0.4-mesa-dri-vdpau
Conclusion
In conclusion, the screen resolution buffer issue with Wine games on Linux kernel 5.15 old laptops can be resolved by setting the graphics driver to VESA or installing the Gallium3D driver. By following the steps outlined in this article, users should be able to accept the default screen resolution when running Wine games, ensuring better performance and a more enjoyable gaming experience.