Difference between revisions of "Steam"

From ArchWiki
Jump to: navigation, search
(Crusader Kings II: these are not dependencies)
(General troubleshooting)
Line 87: Line 87:
====Text is corrupt or missing====
====Text is corrupt or missing====
The Steam support [https://support.steampowered.com/kb_article.php?ref=1974-YFKL-4947 instructions] for Windows seem to work on Linux also: Simply download [https://support.steampowered.com/downloads/1974-YFKL-4947/SteamFonts.zip SteamFonts.zip] and install them (copying to ~/.fonts/ works at least).
The Steam support [https://support.steampowered.com/kb_article.php?ref=1974-YFKL-4947 instructions] for Windows seem to work on Linux also: Simply download [https://support.steampowered.com/downloads/1974-YFKL-4947/SteamFonts.zip SteamFonts.zip] and install them (copying to ~/.fonts/ works at least).
====Black Screen on (Valve?) Games (but has audio)====
Check the Steam stdout/stderr for Error lines, some quick dependencies for reference:
* {{pkg|libgles}}
* {{pkg|lib32-libgles}}
* {{pkg|lib32-intel-dri}} [ not confirmed as absolutely necessary ]
=== Game-specific depencencies and troubleshooting ===
=== Game-specific depencencies and troubleshooting ===

Revision as of 08:45, 17 February 2013

zh-CN:Steam Template:Article summary start Template:Article summary text

Template:Article summary heading Template:Article summary wiki Template:Article summary end

See the Steam Wikipedia page and the page in the Wine Application Database for more info.


Native Steam on Linux

Note: Arch Linux is not officially supported.
Note: If you have a pure 64-bit installation, you will need to enable the multilib repository in pacman. This is because the Steam client is a 32-bit application. It may also make sense to install multilib-devel to provide some important multilib libraries. You also most likely need to install the 32-bit version of your graphics driver to run Steam.

Install steam from the multilib repository.

Steam makes heavy usage of the Arial font. A decent Arial font to use is ttf-liberation or the official Microsoft Arial fonts: ttf-microsoft-arialAUR or ttf-ms-fontsAUR packages from the AUR. Asian languages require wqy-zenhei to display properly.

Steam is not supported on this distribution. As such some fixes are needed on the users part to get things functioning properly. Several games have dependencies which may be missing from your system. If a game fails to launch (often without error messages) then make sure all of the libraries listed below that game are installed. (Please help us expand on this list)

General troubleshooting

Note: In addition to being documented here, any bug/fix/error should be, if not already, reported on Valve's bug tracker on their GIT page.
Note: Connection problems may occur when using DD-WRT with peer-to-peer traffic filtering.

GUI problems with KDE

If you are using KDE and you have problems with the GUI (such as lag or random crashes) modify the compositing type to OpenGL/Raster. So don't use the XRender!

The Close Button Only Minimizes the Window

If you have your tray icon working you have the option of making the close button close to tray instead of minimize. To do this simple set the environment variable STEAM_FRAME_FORCE_CLOSE to one. You can do this by launching steam using the following command.


For more information on this work around see the related bug report for details.

Flash not working on 64-bit systems

First ensure lib32-flashplugin is installed.

Then create a local Steam flash plugin folder

mkdir ~/.steam/bin32/plugins/

and set a symbolic link to the global lib32 flash plugin file in your upper new folder

ln -s /usr/lib32/mozilla/plugins/libflashplayer.so ~/.steam/bin32/plugins/

Mouse Cursor Overwritten

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: This issue is supposed to be fixed: https://github.com/ValveSoftware/steam-for-linux/issues/2 . (Discuss in Talk:Steam#)

Steam overwrites the X11 Cursor theme when it launches. This is a problem with Gnome and other WMs/DMs that do not set a cursor theme. You can overcome this for Gnome by setting a mouse cursor theme.

To fix this issue, become root and put the following into /usr/share/icons/default/index.theme (creating the directory /usr/share/icons/default if necessary):

[Icon Theme]

Note: Instead of "Adwaita", you can choose another cursor theme (e.g. Human). Alternatively, you can install gnome-cursors-fixAUR from the AUR.

Alternatively, you can create a symlink ~/.icons/default that points to the entry for your cursor in /usr/share/icons, for example:

   mkdir -p ~/.icons
   ln -sT /usr/share/icons/Neutral_Plus ~/.icons/default

If the cursor gets stuck pointing in the wrong direction after exiting Steam, a workaround is to run xsetroot -cursor_name left_ptr (From the awesomewm wiki).

If a cursor theme is set and Steam is still causing cursor problems then your cursor theme may not have the cursors under the names that Steam is looking at, for example KDE's cursor theme, Oxygen_White, the file for the cursor is 'left_ptr' but Steam is looking for 'arrow'. The simplest solution is to make symlinks to the appropriate cursor files.

   cd /usr/share/icons/Oxygen_White/cursors/
   ln -s ./left_ptr ./arrow
   ln -s ./size_fdiag ./bottom_right_corner
   ln -s ./size_fdiag ./top_left_corner
   ln -s ./size_bdiag ./bottom_left_corner
   ln -s ./size_bdiag ./top_right_corner
   ln -s ./size_hor ./left_side
   ln -s ./size_hor ./right_side
   ln -s ./size_ver ./top_side
   ln -s ./size_ver ./bottom_side

The above should work for any KDE compatible cursor theme, but may not work for other ones if the cursor theme uses different names than size_fdiag, size_bdiag, size_hor, and size_ver.

Error: S3TC support is missing


Text is corrupt or missing

The Steam support instructions for Windows seem to work on Linux also: Simply download SteamFonts.zip and install them (copying to ~/.fonts/ works at least).

Black Screen on (Valve?) Games (but has audio)

Check the Steam stdout/stderr for Error lines, some quick dependencies for reference:


Game-specific depencencies and troubleshooting

Note: Steam installs library dependencies of a game to a library directory, but some are missing at the moment. Report bugs involving missing libraries on Valve's bug tracker on their GIT page before adding workarounds here, and then provide a link to the bug so it can be removed as the issues are fixed. Libraries like libglu and libtxn_dxtn are exceptions to this, as they are just part of the implementation of the open drivers.

Amnesia: The Dark Descent


If you are using open source drivers you will need lib32-libtxc_dxtn . See official forum for details

And Yet It Moves


Game refuses to launch and following message can be observed on console

 readlink: extra operand ‘Yet’
 Try 'readlink --help' for more information.

To fix this, open ~/.steam/root/SteamApps/common/And Yet It Moves/AndYetItMovesSteam.sh in text editor and replace line

 ayim_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"


 ayim_dir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"


Black Screen

If you get a black screen (with working sound and mouse cursor) in the game menu, you need to install lib32-libtxc_dxtn.

# pacman -S lib32-libtxc_dxtn

FTL: Faster than Light


Libraries are downloaded and and placed in the game's data directory for both architectures. As long as you run FTL by the launcher script (or via the shortcut in Steam) you should not need to download any further libraries.


After installation, FTL may fail to run due to a 'Text file busy' error (characterised in Steam by your portrait border going green then blue again). The easiest way to mend this is to just reboot your system. Upon logging back in FTL should run.

The Steam overlay in FTL does not function as it is not a 3D accelerated game. Because of this the desktop notifications will be visible. If playing in fullscreen, therefore, these notifications in some systems may steal focus and revert you back to windowed mode with no way of going back to fullscreen without relaunching. The binaries for FTL on Steam have no DRM and it is possible to run the game without Steam running, so in some cases that may be optimum - just ensure that you launch FTL via the launcher script in ~/.steam/root/SteamApps/common/FTL Faster than Light/data/ rather than the FTL binary in the $arch directory.

Problems with open-source video driver

FTL may fail to run if you are using an opensource driver for your video card. There are two solutions: install a proprietary video driver or delete (rename if you are unsure) the library "libstdc++.so.6" inside ~/.steam/root/SteamApps/common/FTL\ Faster\ Than\ Light/data/amd64/lib This is if you are using a 64bit system, I suppose that in case you are using a 32bit system you have to remove (rename) the same library located into ~/.steam/root/SteamApps/common/FTL\ Faster\ Than\ Light/data/x86/lib.

Harvest: Massive Encounter


Game refuses to launch and throws you to library installer loop. Just edit ~/.steam/root/SteamApps/common/Harvest Massive Encounter/run_harvest and remove everything but

 INSTDIR="`dirname $0`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`"
 export LD_LIBRARY_PATH=${INSTDIR}/bin:~/.steam/bin
 exec ./Harvest

Killing Floor

Screen resolution

Killing Floor runs pretty much from scratch, although you might have to change in-game resolution screen as the default one is 800x600 and a 4:3 screen format. If you try to modify screen resolution in-game, it might crash your desktop enviroment. To fix this, please set the desired resolution screen size by modifing your ~/.killingfloor/System/KillingFloor.ini with your prefered editor.

# nano ~/.killingfloor/System/KillingFloor.ini




Note: Replace all the ???? with the corresponding numbers according the desired resolution. If you have an 1366x768 screen and want to use it at it's fullest, change all the Viewport fields to something like ViewportX=1366 and ViewportY=768 in the corresponding areas.
Note: The dots in the middle indicate that there are more fields in that .ini file. But for screen resolution troubleshooting, you don't need to modify anything else.

Save the file and restart the game, it should work now.

Windowed Mode

Uncheck fullscreen in the options menu, and use Template:Keypress + Template:Keypress to stop mouse capturing (that was non obvious to discover..). This way you can easily minimize it and do other other things..and let your WM handle things.

Penumbra: Overture


(Taken from penumbra-collectionAUR and penumbra-overture-ep1-demoAUR)

Windowed Mode

There is no in-game option to change to the windowed mode, you will have to edit ~/.frictionalgames/Penumbra/Overture/settings.cfg to activate it. Find FullScreen="true" and change it to FullScreen="false", after this the game should start in windowed mode.




Game crash

The shipped x86 version of Spacechem doesn't work on x64 with the game's own libSDL* files, and crashes with some strange output.

To solve this just remove or move the three files libSDL-1.2.so.0, libSDL_image-1.2.so.0, libSDL_mixer-1.2.so.0 from ~/.steam/root/SteamApps/common/SpaceChem

Space Pirates and Zombies

No audio

Apply the fix documented in Serious Sam 3: BFE below.



Splice comes with both x86 and x64 binaries. Steam does not have to be running to launch this game.

Steel Storm: Burning Retribution

Start with black screen

The game tries to launch in 1024x768 resolution with fullscreen mode by default. It is impossible on some devices. (for example laptop Samsung Series9 with intel hd4000 video).

You can launch the game in windowed mode. To do this open game Properties in Steam, in General tab select "Set launch options..." and type "-window".

Now you can change the resolution in game.

No English fonts

If you use intel video card, just disable S3TC in DriConf.

Superbrothers: Sword & Sworcery EP


Team Fortress 2

No audio

It happens if there is no PulseAudio in your system. If you want to use Alsa, you need to launch the Steam or game directly with SDL_AUDIODRIVER=alsa (From SteamCommunity).

If it still doesn't work, you may also need to set the environment variable AUDIODEV. For instance AUDIODEV=Live. Use aplay -l to list the available sound cards.

The Book of Unwritten Tales

If the game does not start, go to Properties --> Uncheck "Enable Steam Community In-Game".

The game may segfault upon clicking the Setting menu and possibly during or before gameplay. This is a known issue and you will unfortunately have to wait for a fix from the developer.


The Clockwork Man


Trine 2


  • If colors are wrong with FOSS drivers (r600g at least), try to run the game in windowed mode, rendering will be corrected. (bugreport)

Counter-Strike: Source

Game crashes upon joining

If the game is constantly crashing when trying to join a game and in ~/.steam/root/SteamApps/your@account/Counter Strike Source/hl2.sh you have __GL_THREADED_OPTIMIZATIONS=1, try changing it to 0.

Serious Sam 3: BFE

No audio

Try running:

# pacman -S lib32-alsa-plugins
# mkdir -p /usr/lib/i386-linux-gnu/alsa-lib/
# ln -s /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so /usr/lib/i386-linux-gnu/alsa-lib/

If that doesn't work, try tweaking ~/.alsoftrc as proposed by the Steam community (Serious Sam 3: BFE uses OpenAL to output sound). If you are not using Pulse Audio, you may want to write the following configuration:

$ nano ~/.alsoftrc
drivers = alsa
device = default
capture = default
mmap = true

Crusader Kings II

Game is installed into "$HOME/Steam/SteamApps/common/Crusader Kings II".

Game can be started directly, without need of running Steam on background, using command "$HOME/Steam/SteamApps/common/Crusader Kings II/ck2".

Saves are stored in "$HOME/Steam/SteamApps/common/Crusader Kings II/save games/".

No audio

If the sound is missing in the game, try to start the game this way on the one line & jointly:

SDL_AUDIODRIVER=alsa "$HOME/Steam/SteamApps/common/Crusader Kings II/ck2"

or export the variable somewhere before in your system.


Skins for Steam

The Steam interface can be fully customized by copying its various interface files in its skins directory and modifying them.

Steam Skin Manager

The process of applying a skin to Steam can be greatly simplified using steam-skin-managerAUR from the AUR. The package also comes with a hacked version of the Steam launcher which allows the window manager to draw its borders on the Steam window.

As a result, skins for Steam will come in two flavors, one with and one without window buttons. The skin manager will prompt you whether you use the hacked version or not, and will automatically apply the theme corresponding to your GTK theme if it is found. You can of course still apply another skin if you want.

The package ships with two themes for the default Ubuntu themes, Ambiance and Radiance. A Faience theme is under development and already has its own package on the AUR steam-skin-faience-gitAUR.

Steam on Wine

Install wine from the official repositories and follow the instructions provided in the article.

Install the required Microsoft fonts ttf-microsoft-tahomaAUR and ttf-ms-fontsAUR from the AUR or through winetricks-svnAUR.

Note: If you have access to Windows discs, you may want to install ttf-win7-fontsAUR instead.

If you have an old Wine prefix (~/.wine), you should remove it and let Wine create a new one to avoid problems (you can transfer over anything you want to keep to the new Wine prefix).


Download and run the Steam installer from steampowered.com. It is no longer an .exe file so you have to start it with msiexec:

$ msiexec /i SteamInstall.msi

Starting Steam

On x86:

$ wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe

On x86_64 (with steam installed to a clean wine prefix):

$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe

Alternatively, you may use this method:

$ wine "C:\\Program Files\\Steam\\steam.exe" 

You should consider making an alias to easily start steam (and put it in your shell's rc file), example:

alias steam='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe >/dev/null 2>&1 &'
Note: If you are using an nvidia card through bumblebee, you should prefix those commands with optirun.



Consider disabling wine debugging output by adding this to your shell rc file:

export WINEDEBUG=-all

or, just add it to your steam alias to only disable it for steam:

alias steam='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe >/dev/null 2>&1 &'

Additionally, Source games rely on a paged pool memory size specification for audio, and WINE by default does not have this set. To set it:

wine reg add "HKLM\\System\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\" /v PagedPoolSize /t REG_DWORD /d 402653184 /f

Application Launch Options

Go to "Properties" -> "Set Launch Options", e.g.:

-console -dxlevel 90 -width 1280 -height 1024
  • console

Activate the console in the application to change detailed applications settings.

  • dxlevel

Set the application's DirectX level, e.g. 90 for DirectX Version 9.0. It is recommended to use the video card's DirectX version to prevent crashes. See the official Valve Software Wiki http://developer.valvesoftware.com/wiki/DirectX_Versions for details.

  • width and height

Set the screen resolution. In some cases the graphic settings are not saved in the application and the applications always starts in the default resolution. Please refer to http://developer.valvesoftware.com/wiki/Launch_options for a complete list of launch options.

Using a Pre-Existing Steam Install

If you have a shared drive with Windows, or already have a Steam installation somewhere else, you can simply symlink the Steam directory to ~/.wine/drive_c/Program Files/Steam/ . However, be sure to do all the previous steps in this wiki. Confirm Steam launches and logs into your account, then do this:

cd ~/.wine/drive_c/Program\ Files/ 
mv Steam/ Steam.backup/   (or you can just delete the directory)
ln -s /mnt/windows_partition/Program\ Files/Steam/
Note: If you have trouble starting Steam after symlinking the entire Steam folder, try linking only the steamapps subdirectory in your existing wine steam folder instead.
Note: If you still have trouble starting games, use sudo mount --bind /path/to/SteamApps ~/.local/share/Steam/SteamApps -ouser=your-user-name , this is the only thing that worked for me with TF2

Running Steam in a second X Server

Assuming you are using the script above to start Steam, make a new script, called x.steam.sh. You should run this when you want to start Steam in a new X server, and steam.sh if you want Steam to start in the current X server.

If due to misconfiguration a black screen is shown, you could always close down the second X server by pressing Template:Keypress + Template:Keypress + Template:Keypress.



xinit $HOME/steam.sh $* -- :1

Now you can use Template:Keypress + Template:Keypress + Template:Keypress to get to your first X server with your normal desktop, and Template:Keypress + Template:Keypress + Template:Keypress to go back to your game.

Because the second X server is only running the game and the first X server with all your programs is backgrounded, performance should increase. In addition, it is much more convenient to switch X servers while in game to access other resources, rather than having to exit the game completely or Template:Keypress-Template:Keypress out. Finally, it is useful for when Steam or WINE goes haywire and leaves a bunch of processes in memory after Steam crashes. Simply Template:Keypress + Template:Keypress + Template:Keypress on the second X server to kill that X and all processes on that desktop will terminate as well.

If you get errors that look like "Xlib: connection to ":1.0" refused by server" when starting the second X: You will need to adjust your X permissions.

If you lose the ability to use the keyboard while using Steam: This is an odd bug that does not happen with other games. A solution is to use a WM in the second X as well. Thankfully, you do not need to run a large WM. Openbox and icewm have been confirmed to fix this bug (evilwm, pekwm, lwm do not work), but the icewm taskbar shows up on the bottom of the game, thus it's recommended to use Openbox. Install openbox from the official repositories, then add openbox & to the top of your steam.sh file. Note you can run other programs (ex. Teamspeak &) or set X settings (ex. xset, xmodmap) before the WINE call as well.

Steam Links in Firefox, Chrome, Etc

To make steam:// urls in your browser connect with steam in wine, there are several things you can do. One involves making steam url-handler keys in gconf, another involves making protocol files for kde, others involve tinkering with desktop files or the Local State file for chromium. These seem to only work in firefox or under certain desktop configurations. One way to do it that works more globally is using mimeo, a tool made by Xyne (an Arch TU) which follows. For another working and less invasive (but firefox-only) way, see the first post here .

  • Make /usr/bin/steam with your favorite editor and paste:
# Steam wrapper script
exec wine "c:\\program files\\steam\\steam.exe" "$@"
  • Make it executable.
# chmod +x /usr/bin/steam
  • Create ~/.config/mimeo.conf with your favorite editor and paste:
/usr/bin/steam %u
  • Lastly, open /usr/bin/xdg-open in your favorite editor. Go to the detectDE() section and change it to look as follows:
    #if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
    #elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
    #elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
    #elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
    #elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde;
    #else DE=""
  • Restart the browser and you should be good to go. In chromium, you cannot enter a steam:// link in the url box like you can with firefox. The forum link above has a steam://open/friends link to try if needed.
Note: If you have any problems with file associations after doing this, simply revert to regular xdg-utils and undo your changes to /usr/bin/xdg-open.
Note: Those on other distributions that stumble upon this page, see the link above for firefox specific instructions. No easy way to get it working on Chromium on other distros exists.

No text rendered problem

If there is no text/font rendered when starting steam you should try to start steam with the parameter -no-dwrite. Read more in the forum thread about it.

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite

See Also