Nvidia driver problems - Geforce 720M

Thank you. optirun -b none nvidia-settings -c :8 gives:

[  229.071138] [ERROR]You've no permission to communicate with the Bumblebee daemon. Try adding yourself to the 'bumblebee' group
[  229.071173] [ERROR]Could not connect to bumblebee daemon - is it running?

I’ve tried running sudo usermod -a -G bumblebee dan but it doesn’t seem to add me to the group:

[dan@dan-x550cc ~]$ groups
sys network power lp wheel dan

Yeah there we have the problem… the nvidia module is not set to be loaded.

How can I set it to be loaded? Why does mhwd not do this when installing the drivers?

Ah, needed to log out and back in for the usermod to take effect…

optirun -b none nvidia-settings -c :8 now gives:

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

[  115.113073] [ERROR]Aborting because fallback start is disabled.

Oh … didnt nvidia+bb need sudo for nvidia settings?
(yes yes … say 3 hail mary’s and repeat “I will not run sudo on gui applications”)
Try it for giggles.

Same thing unfortunately:

[dan@dan-x550cc ~]$ sudo optirun -b none nvidia-settings -c :8
[sudo] password for dan: 
[  348.072335] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

[  348.072394] [ERROR]Aborting because fallback start is disabled.

I really have no idea why it didn’t work… it is the first time i see this. :man_shrugging:

You could do this manually, but i would recommend to do that this way:

To force it run this:

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

Normally it would run this config-script:

cat /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-390xx-bumblebee/MHWDCONFIG

Here’s the output of sudo mhwd -f -i pci video-hybrid-intel-nvidia-390xx-bumblebee if it helps:

> Removing video-hybrid-intel-nvidia-390xx-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-hybrid-intel-nvidia-390xx-bumblebee/MHWDCONFIG
Processing classid: 0300                                                                                  
Sourcing /var/lib/mhwd/scripts/include/0300                                                               
Removed /etc/systemd/system/multi-user.target.wants/bumblebeed.service.                                   
checking dependencies...                                                                                  
:: ffmpeg optionally requires nvidia-utils: Nvidia NVDEC/NVENC support                                    
:: ksysguard optionally requires nvidia-utils: NVIDIA GPU usage                                           
:: lib32-vulkan-icd-loader optionally requires lib32-vulkan-driver: packaged vulkan driver                
:: steam-manjaro optionally requires vulkan-driver: packaged vulkan driver                                
:: steam-manjaro optionally requires lib32-vulkan-driver: packaged vulkan driver (32bit)                  
:: vulkan-icd-loader optionally requires vulkan-driver: packaged vulkan driver                            
warning: dependency cycle detected:                                                                       
warning: primus will be removed after its bumblebee dependency                                            
                                                                                                         
Packages (11) egl-wayland-1.1.5-1  eglexternalplatform-1.1-2  libxvmc-1.0.12-3  primus-20151110-9  bumble
bee-3.2.1-22  lib32-nvidia-390xx-utils-390.132-1  lib32-primus-20151110-4  linux58-bbswitch-0.8-25  linux
58-nvidia-390xx-390.132-25  nvidia-390xx-utils-390.132-1  xf86-video-intel-1:2.99.917+908+g7181c5a4-1     
                                                                                                         
Total Removed Size:  217.99 MiB                                                                           
                                                                                                         
:: Do you want to remove these packages? [Y/n]                                                            
:: Processing package changes...                                                                          
removing linux58-bbswitch...                                                                              
removing linux58-nvidia-390xx...                                                                          
removing lib32-primus...                                                                                  
removing lib32-nvidia-390xx-utils...                                                                      
xorg configuration symlink valid...                                                                       
removing xf86-video-intel...                                                                              
removing libxvmc...                                                                                       
removing bumblebee...                                                                                     
warning: /etc/bumblebee/xorg.conf.nvidia saved as /etc/bumblebee/xorg.conf.nvidia.pacsave                 
warning: /etc/bumblebee/bumblebee.conf saved as /etc/bumblebee/bumblebee.conf.pacsave                     
removing nvidia-390xx-utils...                                                                            
xorg configuration symlink valid...                                                                       
removing egl-wayland...                                                                                   
removing eglexternalplatform...                                                                           
removing primus...                                                                                        
:: Running post-transaction hooks...                                                                      
(1/5) Reloading system manager configuration...                                                           
(2/5) Reloading device manager configuration...                                                           
(3/5) Arming ConditionNeedsUpdate...                                                                      
(4/5) Updating module dependencies...                                                                     
(5/5) Updating the desktop file MIME type cache...                                                        
'/etc/X11/xorg.conf.d/90-mhwd.conf' symlink is invalid! Removing it...                                    
> Successfully removed video-hybrid-intel-nvidia-390xx-bumblebee                                          
> Installing video-hybrid-intel-nvidia-390xx-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true                                                                                   
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-390xx-bumblebee/MHWDCONFIG              
Processing classid: 0300                                                                                  
Sourcing /var/lib/mhwd/scripts/include/0300                                                               
:: Synchronising package databases...                                                                     
core is up to date                                                                                       
extra is up to date                                                                                      
community is up to date                                                                                  
multilib is up to date                                                                                   
resolving dependencies...                                                                                 
looking for conflicting packages...                                                                       
warning: dependency cycle detected:                                                                       
warning: primus will be installed before its bumblebee dependency                                         
                                                                                                         
Packages (11) egl-wayland-1.1.5-1  eglexternalplatform-1.1-2  libxvmc-1.0.12-3  primus-20151110-9  bumble
bee-3.2.1-22  lib32-nvidia-390xx-utils-390.132-1  lib32-primus-20151110-4  linux58-bbswitch-0.8-25  linux
58-nvidia-390xx-390.132-25  nvidia-390xx-utils-390.132-1  xf86-video-intel-1:2.99.917+908+g7181c5a4-1     
                                                                                                         
Total Installed Size:  217.99 MiB                                                                         
                                                                                                         
:: Proceed with installation? [Y/n]                                                                       
checking keyring...                                                                                       
checking package integrity...                                                                             
loading package files...                                                                                  
checking for file conflicts...                                                                            
checking available disk space...                                                                          
:: Processing package changes...                                                                          
installing primus...                                                                                      
installing eglexternalplatform...                                                                         
installing egl-wayland...                                                                                 
installing nvidia-390xx-utils...                                                                          
==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.                     
Optional dependencies for nvidia-390xx-utils
   gtk2: nvidia-settings                                                                                 
   xorg-server-devel: nvidia-xconfig                                                                     
   opencl-nvidia: OpenCL support                                                                         
installing bumblebee...                                                                                   
Don't forget to add yourself to the 'bumblebee' group to use Bumblebee                                    
Optional dependencies for bumblebee                                                                       
   xf86-video-nouveau: nouveau driver [installed]                                                        
   nouveau-dri: 3D acceleration features fo nouveau                                                      
   bbswitch: switch on/off discrete card [pending]                                                       
   nvidia: NVIDIA kernel driver [pending]                                                                
   virtualgl: alternative back-end for optirun                                                           
   lib32-virtualgl: run 32bit applications with optirun                                                  
   lib32-primus: faster back-end for optirun [pending]                                                   
installing libxvmc...                                                                                     
installing xf86-video-intel...                                                                            
>>> This driver now uses DRI3 as the default Direct Rendering                                             
   Infrastructure. You can try falling back to DRI2 if you run                                           
   into trouble. To do so, save a file with the following                                                
   content as /etc/X11/xorg.conf.d/20-intel.conf :                                                       
     Section "Device"                                                                                    
       Identifier  "Intel Graphics"                                                                      
       Driver      "intel"                                                                               
       Option      "DRI" "2"             # DRI3 is now default                                           
       #Option      "AccelMethod"  "sna" # default                                                       
       #Option      "AccelMethod"  "uxa" # fallback                                                      
     EndSection                                                                                          
Optional dependencies for xf86-video-intel                                                                
   libxrandr: for intel-virtual-output [installed]                                                       
   libxinerama: for intel-virtual-output [installed]                                                     
   libxcursor: for intel-virtual-output [installed]                                                      
   libxtst: for intel-virtual-output [installed]                                                         
   libxss: for intel-virtual-output [installed]                                                          
installing lib32-nvidia-390xx-utils...                                                                    
Optional dependencies for lib32-nvidia-390xx-utils                                                        
   lib32-opencl-nvidia                                                                                   
installing lib32-primus...                                                                                
installing linux58-nvidia-390xx...                                                                        
In order to use nvidia module, reboot the system.                                                         
installing linux58-bbswitch...                                                                            
:: Running post-transaction hooks...                                                                      
(1/6) Creating system user accounts...                                                                    
(2/6) Reloading system manager configuration...                                                           
(3/6) Reloading device manager configuration...                                                           
(4/6) Arming ConditionNeedsUpdate...                                                                      
(5/6) Updating module dependencies...                                                                     
(6/6) Updating the desktop file MIME type cache...                                                        
bumblebee: install reason has been set to 'explicitly installed'                                          
nvidia-390xx-utils: install reason has been set to 'explicitly installed'                                 
xf86-video-intel: install reason has been set to 'explicitly installed'                                   
lib32-primus: install reason has been set to 'explicitly installed'                                       
lib32-nvidia-390xx-utils: install reason has been set to 'explicitly installed'                           
linux58-nvidia-390xx: install reason has been set to 'explicitly installed'                               
linux58-bbswitch: install reason has been set to 'explicitly installed'                                   
xorg configuration file: '/etc/X11/mhwd.d/intel.conf'                                                     
Created symlink /etc/systemd/system/multi-user.target.wants/bumblebeed.service → /usr/lib/systemd/system/
bumblebeed.service.                                                                                       
> Successfully installed video-hybrid-intel-nvidia-390xx-bumblebee

Should I run the config-script manually? How would I do that?

Certainly possible, there was another thread not so long ago, where mhwd offered an incompatible driver because the PCI id has been been removed from the database.

Can anyone help with this error? Or how to correctly generate/populate the missing/empty conf files?

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

Thanks, but I tried that, I don’t seem to have the same conf files in that location and similar stuff I tried didn’t work. I got nvidia-settings to work using primusrun (I think?) and saved a configuration file to /etc/X11/mhwd.d/nvidia.conf but when I restarted the resolution was too low and couldn’t be set higher and it still didn’t seem to be loading the nvidia driver - way out of my depth at this point so going to try a fresh install letting it auto detect the wrong driver which I will then remove and replace with the correct one and see if that runs the config-script and generates the missing/empty conf files…

Appreciate your help and will let you know if it works or not…

Hurrr. So I reinstalled, letting it auto-detect the 455xx drivers in the hope that it might at least put something in the conf files…

/etc/X11/xorg.conf.d/90-mhwd.conf and /etc/X11/mhwd.d/intel.conf were still empty but /etc/modules-load.d/mhwd-gpu.conf and /etc/modprobe.d/mhwd.conf contained the following:

[dan@dan-x550cc ~]$ cat /etc/modules-load.d/mhwd-gpu.conf                   
##
## Generated by mhwd - Manjaro Hardware Detection
##

nvidia
nvidia-drm
[dan@dan-x550cc ~]$ cat /etc/modprobe.d/mhwd-gpu.conf                       
##
## Generated by mhwd - Manjaro Hardware Detection
##

blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
options nvidia "NVreg_DynamicPowerManagement=0x02"

So, I saved backups of these two conf files and then ran:

sudo mhwd -r pci video-hybrid-intel-nvidia-455xx-prime
sudo mhwd -f -i pci video-hybrid-intel-nvidia-390xx-bumblebee

and then restored the backups I took of /etc/modules-load.d/mhwd-gpu.conf and /etc/modprobe.d/mhwd.conf and added myself to the bumblebee group.

After rebooting and running optirun -b none nvidia-settings -c :8 I get a similar but slightly different error:

[  686.345849] [ERROR]Cannot access secondary GPU - error: Could not load GP
U driver

[  686.346055] [ERROR]Aborting because fallback start is disabled.

BUT I also noticed that /etc/X11/xorg.conf.d/90-mhwd.conf and /etc/X11/mhwd.d/intel.conf now have the following content:

---90-mhwd.conf---

 ##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna"
        Option      "DRI"    "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

---intel.conf---

 ##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna"
        Option      "DRI"    "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

So I think/hope I’m maybe on the right track now!?

Any further suggestions greatly welcomed…

Ah!

Doing a system update now allows optirun -b none nvidia-settings -c :8 to run and I can follow the instructions at https://wiki.manjaro.org/index.php?title=Configure_Graphics_Cards

Ah crap, now I get “failed to start sddm” when rebooting :frowning:

I have the same nvidia 720m + intel gpu, the model of my computer is DELL latitude E5540 and there was a time a couple of years ago that I really wanted a driver higher than 390xx to work, but I gave up, after all 390xx gives me no problems.
in fact I opened a topic just like you on the old forum server (this is new)
I know that this information is not useful but you know that you are not the only one in this dead end.

Hi,

Did anyone managed to install the Nvidia drivers successfully? After upgrading to 5.9.16 I’m facing a pretty similar issue with nvidia 820m.

Any potential fix would be much appreciated. Thanks.

You should not use the 5.9 kernel series, it’s long reached its end of life.