Zum Inhalt springen

Gaming with CachyOS Guide

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Welcome to the guide for Gaming in CachyOS. We’ll guide you through the essentials aspects on how to setup everything and have a great experience.

Prerequisites

Essential Packages

To make things easier for you, CachyOS has grouped all the necessary packages for gaming into one meta package that includes all the known stores and extras for gaming in Linux. This makes the installation and setup process for gaming faster and less convoluted for everyone.

Run the following command in a terminal
sudo pacman -S cachyos-gaming-meta

Steam

For Steam users, playing games on CachyOS is a breeze! Open Steam and follow the Proton guide and you’re ready to enjoy your games.

How to enable Proton support in Steam


/_astro/Steam1_Screenshot_20230907_071249.DHTD5FVa.png/_astro/Steam2_Screenshot_20230907_071521.DyGvi5I7.png/_astro/Steam3_Screenshot_20230907_072849.DkC3_rS1.png/_astro/Steam4_Screenshot_20230907_072236.BNYQngG5.png

Steam FAQ & Tips

Which Proton version should i use in Steam?

  • proton-cachyos Being the one that we build and maintain is highly recommended unless it has an issue with the game you want to play. Should work in most cases.
  • Proton Experimental Bleeding edge release from Valve If the game you want to play is relatively new or it doesn’t work well with the current Proton stable release or perhaps you saw people recommending it in ProtonDB.
  • Proton 9.0.3 or lower Stable releases from Valve. If the game you want to play only works in a previous Proton release.
  • Proton-GE Build made by GloriousEggroll in some cases it comes in handy.

What is proton-cachyos?

Check out this explanation about it.

How to properly set multiple launch options

The launch options in Steam are constructed using the following pattern

  • <env variables> <wrappers> %command% <application arguments>

    • <env variables>: These are options in the form of VARIABLE=value. For example PROTON_DXVK_D3D8=1 or DXVK_HUD="fps,memory,version,api"
    • <wrappers>: Applications and scripts that modify how the real application is run. Arguments to the wrapper usually go after the wrapper’s executable. For example mangohud --dlsym or gamescope -W 1680 -H 1050 -w 1280 -h 720 -S fit -F fsr --mangoapp --
    • %command%: This is the real application. This should be specified exactly as is and Steam will replace it with the proper command when the application is run.
    • <application arguments>: These are various arguments to the real application, and they depend on the application. For example -dx11 should go here if the application supports it.
  • Example: __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 prime-run game-performance %command% -dx11

Fix stuttering caused by the Steam Game Recorder Feature

Add the following launch option to your game
LD_PRELOAD="" %command%

Performance tips

Power Profile Switching on Demand

CachyOS provides a wrapper script game-performance which uses power-profiles-daemon to temporarily switch the current power profile to performance. The performance profile increases the system power levels and changes the CPU governor to performance.

When this script is used to run a game, the system will be set to use the performance profile as long as the game is running. The previously used power profile will be restored once the game is closed.

Feral’s GameMode has similar a behavior but it should not be used as CachyOS already ships with ananicy-cpp

How to add game-performance to Steam, Lutris, Heroic Games Launcher and Bottles

  1. Open your Steam Library
  2. Right click the game’s title and select Properties.
  3. On the General tab you’ll find Launch Options section.
  4. Add the following Launch Option:
    Terminal window
    game-performance %command%

Proton-CachyOS

Proton-CachyOS is based on Proton’s bleeding-edge branch and applies a number of modifications on top of it.

  • Wine-staging patches
  • Wine Fullscreen FSR
  • Includes video and audio codecs for game cutscenes
  • Support for umu-launcher including UMU-Protonfixes
  • Adds early hotfixes/workarounds for games

Additional configuration options

  • PROTON_NO_WM_DECORATION=1: Disables window decorations using the Linux window manager. It can fix issues with borderless fullscreen and the mouse clicking through the window.
  • PROTON_PREFER_SDL_INPUT=1: Enable to work-around issues with proper controller detection.

Wine-CachyOS

This is the same wine that is at the core of proton-cachyos, but as a standalone package, which can be used in Lutris, Heroic, Bottles and others.

  • All the Wine modifications included with Proton-CachyOS
  • Adds early hotfixes/workarounds for games

Additional configuration options

  • WINE_WMCLASS="<name>": Sets the WM_CLASS of all wine windows, allowing the window manager to control the Wine’s windows through rules.
  • WINEUSERSANDBOX=1: Disables the creation of symlinks from Wine user folders such as Documents/Pictures, to the equivalent folders in the user’s HOME directory
  • WINE_NO_WM_DECORATION=1: Disables window decorations using the Linux window manager. It can fix issues with borderless fullscreen and the mouse clicking through the window.
  • WINE_PREFER_SDL_INPUT=1: Enable to work-around issues with proper controller detection.

How to setup wine-cachyos-opt

Normally running /opt/wine-cachyos/bin/wine instead of just wine should be enough for an application to run using wine-cachyos-opt.

If a more strict configuration is required, it could look like this

Terminal window
export PATH="/opt/wine-cachyos/bin/:$PATH"
export WINEDLLPATH="/opt/wine-cachyos/lib/wine:/opt/wine-cachyos/lib32/wine:$WINEDLLPATH"
export LD_LIBRARY_PATH="/opt/wine-cachyos/lib/:/opt/wine-cachyos/lib32/:$LD_LIBRARY_PATH"

If you want to use winetricks with wine-cachyos-opt you can invoke it like this

Terminal window
WINE=/opt/wine-cachyos/bin/wine WINEPRFIX=<your prefix> winetricks <verb>

Bottles

Bottles is an application that allows you to easily manage Windows prefixes on your favorite Linux distributions.

Bottles can also make use of different runners like Lutris and are all manageable within the application. Bottles offers the option of a gaming-oriented prefix.

You can also install dependencies, add EXE files, and use their one-click installers for gaming-related apps like EA App or Battle.net.

How to install Bottles
# Open a terminal and run the following command:
sudo pacman -S bottles

If you want to know more about it, check out their documentation.

Lutris Introduction & Tips

Lutris serves as a central hub for all your games on CachyOS.

With Lutris, you can efficiently manage your game runners, including Wine, Proton, and emulators.

  • You can launch games through Lutris simply by clicking the Play button.
  • Add any game you want clicking the + sign in the top left.
  • Set up a store in the Sources at the left panel and connecting your account, it will then proceed to install said store, and then you’ll be able to run games from within the store, just like you do on Windows.
  • And more!

Games stores supported in Lutris

Setting up wine-cachyos Wine runner


/_astro/lutris-guide-1.w3vhvXhH.png/_astro/lutris-guide-2.BI1Icwul.png

Lutris FAQ

How can I add a parameter to a game?

  • Right-click on the game icon > Configure > Game options > Arguments > Add any argument you need.

Does game-performance work on Lutris?

How can I use wine-cachyos in Lutris?

  • In the Runner Options > Wine version it appears named as System 9.0 Staging Default

How can I setup umu-launcher with proton-cachyos in Lutris?

  1. In the main screen of Lutris, click on the cogwheel at the right of Wine
  2. Do the following changes in the Runner Options tab
    • Wine version = proton-cachyos
    • Use System winetricks = Disabled
    • Graphics
      • Enable DXVK = Enabled
      • Enable VKD3D = Enabled
      • Enable D3D Extras = Enabled
      • Enable DXVK-NVAPI / DLSS = Enabled
      • User-defined versions of DXVK, VKD3D and DXVK-NVAPI are not applied when using umu-launcher
  3. Go to the System options tab
    • Lutris
      • Disable Lutris Runtime = Enabled
      • Prefer system libraries = Enabled
  4. Scroll down to Game execution and look for the Environment variables table
  5. Add the following environment variables:
    • Key: UMU_NO_RUNTIME
      • Value: 1 if you are using umu-launcher 1.1.4 from CachyOS
    • Key: UMU_RUNTIME_UPDATE optional
      • Value: 0 skips Steam Linux Runtime updates for proton-cachyos
    • Key: PROTON_VERB optional
      • Value: waitforexitandrun allows protonfixes to work with a corresponding GAMEID
  6. Save changes.

Ray tracing Support

The Arch Wiki has already provides comprehensive instructions on how to enable ray tracing for various hardware platforms.

With this guide, you are now ready to start gaming on CachyOS. Enjoy!