From 8da4bc73f657301e358b8008006723fbf4cde4fe Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 20 Sep 2016 20:56:11 +0100 Subject: actually, we only need bbswitch loaded to detect optimus, because nvidia may not be loaded yet, or someone may use nouveau --- app-emulation/steam/files/kogaion-steam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app-emulation/steam/files') diff --git a/app-emulation/steam/files/kogaion-steam b/app-emulation/steam/files/kogaion-steam index 02e5f2a9..f83f5115 100755 --- a/app-emulation/steam/files/kogaion-steam +++ b/app-emulation/steam/files/kogaion-steam @@ -21,7 +21,7 @@ preload_some_system_libs () { # steam must be told where nvidia opengl libs live on gentoo systems # but this will break optimus, so check if we detect bbswitch in here # if we do, we do not preload nvidia opengl, as it will break steam - if [[ "$(lsmod|grep nvidia)" && "$(lsmod|grep bbswitch)" ]] ; then + if [[ "$(lsmod|grep bbswitch)" ]] ; then echo "" echo "nvidia optimus detected, we will not preload nvidia libs" echo "" -- cgit v1.2.3