I recently applied the latest stable branch updates (Dec 31, 2020). I have an Optimus laptop (Nvidia + Intel), and I was using bbswitch before, with the hybrid-nvidia-430xx drivers. I followed all the steps and gotchas presented in the update. After the update, things seem to be working well, I can still use the NVidia GPU using prime-run, and there are no display issues.
llvmpipe was new to me, so I looked it up. It is a software renderer, and I’m not sure that I want it this way. How do I ensure that the default renderer is the Intel Integrated GPU?
I do see that the Intel Integrated Graphics is using its i915 driver, so I don’t think it’s a matter of the device not being found. (Please correct me if I am wrong!)
You probably installed video-vesa too … remove it. AFAIK, for your system, you should have only: video-hybrid-intel-nvidia-prime
and video-modesetting
Thank you for the suggestion, but I am afraid it doesn’t work.
I didn’t have video-vesa, but I did have video-linux installed. I removed it and rebooted, no change.
For clarity, I force reinstalled the two configs you mentioned (i.e. mhwd -i pci <config-name> --force), and rebooted. But that did not change it either.
This is the current status:
$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime 2020.11.30 false PCI
video-modesetting 2020.01.13 true PCI
network-r8168 2016.04.20 true PCI
Some things look off to me.
The mhwd-generated file /etc/X11/mhwd.d/nvidia.conf is empty, (Except for the commented string implying it is an auto-generated file).
The file /etc/X11/xorg.conf.d/90-mhwd.conf is a symlink to this file, so that serves no purpose.
One other error message I see, (but am unsure what the solution is), is when I search the Xorg logs for intel and modesetting:
$ cat /var/log/Xorg.1.log | grep intel
[ 2512.418] (==) Matched intel as autoconfigured driver 3
[ 2512.419] (II) LoadModule: "intel"
[ 2512.419] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 2512.419] (II) Module intel: vendor="X.Org Foundation"
[ 2512.421] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
[ 2512.421] (II) intel: Driver for Intel(R) HD Graphics
[ 2512.421] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 2512.421] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 2512.425] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20170818
[ 2512.425] (II) intel(0): SNA compiled from 2.99.917-913-g9236c582
[ 2515.187] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[ 2515.187] (II) intel(0): [drm] Contents of '/sys/kernel/debug/dri/0/clients':
[ 2515.187] (II) intel(0): [drm] command pid dev master a uid magic
[ 2515.187] (II) intel(0): [drm] Xorg 703 0 y y 0 0
[ 2515.187] (II) intel(0): [drm] Xorg 7131 0 n y 0 0
[ 2515.187] (EE) intel(0): Failed to claim DRM device.
[ 2515.187] (II) UnloadModule: "intel"
$ cat /var/log/Xorg.1.log | grep modesetting
[ 2512.418] (==) Matched modesetting as autoconfigured driver 4
[ 2512.419] (II) LoadModule: "modesetting"
[ 2512.419] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 2512.420] (II) Module modesetting: vendor="X.Org Foundation"
[ 2512.421] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 2512.440] (WW) Falling back to old probe method for modesetting
Also, it seems that an Xorg server is indeed using the GPU?
$ nvidia-smi
Fri Jan 1 01:36:29 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.45.01 Driver Version: 455.45.01 CUDA Version: 11.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 105... Off | 00000000:01:00.0 Off | N/A |
| N/A 45C P8 N/A / N/A | 4MiB / 4042MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 699 G /usr/lib/Xorg 4MiB |
+-----------------------------------------------------------------------------+
It shouldn’t … Try to auto install sudo mhwd -a pci nonfree 0300
and see if the nvidia.conf will be filled … reboot the system after that. The thing is, in the announcement wiki was mentioned to backup the old nvidia.conf
Honestly I am surprised you were using 4.14 with not many problems with relatively recent devices.
PS - right now 5.4 is the longest-lasting LTS … it will be supported until 2025.