Bumblebee/PRIME Troubleshooting|20210122

Bumblebee/PRIME Troubleshooting

Fix boot Manjaro on Laptop with Skylake CPU.

Follow this paste: Installation of Manjaro 17 and nvidia/bumblebee drivers on Avell G1513 · GitHub for DETAILS.

Edit /etc/default/grub and add to GRUB_CMDLINE_LINUX line:

acpi_osi=! acpi_osi="Windows 2009"

Save changes in file and run:

sudo update-grub

Reference:

Enable NVIDIA card after waking from suspend The bumblebee daemon may fail to activate the graphics card after suspending. A possible fix involves setting bbswitch as the default method for power management. Set PMMethod=bbswitch via command:
sudo sed -i "s/PMMethod=auto/PMMethod=bbswitch/" "/etc/bumblebee/bumblebee.conf"

Reboot.

Fix OpenGL glxinfo tool Error: couldn't find RGB GLX visual or fbconfig

Intel Xorg file /etc/X11/mhwd.d/intel.conf required additional code Section “OutputClass”

Section "OutputClass"
    Identifier "intel"
    ModulePath "/usr/lib/xorg/modules/extensions"
EndSection

Reboot.

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

Be sure that your card is supported. New ISOs Manjaro’s using in default NVIDIA PRIME MHWD. In results older cards can’t work.

Switch to proper bumblebee PROFILE MHWD:

  1. Purge PRIME. (Will not work!)
  2. Install bumblebee valid profile for your card:
sudo  mhwd -r pci video-hybrid-intel-nvidia-450xx-prime
sudo  mhwd -r pci video-hybrid-intel-nouveau-prime

NOTE: they are availbable OTHER bumblebee profiles too. Checkout command result:

mhwd

Sample with bumblebee only:

video-hybrid-intel-nvidia-430xx-bumblebee
video-hybrid-intel-nvidia-418xx-bumblebee 
video-hybrid-intel-nvidia-390xx-bumblebee 

Futher reading: Configure Graphics Cards - Manjaro

SELECT NOW PROPER BUMBLEBEE PROFILE MHWD:

sudo  mhwd -i pci video-hybrid-intel-nvidia-390xx-bumblebee

OR THIS ONE:

sudo  mhwd -i pci video-hybrid-intel-nvidia-418xx-bumblebee

OR THIS ONE:

sudo  mhwd -i pci video-hybrid-intel-nvidia-430xx-bumblebee

After finish install proper MHWD PROFILE BUMBLEBEE add self to bumblebee group and enable service:

sudo gpasswd -a $USER bumblebee
sudo systemctl enable bumblebeed

Reboot.
Check if all is fine:

optirun -b none nvidia-settings -c :8
optirun nvidia-smi
optirun glxinfo|grep Open

IF FAIL ANYWAY CHECK /etc/bumblebee/xorg.conf.nvidia BusID value. READ ArchWiki full article here

Steam launch options

Read article: Optimus and Steam for Linux - Linux Issues - Knowledge Base - Steam Support

Desktop freezes randomly after a while of usage on Intel + NVIDIA Optimus devices

Edit /etc/default/grub and add to GRUB_CMDLINE_LINUX line:

pci=nomsi

Save changes in file and run:

sudo update-grub

Reference:

2 Likes