Talk:Nouveau & nvidia-drivers switching

Rondo (talk) 12:11, 13 December 2013 (UTC) The article suggests 2 kernels, why not just blacklist the nvidia/nouveau module on boot and change xorg.conf?

Switching using a single kernel and systemd (but also openrc and maybe others or maybe this is independant from the init system?)
i did successfully blacklist the nvidia-driver via the grub2 modprobe.blacklist=nvidia option and it did work with openrc. this paragraph should not mention systemd as a prerequisite to do this.

Reuben (talk)

Loading modules for the kernel command line is not the issue. You need a mechanism to control switching the opengl/opencl x11 drivers in xorg.conf. The current documentation uses a systemd environment variable. Not sure if openrc supports setting any environment variables from kernel command line. You might be able to change it according to results from querying the kernel command line via /proc/cmdline

e3k (talk)

@Reuben. Thank you for the explanation. I did not go further than changing the grub to mask the driver i do not need. All the other steps like xorg.conf and opengl settings are done manually. It is sufficient for me as the biggest (timeconsuming) problem for me would be the kernel recompilation.

FireFish5000 (talk) 00:08, 31 July 2015 (UTC)

FWIW, xdm and other Openrc /etc/init.d/ use  to test for things. eg. if get_bootparam "nox" ; then touch /etc/.noxdm fi So switching bootvar to "nvidia" or "nouveau" and adding such to the boot parameters should work. I will test in a moment(with efibootmgr/openrc) and see.
 * 1) /etc/init.d/xdm-setup
 * 2) Copyright 1999-2009 Gentoo Foundation
 * 3) Distributed under the terms of the GNU General Public License v2