Black screen / Plasma error after switching to native Nvidia driver on new install

Hi there,

this is kind of a running gag, right? No matter how far back I remember (and I can until suse 6.2): X sessions with native Nvidia driver seem to never work out of the box :frowning:
At least it is another problem after each version upgrade, so it is not boring to solve and I can come back here, meeting nice people…

What I did to see the error:

  • Install opensuse leap 15.1 from usb stick with nouveau and reboot on my notebook -> all working, except 3d stuff as expected
  • Add the usual community repos (nvidia, packman, dvdcss), update (switching to the G03 Nvidia driver) and reboot -> black screen with big mouse cursor

I tracked it down to this time not being able to build the kernel module, but there I need a little help:

  1. Current kernel after update is 4.12.14-lp151.28.10-default
  2. There is no nvidia.ko module of the current kernel:
**job2:/usr/src/linux #** find /lib/modules/4.12.14-lp151.2*/u* -name *.ko -print
/lib/modules/4.12.14-lp151.27-default/updates/nvidia.ko
/lib/modules/4.12.14-lp151.27-default/updates/nvidia-uvm.ko

  1. This is why there is no new kernel module (buried in tons of signed vs. unsigned build warnings)
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \

  1. cd /usr/src/linux && make oldconfig works fine, but make prepare fails:
**job2:/usr/src/linux #** make prepare
scripts/kconfig/conf  --silentoldconfig Kconfig
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/asm/syscalls_32.h'.  Stop.
make: *** [arch/x86/Makefile:243: archheaders] Error 2

So finally my question is: How do I get rid of this error, or where is syscall_32.tbl supposed to come from?

Thanks,
Joachim

found it: kernel-source is required. Too bad it is not in the dependencies…

so… yes - i can confirm on two pcs. Nvidia Legacy-Driver from Repo it is not working as version G03 on 15.1. Neither upgrading from 15.0, nor new install. How did you get it working? i installed kernel-source, and nvidia-xxx new, but it didn’t work:
lsmod | grep nvidia -> nothing

Is there any way to check the script-output from compile of yast after installing to see errors? What to look for?

I would file a bug-report to this, if i knew the right way to do it, so it gets solved quickly for new installs.

And you have what hardwre?

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

Hi
First off only the kernel-default-devel package needs installing, if the rpms are not working, suggest switching to the hard way…

If you browse the download directory, they are not built for the current kernel…
https://download.nvidia.com/opensuse/leap/15.1/x86_64/


pinxi -GxxS

System:    Host: grover-os151.homelinux.org Kernel: 4.12.14-lp151.28.13-default x86_64 bits: 64 compiler: gcc v: 7.4.0 
           Desktop: Gnome 3.26.2 wm: gnome-shell dm: GDM Distro: openSUSE Leap 15.1  
Graphics:  Device-1: NVIDIA GK208B [GeForce GT 710] vendor: ZOTAC driver: nvidia v: 435.17 bus ID: 00:02.0 
           chip ID: 10de:128b 
           Display: x11 server: X.Org 1.20.3 driver: nvidia compositor: gnome-shell resolution: 1366x768~60Hz 
           OpenGL: renderer: GeForce GT 710/PCIe/SSE2 v: 4.6.0 NVIDIA 435.17 direct render: Yes 

Upgrades normally do not upgrade NVIDIA driver it must be reinstalled. Likewise New installs do not include proprietary drivers. since openSUSE is pure open source. (note the name)

so, if i get this right it seems to be bad timing: the nvidia-package (at least G03) has right now not been updated to kernel 151.28.

thats why the nvidia.ko modules is missing while 151.27 module is there (according to package-files of kmp-default), which makes it impossible to use the packages for that kernel right now.

Guess this will be fixed shortly… the current solution right now (which works for me):
install kernel-source
cd /usr/src/kernel-modules/nvidia-340-whateverversion-default
make
→ this builds and installs the kernel-modules

now it works. Regards, Daniel

With an installation of Nvidia G05 (and G04 too) packets necessary for building kernel modules (and kernel module packages) are also installed:

kernel-default-devel
kernel-devel
kernel-macros
gcc
gcc7
a lot of lib*

Maybe Nvidia G03 and G02 drivers falls out of scope for a tech command.

in my original post I describe that I installed a pure, new, open Suse 15.1, then added community repos offered by the original installation and installed native nvidia drivers from it.

I think it is reasonable to expect this to work and seek for help here, if it doesn’t. Note that I don’t demand anyones help, I just think it would be good for opensuse if this would work flawlessly.

So in what way does your post help? Are you telling me I should go to another distro that has better integrated closed source support for 3d?

Confused…

Installing the kernel-source and then forcing a reinstall of the nvidia G03 driver did it for me. Sorry, I don’t know what else could be required.

Once you have that running: I had issues with brightness control and nonworking touchpad afterwards.
I experimented a lot to make these work, so Im not sure what it was in the end that did it and I am not at the notebook right now to look it up, But I will, if you need it…

P.S. Still trying to figure out why cut&paste no longer works as before (no mark to copy, then middle mouse button to paste but only more clumsy mark, then ctrl-c/ctrl-v or menu-copy/menu-paste)

Made an account here just to thank you. Facebook reminded me that its already been a year since I installed Leap 15.0 and decided to upgrade to 15.1. I followed the guides and was greeted with the low resolution screen about Plasma not being able to use OpenGL 2. Spent the next 3 days reading and experimenting until I read your post.

I hope that you will be able to sort out your problem about your screen brightness and copy/paste.

System: Host: linux-syxo Kernel: 4.12.14-lp151.28.13-default x86_64 bits: 64 compiler: gcc v: 7.4.0
Desktop: KDE Plasma 5.12.8 tk: Qt 5.9.7 wm: kwin_x11 dm: SDDM Distro: openSUSE Leap 15.1
Graphics: Device-1: NVIDIA G98M [Quadro NVS 160M] vendor: Dell driver: nvidia v: 340.107
bus ID: 01:00.0 chip ID: 10de:06eb
Display: x11 server: X.Org 1.20.3 driver: nvidia compositor: kwin_x11
resolution: 1920x1200~60Hz

Nvidia manuals mentioned that you must uninstall Nouveau drivers before installing Nvidia proprietary drivers.

Glad it helped - and thank you, effort appreciated :slight_smile:

True, but this is a bit like the sledgehammer method to open a door - easy to apply, always works, no questions asked. But not really optimal in all cases :slight_smile: