Summary of Linux Gaming Issues and Solutions

Civilization 6 cannot start#

Reason: Conflict between the game's built-in library and the system library, can be resolved by replacing it.

cd 'game installation directory'/GameGuide/lib
mv libfreetype.so.6 libfreetype.so.6.bak
cp /usr/lib/libfreetype.so.6 .

CS cannot start#

Reason: Valve has not updated the tcmalloc library, causing the game to not run properly. The solution is to copy a copy of libtcmalloc_minimal from "gperftools" to replace the game's built-in library.

Solution: Create a .sh file, copy and save the following code, and run it to solve the problem:

sudo dnf install -y gperftools-libs # Just in case we don't have the library yet.

sudo mkdir -p /usr/legacy/lib64
sudo ln -sf /usr/lib64/libtcmalloc_minimal.so.4.5.9 /usr/legacy/lib64/libtcmalloc_minimal.so.0
cd ~/.local/share/Steam/steamapps/common/Counter-Strike\ Global\ Offensive # Installation directory of CSGO
sed -i 's|export LD_LIBRARY_PATH="${GAMEROOT}"/bin:"${GAMEROOT}"/bin/linux64:$LD_LIBRARY_PATH|export LD_LIBRARY_PATH=/usr/legacy/lib64:"${GAMEROOT}"/bin:"${GAMEROOT}"/bin/linux64:$LD_LIBRARY_PATH|g' csgo.sh

Hollow Knight black screen crash#

Reason: Compatibility issue with the graphics library, can be resolved by forcing the use of OpenGL.
Solution: Add -force-openg to the startup options.

Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.