Closed tristan-k closed 5 years ago
Sounds like this line is at fault:
sudo grep -qxsF 'exclude=xorg-x11*' "/etc/dnf/dnf.conf" || echo "exclude=xorg-x11*" | sudo tee -a "/etc/dnf/dnf.conf" > /dev/null
It's in the nvidia-setup script.
I'm not sure if this line was necessary on Fedora 29, but it might work without it. To undo what the line has done, you can just remove the exclude=xorg-x11* from your dnf.conf.
I'm definitely interested in getting this to work on Fedora 30 and future versions of Fedora, but I currently have no drive or USB stick left to install another Fedora on.
I got everything to work on Fedora 30.
This is the nvidia-setup script that I used:
#!/usr/bin/env bash
SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd)
PROJECT_DIR="${SCRIPT_DIR}/../../.."
UTILS_DIR="${PROJECT_DIR}/utils"
DISTRO=$("${UTILS_DIR}/distro-info")
DISTRO_UTILS_DIR="${UTILS_DIR}/${DISTRO}"
VM_FILES_DIR="${PROJECT_DIR}/vm-files"
source "$DISTRO_UTILS_DIR/kernel-param-utils"
echo "Disable Nouveau drivers"
addKernelParam "nouveau.modeset=0"
#sudo grep -qxsF 'blacklist nouveau' "/etc/modprobe.d/blacklist.conf" || echo "blacklist nouveau" | sudo tee -a "/etc/modprobe.d/blacklist.conf" > /dev/null
#sudo grep -qxsF 'exclude=xorg-x11*' "/etc/dnf/dnf.conf" || echo "exclude=xorg-x11*" | sudo tee -a "/etc/dnf/dnf.conf" > /dev/null
#sudo dnf remove xorg-x11-drv-nouveau -y
echo "Install third party repositories"
sudo dnf install fedora-workstation-repositories -y
echo "Install third party repositories"
sudo dnf config-manager rpmfusion-nonfree-nvidia-driver --set-enabled -y
echo "Enable the NVIDIA driver repository"
sudo dnf install akmod-nvidia acpi -y
echo "Enable the Bumblebee repository"
sudo dnf copr enable chenxiaolong/bumblebee -y
echo "Install Bumblebee"
sudo dnf install akmod-bbswitch bumblebee primus -y
echo "Make Bumblebee avialable to the current user"
sudo gpasswd -a $(who -m | awk '{print $1;}') bumblebee
echo "Enable Bumblebee autostart"
sudo systemctl enable bumblebeed
echo "Block nvidia-fallback service"
sudo systemctl mask nvidia-fallback
echo "Start Bumblebee"
sudo systemctl start bumblebeed
#TODO: verify if that actually works:
echo "Allow using external monitor for notebooks that have the port wired to the dGPU directly"
sudo dnf install -y intel-gpu-tools
sudo intel-virtual-output
#example usage: xrandr –output eDP1 –mode 1920×1080 –output HDMI1 –mode 1920×1080 –right-of eDP1
sudo ${UTILS_DIR}/extract-vbios
I also had to install ivshmem-tools
.
... Hopefully I'll find some time in the near future to finish all the improvements and new features I've been working on and push an update.
Fedora 30 is now officially supported.
Can you please add support for Fedora 30. I created a symbolic link with
$ ln -s MobilePassThrough/utils/Fedora/29 MobilePassThrough/utils/Fedora/30
to get the script working but it fails at the nvidia driver installation.