Nvidia Drivers not configured properly

I tried installing Nvidia drivers with Yast using the community repository. After I install it, opening the Nvidia settings brings up a message telling me to run Nvidia-Xconfig. I do but after reboot the system hangs at boot. I can’t quite remember what its stuck at but I’ve reinstalled a few times. Kind of frustrating :’(. If I installed leap, maybe It would just work with no fussing around? im not too sure. :\

Edit: Also should mention its running Intel graphics, but it also has Nvidia geforce 940MX.

If you enabled “Force Composition Pipeline” and it was added to /etc/X11/xorg.conf, that can cause the desktop to freeze when loading.

From “man nvidia-xconfig”

A backup of the original configuration is created with “.backup” appended. For example, if your X configuration is /etc/X11/xorg.conf then nvidia-xconfig will copy it to /etc/X11/xorg.conf.backup before writing the new configuration.

–restore-original-backup
Restore a backup of the X configuration that was made before any changes were made by nvidia-xconfig, if such a backup
is available. This type of backup is made by nvidia-xconfig before it modifies an X configuration file that it has not
previously touched; this is assumed to be an X configuration file that predates the involvement of the NVIDIA X
driver. As an example, nvidia-xconfig will copy an X configuration file at /etc/X11/xorg.conf to
/etc/X11/xorg.conf.nvidia-xconfig-original the first time it makes changes to that file.

   nvidia-xconfig
          Reads an existing X config file and adapts it to use the NVIDIA driver.  If no X config file can be found, a  new  one
          is created at /etc/X11/XF86Config with default settings.
ls -l /etc/X11

Edit: Also should mention its running Intel graphics, but it also has Nvidia geforce 940MX.

Optimus Graphics?

That is only supported by bumblebee.

Please post:

/sbin/lspci -nnk | grep -EiA3 'vga|3d|display'

Yes I am aware of Bumblebee but on Ubuntu based distros the Nvidia X server settings allowed me to just run the graphics card.
My output is
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
Subsystem: Acer Incorporated [ALI] Device [1025:111a]
Kernel driver in use: i915
Kernel modules: i915

01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:179c] (rev a2)
Subsystem: Acer Incorporated [ALI] Device [1025:111a]
Kernel modules: nouveau, nvidia_drm, nvidia
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)

Their is no force composition pipeline in /etc/X11/xorg.conf.

When I run the nvidia-xconfig - it says their was no config file to begin with, so It creates a new one. System hangs at boot, and going into a tty console makes the monitor flash like a rave so I have to try to get in from the grub.

System hangs at boot…

At what point exactly?

Why are you running nvidia-xconfig? What are you trying to change?

If you never get to the display manager, try:
Reboot and press E at GRUB2, then add nomodeset and 3 to the group “splash=silent quiet showopts”. For example: “splash=silent quiet nomodeset 3 showopts”

Then you can at least check and modify xorg.conf, or restore the original as shown above.

You can also boot from a snapshot in GRUB2 if all else fails.

Which package are you using: x11-video-nvidiaG02, x11-video-nvidiaG03 or x11-video-nvidiaG04?

Nvm, my system dosen’t really hang at boot, it just sits at a tty1 screen and flashes a few times before I start typing. I’m using Nvidia-Xconfig becuase the Nvidia x server settings tell me to run it or edit the file. I’m not sure what “nomodeset 3” in the bios does, and I’m not really sure how to start editing the xconfig file.

I’m not %100 sure about nomodeset, because I’ve been unable to find the official documentation for it.
However, it seemingly prevents drivers like nvidia and nouveau from being loaded prior to X being loaded.
3 ensures you boot to a virtual console (multi-user.target)

To edit xorg.conf

vim /etc/X11/xorg.conf

https://github.com/yuanqing/vim-basics

Although if you don’t know what the problem is, you probably just want to revert the file.

nvidia-xconfig --restore-original-backup

or

undochange [options] number1…number2 [files]
Undo changes done between snapshot number1 and number2.

http://snapper.io/manpages/snapper.html

I’m using Nvidia-Xconfig becuase the Nvidia x server settings tell me to run it or edit the file.

I’ve never had that happen; although, I install “the hard way”.
Is it telling you that after you try to change something specific?

For reference, here is the xorg.conf created for my system by the official 390.25 driver installer:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.25  (buildmeister@swio-display-x86-rhel47-03)  Wed Jan 24 20:46:04 PST 2018


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection


Section "Files"
EndSection


Section "InputDevice"
    # generated from data in "/etc/sysconfig/mouse"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "yes"
    Option         "ZAxisMapping" "4 5"
EndSection


Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection


Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection


Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection


Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Did you add your user to video group?

I have a similar, perhaps identical, issue on my machine. My output:

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5917] (rev 07)
        Subsystem: Hewlett-Packard Company Device [103c:83ad]
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 08)
        Subsystem: Hewlett-Packard Company Device [103c:83ad]
--
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1d10] (rev a1)
        Subsystem: Hewlett-Packard Company Device [103c:83ad]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

The installation of Leap 42.3 appears to have defaulted to the integrated graphics (identified as Intel UHD Graphics 620 when the machine is booted into Windows). This may be the cause of the machine running hot when booted into openSUSE Leap 42.3. Anyway, I want to use the NVIDIA graphics (identified as nVidia GeForce MX150 in Windows).

What do I change, and how, to do this?

There appears to be no graphics configuration available under YAST. Like mattinthehat I have tried running nvidia-config with the same disastrous results - I could only recover by doing a snapper rollback.

The nvidia G04 drivers are already installed (with drm-kmp-default removed) but they are not used since the nvidia graphics system seems not to be used. The Info Centre: Graphical Information: OpenGL shows the driver as OpenGL version 3.0 Mesa 17.0.5 from VMware Inc. - this is presumably the driver for the integrated graphics which Leap 42.3 defaults to.

Your output shows:

Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia

What is the output of

hwinfo --gfxcard
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5917] (rev 07)
        Subsystem: Hewlett-Packard Company Device [103c:83ad]
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 08)
        Subsystem: Hewlett-Packard Company Device [103c:83ad]
--
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1d10] (rev a1)
        Subsystem: Hewlett-Packard Company Device [103c:83ad]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

I think, this is only supported by Bumblebee, not the normal Nvidia Driver.
https://en.opensuse.org/SDB:NVIDIA_Bumblebee

Output of hwinfo --gfxcard is:

08: PCI 02.0: 0300 VGA compatible controller (VGA)              
  [Created at pci.378]
  Unique ID: _Znp.0A3YPedDGC4
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x5917 
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x83ad 
  Revision: 0x07
  Memory Range: 0xb2000000-0xb2ffffff (rw,non-prefetchable)
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  I/O Ports: 0x5000-0x503f (rw)
  IRQ: 255 (no events)
  Module Alias: "pci:v00008086d00005917sv0000103Csd000083ADbc03sc00i00"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

24: PCI 100.0: 0302 3D controller
  [Created at pci.378]
  Unique ID: VCu0.1s4GERXo+D2
  Parent ID: z8Q3.klV5hYZL9I5
  SysFS ID: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia 3D controller"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1d10 
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x83ad 
  Revision: 0xa1
  Driver: "nvidia"
  Driver Modules: "nvidia"
  Memory Range: 0xb3000000-0xb3ffffff (rw,non-prefetchable)
  Memory Range: 0xa0000000-0xafffffff (ro,non-prefetchable)
  Memory Range: 0xb0000000-0xb1ffffff (ro,non-prefetchable)
  I/O Ports: 0x4000-0x4fff (rw)
  IRQ: 16 (no events)                                                                                                                      
  Module Alias: "pci:v000010DEd00001D10sv0000103Csd000083ADbc03sc02i00"                                                                    
  Driver Info #0:                                                                                                                          
    Driver Status: nouveau is not active                                                                                                   
    Driver Activation Cmd: "modprobe nouveau"                                                                                              
  Driver Info #1:                                                                                                                          
    Driver Status: nvidia_drm is active                                                                                                    
    Driver Activation Cmd: "modprobe nvidia_drm"                                                                                           
  Driver Info #2:
    Driver Status: nvidia is active
    Driver Activation Cmd: "modprobe nvidia"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #16 (PCI bridge)

Primary display adapter: #8

Again, it seems the nvidia driver is active.
I’m guessing you need to investigate Sauerland’s answer.

There appears to be no graphics configuration available under YAST.

In a terminal:


nvidia-settings

OK. I have followed the instructions for setting up Bumblebee as in Sauerland’s answer and link and restarted the machine.
I tested to see if Bumblebee was working by running

optirun --status

and I got the messages:
[ERROR] The Bumblebee daemon has not been started yet or the socket path tatus was incorrect
[ERROR] Could not connect to the bumblebee daemon - is it running?

If I now run run hwinfo – gfxcard I get the output:

08: PCI 02.0: 0300 VGA compatible controller (VGA)              
  [Created at pci.378]
  Unique ID: _Znp.0A3YPedDGC4
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x5917 
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x83ad 
  Revision: 0x07
  Memory Range: 0xb2000000-0xb2ffffff (rw,non-prefetchable)
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  I/O Ports: 0x5000-0x503f (rw)
  IRQ: 255 (no events)
  Module Alias: "pci:v00008086d00005917sv0000103Csd000083ADbc03sc00i00"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

24: PCI 100.0: 0302 3D controller
  [Created at pci.378]
  Unique ID: VCu0.V_39mEhVGj1
  Parent ID: z8Q3.klV5hYZL9I5
  SysFS ID: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia 3D controller"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1d10 
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x83ad 
  Revision: 0xff
  Memory Range: 0xb3000000-0xb3ffffff (rw,non-prefetchable)
  Memory Range: 0xa0000000-0xafffffff (ro,non-prefetchable)
  Memory Range: 0xb0000000-0xb1ffffff (ro,non-prefetchable)
  I/O Ports: 0x4000-0x4fff (rw)
  IRQ: 16 (no events)                                                                                                                      
  Module Alias: "pci:v000010DEd00001D10sv0000103Csd000083ADbc03sc02i00"                                                                    
  Driver Info #0:                                                                                                                          
    Driver Status: nouveau is not active                                                                                                   
    Driver Activation Cmd: "modprobe nouveau"                                                                                              
  Driver Info #1:                                                                                                                          
    Driver Status: nvidia_drm is not active                                                                                                
    Driver Activation Cmd: "modprobe nvidia_drm"                                                                                           
  Driver Info #2:                                                                                                                          
    Driver Status: nvidia is not active                                                                                                    
    Driver Activation Cmd: "modprobe nvidia"                                                                                               
  Config Status: cfg=new, avail=yes, need=no, active=unknown                                                                               
  Attached to: #16 (PCI bridge)                                                                                                            
                                                                                                                                           
Primary display adapter: #8  

False alarm! I had not configured bumblebee in bumblebee.conf correctly. Running optirun --status now produces the desired message.

Hello,

I add myself to the queue on the issue: I get the same issues of nvidia-settings telling me to run nvidia-xconfig and nvidia-xconfig subsequently bringing me to a flickering TTY where I can barely manage to login. Fortunately by loggin in as root and deleting xorg.conf the x server suddenly starts up and the pc is functional again.

I will add that my pc is not an optimus one, it’s an old Asus with a GeForce 710M. I don’t want to risk breaking anything by installing bumblebee…

Drivers are correctly installed (I got nvidia-gfxG03-kmp-default after checking compatibility on nvidia’s website) and they’re also correctly recognised and loaded since the hwinfo gives me this:


09: PCI 02.0: 0300 VGA compatible controller (VGA)               
  [Created at pci.378]
  Unique ID: _Znp.dSULDHE_czE
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel 3rd Gen Core processor Graphics Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x0166 "3rd Gen Core processor Graphics Controller"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x124d  
  Revision: 0x09
  Driver: "i915"
  Driver Modules: "drm"
  Memory Range: 0xf7400000-0xf77fffff (rw,non-prefetchable)
  Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable)
  I/O Ports: 0xf000-0xf03f (rw)
  IRQ: 28 (253684 events)
  Module Alias: "pci:v00008086d00000166sv00001043sd0000124Dbc03sc00i00"
  Driver Info #0:                                                                                                                                                                                                                                   
    Driver Status: i915 is active                                                                                                                                                                                                                   
    Driver Activation Cmd: "modprobe i915"                                                                                                                                                                                                          
  Config Status: cfg=no, avail=yes, need=no, active=unknown                                                                                                                                                                                         
                                                                                                                                                                                                                                                    
21: PCI 100.0: 0302 3D controller                                                                                                                                                                                                                   
  [Created at pci.378]                                                                                                                                                                                                                              
  Unique ID: VCu0.mbzKW+yrEP5                                                                                                                                                                                                                       
  Parent ID: vSkL.v25CjI6whP9                                                                                                                                                                                                                       
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0                                                                                                                                                                                           
  SysFS BusID: 0000:01:00.0                                                                                                                                                                                                                         
  Hardware Class: graphics card                                                                                                                                                                                                                     
  Model: "ASUSTeK GeForce GT 710M"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1140 "GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x223a "GeForce GT 710M"
  Revision: 0xa1
  Driver: "nvidia"
  Driver Modules: "nvidia"
  Memory Range: 0xf6000000-0xf6ffffff (rw,non-prefetchable)
  Memory Range: 0xe0000000-0xefffffff (ro,non-prefetchable)
  Memory Range: 0xf0000000-0xf1ffffff (ro,non-prefetchable)
  I/O Ports: 0xe000-0xefff (rw)
  Memory Range: 0xf7000000-0xf707ffff (ro,non-prefetchable,disabled)
  IRQ: 16 (272 events)
  Module Alias: "pci:v000010DEd00001140sv00001043sd0000223Abc03sc02i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #1:
    Driver Status: nvidia is active
    Driver Activation Cmd: "modprobe nvidia"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #8 (PCI bridge)

Primary display adapter: #9

but the PC still runs on the integrated graphics (output of lspci -vnn | grep VGA):


00:02.0 **VGA** compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 **VGA** controller])

[FONT=arial]
What should I do? Should I try installing bumblebee as well? It does not make sense since my laptop is not an optimus one. Any other solution, given that I tried everything in this thread except going bumblebee?[/FONT]