Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added setting of Nvidia card BusID in xorg.conf files needed by $DRIVERS

  • Loading branch information...
commit d778cca898c6891ed24ba6a3a04022e840379ee5 1 parent 74f387b
@Samsagax Samsagax authored
Showing with 8 additions and 5 deletions.
  1. +8 −5 stages/configure
View
13 stages/configure
@@ -20,12 +20,15 @@ NVIDIABUSID=$(lspci -d 10de: -n | grep '030[02]:' | cut -d' ' -f1 | tr . :)
re_busid='^( *BusID +")[^"]*'
-# Currently, only the nvidia conffile needs the PCI Bus ID set
-if [ -f "${CONFDIR}/xorg.conf.nvidia" ]; then
- echo "Setting Bus ID in xorg.conf.nvidia..."
- sed -E -i "${CONFDIR}/xorg.conf.nvidia" \
+# Currently, only the nvidia conffile needs the PCI Bus ID set. Nouveau doesn't
+# need it but setting it is needed in some cards.
+for driver in "${DRIVERS[@]}"; do
+ if [ -f "${CONFDIR}/xorg.conf.$driver" ]; then
+ echo "Setting Bus ID in xorg.conf.$driver..."
+ sed -E -i "${CONFDIR}/xorg.conf.$driver" \
-e "s,${re_busid},\1$NVIDIABUSID,"
-fi
+ fi
+done
# add the bumblebee group
if getent group bumblebee >/dev/null; then
Please sign in to comment.
Something went wrong with that request. Please try again.