GUI broken due to failed NVidia driver installation

Hardware: Dell Mobile Precision 7520 (Laptop)
Video: NVIDIA Quadro M1200, Intel HD Graphics 630
OS: OpenSUSE Leap 42.3

Current Operational Problem: Boots into terminal screen. Screen flashes once per second.
How this happened: Attempted to install the proprietary Nvidia driver using the instructions forNVIDIA_the_hard_way.

Other things I tried:

  • Reverting to nouveau in a desperate attempt to get my computer working again. It failed.
  • Installing RPM redhat video drivers from the Dell website for this laptop. The Nvidia installation failed due to newer kernel.
  • Reinstalling proprietary driver. It claims success but does not boot up properly.

I’m not exactly sure how to proceed. Any help would be greatly appreciated!

Hi and welcome to the Forum :slight_smile:
You need to set up Bumblebee for the dual graphics, see here;
https://en.opensuse.org/SDB:NVIDIA_Bumblebee

Hello malcolmlewis, thank you for your quick reply.

I tried all the steps explained in your link, except that instead of installing the NVidia driver the easy way, I did it the hard way with the proprietary driver program.

The entire procedure appeared to go flawlessly. Unfortunately when I rebooted to test it, I am greeted with a black screen and a mouse cursor. It’s as if Plasma shell has not booted up.

Any ideas what I should try next?

Hi
What desktop environment are you using, looks like newish hardware (Touchscreen, 4K etc?), wonder if it needs a later kernel…

Do you have the package drm-kmp-default installed, if so remove that and rebuild initrd;


zypper rm drm-kmp-default
mkinitrd

No touch screen, no 4K. The specs are very nice for a laptop, but I opted out of bells and whistles like that.

Note that when I installed OpenSUSE everything worked fine, so I don’t think this is a newish-hardware problem. Since the nouveau driver was glitchy and the OS complained about “no video accelerator found” when using VMWare Player, I decided to take the Leap (pun intended) and install the proprietary drivers. That’s why I’m having problems now.

**sudo zypper rm drm-kmp-default**
[sudo] password for root: 
Loading repository data...
Reading installed packages...
'drm-kmp-default' not found in package names. Trying capabilities.
Resolving package dependencies...

The following 4 packages are going to be REMOVED:
  bbswitch bbswitch-kmp-default kernel-default-4.4.76-1.1 kernel-default-4.4.126-48.2

4 packages to remove.
After the operation, 473.8 MiB will be freed.
Continue? [y/n/...? shows all options] (y): **y**
(1/4) Removing bbswitch-0.8-12.2.1.x86_64 .................................................................................................................................................................[done]
(2/4) Removing bbswitch-kmp-default-0.8_k4.4.114_42-12.2.1.x86_64 .........................................................................................................................................[done]
Additional rpm output:
Creating initrd: /boot/initrd-4.4.126-48-default                                                                                                                                                                 
dracut: Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-4.4.126-48-default 4.4.126-48-default                                                                              
dracut: *** Including module: bash ***                                                                                                                                                                           
dracut: *** Including module: systemd ***                                                                                                                                                                        
dracut: *** Including module: warpclock ***                                                                                                                                                                      
dracut: *** Including module: systemd-initrd ***                                                                                                                                                                 
dracut: *** Including module: i18n ***                                                                                                                                                                           
dracut: Could not find FONT_MAP none!                                                                                                                                                                            
dracut: *** Including module: drm ***                                                                                                                                                                            
dracut: *** Including module: plymouth ***                                                                                                                                                                       
dracut: *** Including module: btrfs ***                                                                                                                                                                          
dracut: *** Including module: kernel-modules ***                                                                                                                                                                 
dracut: *** Including module: resume ***                                                                                                                                                                         
dracut: *** Including module: rootfs-block ***                                                                                                                                                                   
dracut: *** Including module: suse-btrfs ***                                                                                                                                                                     
dracut: *** Including module: suse-xfs ***                                                                                                                                                                       
dracut: *** Including module: terminfo ***                                                                                                                                                                       
dracut: *** Including module: udev-rules ***                                                                                                                                                                     
dracut: Skipping udev rule: 40-redhat.rules                                                                                                                                                                      
dracut: Skipping udev rule: 50-firmware.rules                                                                                                                                                                    
dracut: Skipping udev rule: 50-udev.rules                                                                                                                                                                        
dracut: Skipping udev rule: 91-permissions.rules                                                                                                                                                                 
dracut: Skipping udev rule: 80-drivers-modprobe.rules                                                                                                                                                            
dracut: *** Including module: biosdevname ***                                                                                                                                                                    
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: haveged ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including module: suse ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies and firmware ***
dracut: *** Installing kernel module dependencies and firmware done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done***
dracut: *** Pre-linking files ***
dracut: *** Pre-linking files done ***
dracut: *** Hardlinking files ***
dracut: *** Hardlinking files done ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing GenuineIntel.bin ****
dracut: *** Store current command line parameters ***
dracut: Stored kernel commandline:
dracut:  resume=UUID=14028f7d-0863-42b3-be62-c96d03ec37eb
dracut:  root=UUID=b635e39f-3012-4e4d-827b-1670d0673cf2 rootfstype=btrfs rootflags=rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot
dracut: *** Creating image file '/boot/initrd-4.4.126-48-default' ***
dracut: *** Creating initramfs image file '/boot/initrd-4.4.126-48-default' done ***
Creating initrd: /boot/initrd-4.4.76-1-default
dracut: Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-4.4.76-1-default 4.4.76-1-default
dracut: *** Including module: bash ***
dracut: *** Including module: systemd ***
dracut: *** Including module: warpclock ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: Could not find FONT_MAP none!
dracut: *** Including module: drm ***
dracut: *** Including module: plymouth ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: suse-btrfs ***
dracut: *** Including module: suse-xfs ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: biosdevname ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: haveged ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including module: suse ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies and firmware ***
dracut: *** Installing kernel module dependencies and firmware done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done***
dracut: *** Pre-linking files ***
dracut: *** Pre-linking files done ***
dracut: *** Hardlinking files ***
dracut: *** Hardlinking files done ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing GenuineIntel.bin ****
dracut: *** Store current command line parameters ***
dracut: Stored kernel commandline:
dracut:  resume=UUID=14028f7d-0863-42b3-be62-c96d03ec37eb
dracut:  root=UUID=b635e39f-3012-4e4d-827b-1670d0673cf2 rootfstype=btrfs rootflags=rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot
dracut: *** Creating image file '/boot/initrd-4.4.76-1-default' ***
dracut: *** Creating initramfs image file '/boot/initrd-4.4.76-1-default' done ***


(3/4) Removing kernel-default-4.4.126-48.2.x86_64 .........................................................................................................................................................[done]
(4/4) Removing kernel-default-4.4.76-1.1.x86_64 ...........................................................................................................................................................[done]

**sudo mkinitrd**
No kernel found in /boot or bad modules dir in /lib/modules

eh… I think I broke it even more :frowning:

Hi
Re-install the kernel;


zypper in kernel-default

Strange you don’t see drm-kmp-default… what repositories do you have? Also desktop environment in use?

Thanks. Done.

My repositories should be the default. I haven’t really done much with this OS since I installed it fresh a week or two ago. I’m using KDE. Think of this as a fresh install of OpenSUSE Leap with KDE.

I’m still getting a black screen with mouse cursor.

So I guess I should re-install the OS and continue using nouveau since that worked?

Hi
Well you should just remove the Bumblebee stuff and make sure there is no nouveau.conf file in /etc/modprobe.d that blacklists the nouveau driver and run the mkinitrd command and see how it goes.

Can you disable the nvidia or intel gpu in the BIOS?

No, I checked.

Before doing that, since Xorg starts up fine (which is why I see a mouse cursor that I can move around with my mouse), what procedure can I use to find out why Plasma shell is not starting up? Is there a log somewhere that might give me a clue as to why it’s not showing me any interface?

In other words I don’t think the graphics driver failed. What might you recommend other than giving up?

On Tue 22 May 2018 10:56:03 PM CDT, N1GHTS wrote:

malcolmlewis;2866238 Wrote:
> Can you disable the nvidia or intel gpu in the BIOS?

No, I checked.

malcolmlewis;2866238 Wrote:
>
> Well you should just remove the Bumblebee stuff and make sure there is
> no nouveau.conf file in /etc/modprobe.d that blacklists the nouveau
> driver and run the mkinitrd command and see how it goes.

Before doing that, since Xorg starts up fine (which is why I see a mouse
cursor that I can move around with my mouse), what procedure can I use
to find out why Plasma shell is not starting up? Is there a log
somewhere that might give me a clue as to why it’s not showing me any
interface?

In other words I don’t think the graphics driver failed. What might you
recommend other than giving up?

Hi
Hopefully a Plasma user can offer some pointers, I’m a GNOME user…


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 RC4 | GNOME Shell 3.26.2 | 4.12.14-18-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

There are two graphic cards in your system. It is important to know which one is in use.

When your system has completed startup and you are logged in (no plasma shell but moving mouse cursor) can you then switch to a console (Ctrl+Alt+F2)?

If so please login and post the result of the following commands:

> lsmod | grep -e i915 nouveau nvidia
> systemctl status bumblebeed
>systemctl status dkms
> cat /etc/modprobe.d/50-blacklist.conf | grep nouveau

Regards

susejunky

Yes I can. And thank you so much for your help!


**> lsmod | grep -e i915 nouveau nvidia**
grep: nouveau: No such file or directory
grep: nvidia: No such file or directory

**> systemctl status bumblebeed**
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-05-23 13:30:47 EDT; 5min ago
 Main PID: 1406 (bumblebeed)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/bumblebeed.service
           └─1406 /usr/sbin/bumblebeed

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

**> systemctl status dkms**
● dkms.service - Builds and install new kernel modules through DKMS
   Loaded: loaded (/usr/lib/systemd/system/dkms.service; enabled; vendor preset: disabled)
   Active: active (exited) since Wed 2018-05-23 13:30:47 EDT; 6min ago
     Docs: man:dkms(8)
  Process: 1084 ExecStart=/bin/sh -c dkms autoinstall --verbose --kernelver $(uname -r) (code=exited, status=0/SUCCESS)
 Main PID: 1084 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 512)
   CGroup: /system.slice/dkms.service

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

**> cat /etc/modprobe.d/50-blacklist.conf | grep nouveau**
blacklist nouveau

I eagerly look forward to your next suggestions! Thank you so much!

Sorry! I made a mistake. That should have been

> lsmod | grep -e i915 -e nouveau -e nvidia

so could you please post the result of the revised command.

This looks like bumblebee is installed and running on your system. I use bumblebee as well but with the nouveau driver and not the nvidia driver.

From your posts i think you installed the NVIDIA driver from the NVIDIA website. Is that correct?

Where did you install bumblebee from?

Could you please post the result of

> zypper lr -uEP

and

> zypper se -si bumblebee

Regards

susejunky

**> lsmod | grep -e i915 -e nouveau -e nvidia**
nvidia_modeset       1110016  0 
nvidia              14368768  1 nvidia_modeset
ipmi_msghandler        53248  1 nvidia
i915                 1396736  3 
i2c_algo_bit           16384  1 i915
drm_kms_helper        167936  1 i915
drm                   397312  4 i915,drm_kms_helper
video                  40960  2 i915,dell_wmi
button                 16384  1 i915

Then perhaps this effort will benefit both of us.

Yes. The following is the command I used to install the proprietary NVidia drivers.

**> sudo ~/Downloads/NVIDIA-Linux-x86_64-390.59.run**

My home folder, though since I ran “sudo” it’s irrelevant where I installed it from.

**> sudo zypper in bumblebee bbswitch**

*(https://en.opensuse.org/SDB:NVIDIA_Bumblebee)

**> zypper lr -uEP**
#  | Alias               | Name                              | Enabled | GPG Check | Refresh | Priority | URI                                                              
---+---------------------+-----------------------------------+---------+-----------+---------+----------+------------------------------------------------------------------
 6 | repo-non-oss        | openSUSE-Leap-42.3-Non-Oss        | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/
 7 | repo-oss            | openSUSE-Leap-42.3-Oss            | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/distribution/leap/42.3/repo/oss/    
10 | repo-update         | openSUSE-Leap-42.3-Update         | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/leap/42.3/oss/               
11 | repo-update-non-oss | openSUSE-Leap-42.3-Update-Non-Oss | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/leap/42.3/non-oss/

**> zypper se -si bumblebee**
Repository 'openSUSE-Leap-42.3-Update' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...

S  | Name      | Type    | Version     | Arch   | Repository            
---+-----------+---------+-------------+--------+-----------------------
i+ | bumblebee | package | 3.2.1-13.18 | x86_64 | openSUSE-Leap-42.3-Oss

That is very unlikely to work. nVidia installer replaces original Xorg modules with nVidia specific ones while bumblebee expects nVidia specific modules to be installed in another location and used only on-demand, by telling started Xorg instance to look for these modules in non-standard place.

Sorry! English is not my mother tongue so i probably phrased my question not correctly. All i wanted to know was which respository you used to install bumblebee from (there are at least four possibilities i know of).

Judging by the results you posted (of both “zypper” commands) i would say you are using bumblebee from the openSUSE 42.3 OSS repository (the same i use).

Well, that is not the whole truth: You did NOT install the NVIDIA driver as described here https://en.opensuse.org/SDB:NVIDIA_drivers#Easy_way_to_get_NVIDIA_drivers Instead you installed the NVIDIA driver from the NVIDIA website (as described here https://en.opensuse.org/SDB:NVIDIA_the_hard_way).

I do not use the NVIDIA driver so i don’t know if your deviation is the cause for your problem. However here a few things i came across when i searched the web (roughly a year ago) when i had to deal with bumblebee the very first time in my life:

[ul]
[li]It was said that - in case the NVIDIA driver is used - the user who wants to use bumblebee must belong to the “video” group (and the “bumblebee” group). It might be worth checking your user and adding him to the “video” group. [/li][li]It was highly recommended to use the NVIDIA drivers provided by the bumblebee project and NOT to use NVIDIAs original driver (the N*.run file). There were two reasons mentioned why one should do so: [/li][/ul]

[LIST=1|INDENT=2]
[li]This driver is automaticly rebuild (=> dkms) when the kernel was updated. [/li][li]This driver is “adapted” to better fit in with bumblebee. [/li][/LIST]

BUT REMEMBER: I did not verify any of this. I do not use the NVIDIA driver.

The easiest way to get a working system may indeed be a fresh installation of openSUSE. If i recall correctly openSUSE 15.0 will be released tomorrow. So you could go for the latest version.

The more challeging way is to uninstall the NVIDIA driver (the N*.run file) and to make sure that all the changes made by the two installation procedures (https://en.opensuse.org/SDB:NVIDIA_Bumblebee and https://en.opensuse.org/SDB:NVIDIA_the_hard_way) you have been following will be undone.

Afterwards you can install the NVIDIA driver (NOT the N*.run file but the one from the repository) again.

Regards

susejunky

[/li][/LIST]

nVidia drivers support DKMS just fine.

This driver is “adapted” to better fit in with bumblebee.

That’s correct. Although it is not “better fit” - you cannot use iGPU with stock nVidia drivers at all (at least, if you want to use OpenGL which is almost mandatory for today’s desktop environments).

I don’t understand why you used the run driver when there is a perfectly good rpm driver offered from nvidia which gets auto updated when ever the kernel is updated
with every kernel update (Leap does get kernel updates) you have to manually reinstall the run driver or the GUI will break
my recommendation is remove the run driver and install the appropriate rpm driver from nvidia


sudo ~/Downloads/NVIDIA-Linux-x86_64-390.59.run --uninstall
sudo zypper ar -f http://http.download.nvidia.com/opensuse/leap/42.3/ nvidia
sudo zypper inr

if zypper inr does not install the nvidia driver (it should pull the appropriate driver for your hardware) pull it manually

zypper in x11-video-nvidiaG04

reboot
and that’s it

Ooops!

I did not know that the N*.run NVIDIA driver (the one i was talking about and that the OP used for installation) did make use of DKMS.

Sorry for providing incorrect information!

(But as i said: i never used any NVIDIA driver nor did i verify the information i cited.)

Regards

susejunky