I am using MX Linux 23.4 but the solution should also work for other Debian-based distros and probably Ubuntu-based ones like Mint.
Problem: I have a laptop with 2 graphics adapters: an Intel one and an Nvidia one. I was following the instructions in Staempunk's video on how to install Nvidia drivers. I could not get
Code: Select all
optirun inxi -G
Code: Select all
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"
First do a system backup using timeshift, or maybe, uninstall the Nvidia proprietary driver first (in MX Linux you can do this by sudo ddm-mx -p nvidia ), and then do a timeshift system backup so that if something goes wrong you can revert to the state before you tried to install the Nvidia driver. If you uninstalled the Nvidia driver to do the timeshift, install the driver again (and it will fail to work again but we will fix this).
Then, install the following:
Code: Select all
sudo apt install xserver-xorg-input-mouse
sudo apt install xserver-xorg-input-kbd
Code: Select all
sudo apt purge xserver-xorg-legacy
Code: Select all
sudo touch /etc/bumblebee/xorg.conf.d/10-dummy.conf
Code: Select all
lspci | egrep 'VGA|3D'
Code: Select all
$ lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
Open your /etc/bumblebee/xorg.conf.nvidia file using a text editor with sudo privileges. On MX Linux Xfce, this would be done with:
Code: Select all
sudo featherpad /etc/bumblebee/xorg.conf.nvidia
Code: Select all
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"
Save the file.
Reboot the computer.
After this it (optirun inxi -G) should work.
Sources that I used:
https://unix.stackexchange.com/question ... -bumblebee
https://github.com/Bumblebee-Project/Bu ... ssues/1082
https://unix.stackexchange.com/question ... ondary-gpu