Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2017 05:26:54 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        "emilia@disroot.org" <emilia@disroot.org>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Question about nvidia driver
Message-ID:  <20171206052654.76f473b5.freebsd@edvax.de>
In-Reply-To: <VI1PR02MB12003D8AD027DC8477EFB8A6F63D0@VI1PR02MB1200.eurprd02.prod.outlook.com>
References:  <VI1PR02MB1200EC8E9BD1289A1A8BCF14F63D0@VI1PR02MB1200.eurprd02.prod.outlook.com> <e41cdbf9dc082292974f728ad69f23ff@disroot.org> <20171205165321.6ef2dabc.freebsd@edvax.de> <8fc5ff1eb5fbfe92d52611fc38884af8@disroot.org> <VI1PR02MB12003D8AD027DC8477EFB8A6F63D0@VI1PR02MB1200.eurprd02.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 5 Dec 2017 17:57:02 +0000, Manish Jain wrote:
> On 12/05/17 22:12, emilia@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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171206052654.76f473b5.freebsd>