From 88f23331949a5d9d041f7d4d1f441cd0e3fcd141 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 19 Sep 2016 20:03:36 +0100 Subject: [PATCH] add steam fix for linux thing --- content/blog/steam-igpu-linux.md | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 content/blog/steam-igpu-linux.md diff --git a/content/blog/steam-igpu-linux.md b/content/blog/steam-igpu-linux.md new file mode 100644 index 0000000..d852622 --- /dev/null +++ b/content/blog/steam-igpu-linux.md @@ -0,0 +1,48 @@ +title: My Level 3 Apprenticeship +template: blog + +Running steam on linux is great, except for the game support obviously. But running it on an iGPU has recently been causing me problems, mainly under Arch. + +## Stacktrace: +``` +jake@***:~$ steam +~/.local/share/Steam/steam.sh: line 154: VERSION_ID: unbound variable +~/.local/share/Steam/steam.sh: line 154: VERSION_ID: unbound variable +Running Steam on antergos 64-bit +~/.local/share/Steam/steam.sh: line 154: VERSION_ID: unbound variable +STEAM_RUNTIME is enabled automatically +Installing breakpad exception handler for appid(steam)/version(1468023329) +libGL error: unable to load driver: i965_dri.so +libGL error: driver pointer missing +libGL error: failed to load driver: i965 +libGL error: unable to load driver: i965_dri.so +libGL error: driver pointer missing +libGL error: failed to load driver: i965 +libGL error: unable to load driver: swrast_dri.so +libGL error: failed to load driver: swrast +``` + +## The solution +I have no idea why it works, or why it works, but speaking to some people online, this is the best solution: + +``` +LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam %U +``` + +I have no idea why it works, but it works perfectly for me! Steam client runs with no problems. + +``` +jake@***:~$ LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam %U +~/.local/share/Steam/steam.sh: line 154: VERSION_ID: unbound variable +~/.local/share/Steam/steam.sh: line 154: VERSION_ID: unbound variable +Running Steam on antergos 64-bit +~/.local/share/Steam/steam.sh: line 154: VERSION_ID: unbound variable +STEAM_RUNTIME is enabled automatically +Installing breakpad exception handler for appid(steam)/version(1468023329) +``` + +Unfortunately, it doesnt seem to work if you add it to the `steam.desktop` file, for reasons I don't quite understand. But, just edit `/usr/bin/steam` to include the variable, and that works perfectly! + +```bash +export LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' +```