summaryrefslogtreecommitdiff
path: root/bin
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2017-05-17 12:19:53 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2017-05-17 12:19:53 +0200
commitb16692b6152d9a0be3a261d7eafd3f33c095249b (patch)
treec0e5f0dfb3d899a80667d6d2c8fd3f367dd84c55 /bin
parent141ea08a0f521e84cc59c09df67631c2f36c3309 (diff)
bin:graphics_env: Set DRI_PRIME also for radeon driver
Fixes LP:1691433
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