summaryrefslogtreecommitdiff
path: root/bin
diff options
Diffstat (limited to 'bin')
-rwxr-xr-xbin/graphics_env4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/graphics_env b/bin/graphics_env
index 55a3486..8c82567 100755
--- a/bin/graphics_env
+++ b/bin/graphics_env
@@ -11,8 +11,8 @@ INDEX=$2
UBUNTU_CODENAME=`lsb_release -c | awk {'print $2'}`
# We only want to set the DRI_PRIME env variable on Xenial (16.04) systems
-# with more than 1 GPU running the amdgpu driver.
-if [[ $DRIVER == "amdgpu" ]]; then
+# with more than 1 GPU running the amdgpu/radeon drivers.
+if [[ $DRIVER == "amdgpu" || $DRIVER == "radeon" ]]; then
if [[ $UBUNTU_CODENAME == "xenial" ]]; then
NB_GPU=`udev_resource -l VIDEO | grep -oP -m1 '\d+'`
if [ $NB_GPU -gt 1 ]; then