diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-08-16 15:57:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-08-16 15:57:19 +0100 |
commit | 3ea8d68d332628df09e5257406003d4f92d21c83 (patch) | |
tree | 64746b9e899542dbc75f3d87b3ae414c9b5d9793 /app-emulation/steam | |
parent | 72cd15db2d137aceabb43ebf19624400b78a2cf0 (diff) |
basic optimus detection
Diffstat (limited to 'app-emulation/steam')
-rwxr-xr-x | app-emulation/steam/files/kogaion-steam | 11 | ||||
-rw-r--r-- | app-emulation/steam/steam-1.0.0.45-r5.ebuild (renamed from app-emulation/steam/steam-1.0.0.45-r4.ebuild) | 0 |
2 files changed, 7 insertions, 4 deletions
diff --git a/app-emulation/steam/files/kogaion-steam b/app-emulation/steam/files/kogaion-steam index 7da83bf3..f9d5c2aa 100755 --- a/app-emulation/steam/files/kogaion-steam +++ b/app-emulation/steam/files/kogaion-steam @@ -16,12 +16,15 @@ remove_some_bundled_libs () { find /home/$USER/.local/share/Steam -name 'libgcc_s*' -type f | grep -v installed | xargs rm -rf } - preload_some_system_libs () { export LD_PRELOAD='/usr/lib32/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6 /usr/lib32/gcc/x86_64-pc-linux-gnu/4.9.3/32/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6' - if [[ "$(lsmod|grep nvidia)" ]] ; then - export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib' - export __GLVND_DISALLOW_PATCHING=1 + if [[ "$(lsmod|grep nvidia)" ]] ; then + if [[ "$(lsmod|grep bbswitch)" ]] ; then + echo "" + else + export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib' + export __GLVND_DISALLOW_PATCHING=1 + fi fi } diff --git a/app-emulation/steam/steam-1.0.0.45-r4.ebuild b/app-emulation/steam/steam-1.0.0.45-r5.ebuild index 5d2ebc9d..5d2ebc9d 100644 --- a/app-emulation/steam/steam-1.0.0.45-r4.ebuild +++ b/app-emulation/steam/steam-1.0.0.45-r5.ebuild |