Question about nvidia driver

Polytropon freebsd at edvax.de
Wed Dec 6 04:32:26 UTC 2017


On Tue, 5 Dec 2017 17:57:02 +0000, Manish Jain wrote:
> On 12/05/17 22:12, emilia at disroot.org wrote:
> > I forgot to mention that i run 11.1-RELEASE, vt schould be enabled per default, i added it to /boot/loader.conf just to be sure though.
> > 
> > As for the nvidia-modeset the X11 server does not start if i have not loaded nvidia-modeset, regardless if i have loaded nvidia alone or not.
> > I had nvidia-modeset_load="YES" in /boot/loader.conf i have prepended nvidia_load="YES but the symptoms remain the same (after a reboot)
> > (i also have linux_load and linux64_load enabled)
> > 
> > regards,
> > emilia
> > 
> 
> Hi Emilia,
> 
> There is a problem on account of which you cannot kldload nvidia-modeset 
> via /boot/loader.conf. The sure way to kldload nvidia and nvidia-modeset
> by putting this in /etc/rc.local :
> 
> kldload nvidia
> kldload nvidia-modeset

This is more or less a workaround. There should be a setting
called kld_list in /etc/rc.conf where you can specify kernel
modules to be loaded after (!) the system has started booting
into multi- user mode and successfully mounted disks.

Adding

	kld_list="nvidia nvidia-modeset"

should work, and additionally handle possible load errors in
a convenient way.

See /etc/defaults/rc.conf for details.

Using /etc/rc.local is of course possible, but discouraged (as
it is concerned a "legacy mechanism" - see "man rc.conf" for
details); however, it usually works. ;-)



> /boot/loader.conf must have this:
> 
> kern.vty=vt

On FreeBSD 11.1, vt should already be the default, but adding
this setting will usually do no harm.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list