Hi Felix,
Michael Hirmke composed on 2016-11-21 19:30 (UTC+0100):
I'm still trying to switch somehow automatically between the nvidia and the nouveau driver, but I ran into a quite annoying problem on both openSuSE Leap 42.2 (even with the latest kernel from the kernel stable repository) and also with the latest Tumbleweed snapshot.
Neither modesetting nor nouveau will function if nomodeset or nouveau.modeset=0 is present on kernel's cmdline, while either of the latter two is required for any nvidia proprietary driver to function. Thus, I'd be surprised to learn that there is any practical way to make an automatic switch between FOSS and proprietary with any NVidia gfxchip.
I wrote a script, that - modifies /etc/X11/xorg.conf.d - modifies /etc/default/grub and runs grub2-mkconfig - modifies /etc/modprobe.d/99-local.conf and nvidia-*.conf - calls updates-alternatives -set libglx.so <path> The files are looking correct afterwards and a reboot shows that everything is in place. Neverthelesse nouveau won't load, while nvidia and nv do it. [...]
An xorg.conf.d/ that looks as follows should work in any event as long as there is no interference from installation of and subsequent incomplete removal of a proprietary NVidia driver:
-rw-r--r-- 1 root root 232 Dec 11 2015 00-keyboard.conf -rw-r--r-- 1 root root 1099 Oct 7 19:52 10-evdev.conf -rw-r--r-- 1 root root 488 Nov 3 07:16 10-libvnc.conf -rw-r--r-- 1 root root 1350 Oct 18 17:00 10-quirks.conf -rw-r--r-- 1 root root 484 Oct 7 19:52 11-evdev.conf -rw-r--r-- 1 root root 529 Jul 1 2011 50-device.conf -rw-r--r-- 1 root root 264 Oct 18 17:00 50-extensions.conf -rw-r--r-- 1 root root 527 Jul 1 2011 50-monitor.conf -rw-r--r-- 1 root root 491 Jul 1 2011 50-screen.conf
I know, I create all files with my script. And again, they seem to be sufficient for nvidia and nv, but not for nouveau. [...]
With an xorg.conf.d/ as above and no xorg.conf file at all, video regardless of gfxchip should work automagically, unless the gfxchip is too new for FOSS support to be included, or its support is broken.
It tried to load it, but also unloaded it afterwards without giving any reason.
Also new post-42.1 is /etc/X11/xorg_pci_ids/modesetting.ids. Check to see of the ID of your NV117 matches anything in it. Possibly your NV117 may be either missing and need to be there, or included but should not be. It's something else you might want to test as a possible reason why the modesetting driver tried to load but failed.
Uh, didn't know that. I'll check it.
# 99-serverlayout.conf: # ..................... Section "ServerLayout" Identifier "SingleHead_Layout" Screen "Screen_0" EndSection
That file is not present on any of my 42.2 or TW installations. Could it be a leftover from trying a proprietary nvidia driver, and the root of your scenario #2 and/or #3 failing?
No, I create it explicitly - see above. [...] Btw. - thx a lot for your hints!
Felix Miata *** http://fm.no-ip.com/
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org