MHWD creates empty xorg configuration files

$inxi -G
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel 
           Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] driver: N/A 
           Device-3: Realtek USB Camera type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.9 driver: modesetting resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.1.8

I have used the GUI variant of MHWD to install the 450xx drivers for my Nvidia GPU (“Auto Install Proprietary Driver”).
I started my laptop with every installed kernel, one after another (5.8, 5.7, 5.4, 4.19, 4.14), but it doesn’t work.

$nvidia-settings

ERROR: NVIDIA driver is not loaded

In /etc/X11/mhwd.d/nvidia.conf, there is just a comment:

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 

The same in /etc/X11/xorg.conf.d/90-mhwd.conf. Could that be the cause of the problem?

can you please return

inxi -Fza
mhwd -li

you are messing up videos drivers if this is a laptop

inxi -Fza
System:    Kernel: 5.8.11-1-MANJARO x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
           [...]
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.20 info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: X555LD v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X555LD v: 1.0 serial: <filter> UEFI: American Megatrends v: X555LD.307 
           date: 07/02/2014 
Battery:   ID-1: BAT0 charge: 19.2 Wh condition: 19.5/37.3 Wh (52%) volts: 7.5/7.5 
           model: ASUSTeK X555-50 type: Li-ion serial: N/A status: Not charging cycles: 621 
CPU:       Topology: Dual Core model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell family: 6 
           model-id: 45 (69) stepping: 1 microcode: 26 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19160 
           Speed: 798 MHz min/max: 800/2700 MHz Core speeds (MHz): 1: 798 2: 798 3: 798 4: 798 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: 
           conditional, RSB filling 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: ASUSTeK driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:0a16 
           Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] 
           vendor: ASUSTeK driver: N/A alternate: nouveau, nvidia_drm, nvidia bus ID: 04:00.0 
           chip ID: 10de:1140 
           Device-3: Realtek USB Camera type: USB driver: uvcvideo bus ID: 2-5:2 chip ID: 0bda:57b5 
           serial: <filter> 
           Display: x11 server: X.Org 1.20.9 driver: modesetting alternate: fbdev,intel,vesa 
           display ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") s-diag: 414mm (16.3") 
           Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 101 size: 344x193mm (13.5x7.6") 
           diag: 394mm (15.5") 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.1.8 compat-v: 3.0 
           direct render: Yes 
Audio:     Device-1: Intel Haswell-ULT HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:03.0 chip ID: 8086:0a0c 
           Device-2: Intel 8 Series HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 chip ID: 8086:9c20 
           Sound Server: ALSA v: k5.8.11-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK 
           driver: r8168 v: 8.048.03-NAPI modules: r8169 port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: Lite-On driver: ath9k 
           v: kernel port: e000 bus ID: 03:00.0 chip ID: 168c:0032 
           IF: wlp3s0 state: up mac: <filter> 
           IF-ID-1: br-95d45472e8b9 state: down mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 408.93 GiB (87.8%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 3B6Q scheme: GPT 
           SMART Message: Unknown smartctl error. Unable to get data. 
Partition: ID-1: / raw size: 452.74 GiB size: 444.64 GiB (98.21%) used: 408.93 GiB (92.0%) fs: ext4 
           block size: 4096 B dev: /dev/dm-0 
Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 12.72 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/dm-1 
Sensors:   System Temperatures: cpu: 57.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 4100 
Info:      Processes: 243 Uptime: 35m Memory: 11.16 GiB used: 3.83 GiB (34.3%) Init: systemd v: 246 
           Compilers: gcc: 10.2.0 clang: 10.0.1 Packages: 2390 pacman: 2345 lib: 457 flatpak: 42 snap: 3 
           Shell: Bash v: 5.0.18 running in: xfce4-terminal inxi: 3.1.05 

$mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-450xx-prime            2019.10.25               false            PCI
     video-modesetting            2020.01.13                true            PCI
         network-r8168            2016.04.20                true            PCI
video-hybrid-intel-nouveau-prime            2017.05.29                true            PCI


Warning: No installed USB configs!

And yes, it is a laptop. And no, I’m not messing up video drivers (intentionally) - I’m just using MHWD tool and would expect it doing it right. But maybe that’s the same :wink: - I don’t know.

manjaro installation in case of hybrid cards choose open-soure intel ( or amd )
if you need to check hybrid nvidia cards, then this is a prime command

prime-run nvidia-settings
prime-run vulkaninfo
prime-run glxinfo ( prime offload) 
$prime-run glxinfo
name of display: :0.0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

primerun: Command not found.

Why are both installed? If you want the proprietary drivers, uninstall video-hybrid-intel-nouveau-prime and reinstall the other: sudo mhwd -f -i pci video-hybrid-intel-nvidia-450xx-prime

Here we go again…

  1. Purge PRIME. (Will not work!)
  2. Install bumblebee:
sudo  mhwd -r pci video-hybrid-intel-nvidia-450xx-prime
sudo  mhwd -r pci video-hybrid-intel-nouveau-prime
sudo  mhwd -i pci video-hybrid-intel-nvidia-390xx-bumblebee
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
2 Likes

Indeed, I didn’t even check the gpu model, PRIME won’t work, so you’re left with bumblebee.

MHWD with lastest live isos is stupid and cannot handle older nvidia’s chips. They cannot support PRIME, but when MHWD find INTEL + NVIDIA, then installing in default PRIME based profile, but should install legacy bumblebee instead FOR OLDER devices.

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

[  573.914284] [ERROR]Aborting because fallback start is disabled.
$inxi -G
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel 
           Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] driver: nvidia 
           v: 390.132 
           Device-3: Realtek USB Camera type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.9 driver: nvidia resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.1.8 

Tried this: https://wiki.archlinux.org/index.php/Bumblebee#[ERROR]Cannot_access_secondary_GPU:_No_devices_detected

I have added

Section "Device"
    Identifier "nvidiagpu1"
    Driver "nvidia"
    BusID "PCI:4:0:0"
EndSection

to the bottom of the /etc/X11/xorg.conf.d/90-mhwd.conf file after checking the bus with

$lspci | grep GeForce
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)

but after a restart it doesn’t change anything.

Solved the issue by adding
BusID "PCI:4:0:0"
to the
Section "Device"
in
/etc/bumblebee/xorg.conf.nvidia
.