re xfce and nvidia

Hi, folks I am new to FreeBSD. Downloaded and installed today. Tried XFCE, installed XFCE won't boot. I also installed NVidia from port, I can boot into FreeBSD but no desktop any pointers would be I would be thankful.
 
Chapter 5.8.1 Setting up the FreeBSD nVidia Driver from the handbook needs an update.

Code:
The driver will create a kernel module, which needs to be loaded at system startup. Add the following line to /boot/loader.conf:

nvidia_load="YES"

This is discouraged by revision 540866:
Code:
Do not mention loading modules via loader.conf

It is generally discouraged to load graphics kernel modules via
loader.conf(5). According to kevans@, loading Nvidia modules like this is
fragile for UEFI on FreeBSD <= 12.1. It might work, but those modules are
large and the loader's staging area is insufficient to contain kernel,
Nvidia modules, and much of anything else at the same time.

Also:
Code:
With the kernel module loaded, you normally only need to change a single line in xorg.conf to enable the proprietary driver:

Find the following line in /etc/X11/xorg.conf:

It's recommended to use single files instead of xorg.conf, and those should be placed in /usr/local/etc/X11/xorg.conf.d/ instead of /etc/X11/.
 
This is discouraged by revision 540866:
Code:
Do not mention loading modules via loader.conf

It is generally discouraged to load graphics kernel modules via
loader.conf(5). According to kevans@, loading Nvidia modules like this is
fragile for UEFI on FreeBSD <= 12.1. It might work, but those modules are
large and the loader's staging area is insufficient to contain kernel,
Nvidia modules, and much of anything else at the same time.

What would the recommended alternative be if one wants to have the driver loaded automatically at startup?
 
Set in /etc/rc.conf kld_list="nvidia" or kld_list="nvidia-modeset" , as advised in the ports/packages install message, run pkg info -D nvidia-driver.
 
Hi, folks I am new to FreeBSD. Downloaded and installed today. Tried XFCE, installed XFCE won't boot. I also installed NVidia from port, I can boot into FreeBSD but no desktop any pointers would be I would be thankful.
Could you give more information? XFCE is a desktop environment, so it can't boot.
 
Also:
Code:
With the kernel module loaded, you normally only need to change a single line in xorg.conf to enable the proprietary driver:

Find the following line in /etc/X11/xorg.conf:

It's recommended to use single files instead of xorg.conf, and those should be placed in /usr/local/etc/X11/xorg.conf.d/ instead of /etc/X11/.
 
no luck getting it running will try again later but will try kde

I don't think KDE will help much until xorg is working. I struggled to get nvidia going too but finally it worked.

My xorg.conf needed
Code:
Section "Device"
        Identifier "Card0"
        Driver     "nvidia"
EndSection

and in /etc/rc.conf I have
Code:
kld_list="nvidia-modeset"

and in /boot/loader.conf I have
Code:
nvidia_load="YES"
 
got it installed after reboot I cant edit any files when I try to edit /etc/rc.conf it tells me it unwritable
 
well it wont let me become root for some reason something has gone amiss
You have to be in the wheel group in order to su to root.
I recommend you to use tools like doas or sudo.
 
BTW, I think you should give GhostBSD a try. It's easier to setup and use than the standard FreeBSD.
 
I don't think KDE will help much until xorg is working. I struggled to get nvidia going too but finally it worked.

My xorg.conf needed
Code:
Section "Device"
        Identifier "Card0"
        Driver     "nvidia"
EndSection

and in /etc/rc.conf I have
Code:
kld_list="nvidia-modeset"

and in /boot/loader.conf I have
Code:
nvidia_load="YES"
I got kde working thanks to you and its looking good;);););):beer:
 
got kde plasma working thanks to all who helped
 

Attachments

  • Screenshot_20200830_165955.png
    Screenshot_20200830_165955.png
    993.9 KB · Views: 97
Back
Top