Solved mate desktop will not start

My FreeBSD-12.1p8 desktop unit failed and I need to switch to another host. The new unit is running the same OS version as the old. On the old desktop I used MATE and I would prefer to stick with that. The new unit was previously used as a testbed for services and never had a desktop installed. On the new unit I installed desktop-installer and ran it, selecting MATE as the desktop. The installer ran to completion and I rebooted. In my set up I boot to the shell and then invoke the GDM using startx with a .xinitrc of exec ck-launch-session mate-session.

When I run startx I get this on the console:
Code:
. . .
scfb trace: probe start
scfb trace: probe done
failed to set mtrr: Invalid argument
mate-session 1910 - - Glib-GIO-ERROE: Settings schema 'org.mate.interface' is not installed
aborting. . .
xinit: connection to X server lost

waiting for X server to shut down failed to unset mtrr: No such file or directory

(II) Server terminated successfully (0). Closing log file.
and I am put back into the shell.

The /var/log/Xorg.0.log file has this in it:
Code:
[   505.296] (II) LoadModule: "nv"
[   505.296] (WW) Warning, couldn't open module nv
[   505.296] (EE) Failed to load module "nv" (module does not exist, 0)
. . .
[   505.312] (II) Loading /usr/local/lib/xorg/modules/libint10.so
[   505.312] (II) Module int10: vendor="X.Org Foundation"
[   505.312]    compiled for 1.20.8, module version = 1.0.0
[   505.312]    ABI class: X.Org Video Driver, version 24.1
[   505.312] (II) VESA(0): initializing int10
[   505.313] (II) VESA(0): Primary V_BIOS segment is: 0xc000
[   505.409] (II) VESA(0): VESA BIOS detected
[   505.409] (II) VESA(0): VESA VBE Version 3.0
[   505.409] (II) VESA(0): VESA VBE Total Mem: 14336 kB
[   505.409] (II) VESA(0): VESA VBE OEM: NVIDIA
[   505.409] (II) VESA(0): VESA VBE OEM Software Rev: 128.40
[   505.409] (II) VESA(0): VESA VBE OEM Vendor: NVIDIA Corporation
[   505.409] (II) VESA(0): VESA VBE OEM Product: GK208 Board - 2131_0010_302
[   505.409] (II) VESA(0): VESA VBE OEM Product Rev: Chip Rev
[   505.571] (II) VESA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   505.571] (==) VESA(0): Depth 24, (--) framebuffer bpp 32
[   505.571] (==) VESA(0): RGB weight 888
[   505.571] (==) VESA(0): Default visual is TrueColor
[   505.571] (==) VESA(0): Using gamma correction (1.0, 1.0, 1.0)

Which I suspect probably has something to do with the problem. But there is also the issue of the missing org.mate.interface which is supposed to be provided by mate-desktop which is installed:
Code:
[root@vhost01 ~ (master)]# pkg provides org.mate.interface
Name    : mate-desktop-1.24.0
Desc    : Additional UI API for MATE
Repo    : FreeBSD
Filename: usr/local/share/glib-2.0/schemas/org.mate.interface.gschema.xml

[root@vhost01 ~ (master)]# pkg info mate-desktop
mate-desktop-1.24.0
Name           : mate-desktop
Version        : 1.24.0
Installed on   : Fri Jul 17 11:10:42 2020 EDT
Origin         : x11/mate-desktop
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : x11 mate
. . .
rc.conf contains:
Code:
. . .
### Kernel Modules
kld_list="fuse"                          # fuse
#cuse_load="YES"                          # webcamd
nvidia_load="YES"                    # Load GK208B / GT 710 video driver
. . .

This appears to be a problem with loading the correct drivers for the video card.
I have followed what guidance I could find and which appears to be somewhat recent.
I would appreciate any help on how to configure this to work.
 
rc.conf contains:
Anything with *_load is supposed to go in loader.conf. Within rc.conf you normally only have *_enable things. Remove the *_load. Add nvidia to kld_list to load it.

Also make sure you enable DBus: sysrc dbus_enable="YES"
 
Thanks to youtube I have gotten past this with the following changes to /boot/loader.conf:
Code:
linux_load="YES"
nvidia_load="YES"
nvidia_name="nvidia"
nvidia_modeset_load="YES"
nvidia_modeset_name="nvidia-modeset"

I also had to forcably reinstall mate-desktop for some reason.
 
Code:
nvidia_name="nvidia" 
nvidia_modeset_load="YES"
nvidia_modeset_name="nvidia-modeset"
Where did you get this from? I've seen people use them before, they don't do anything though. Just remove them.
 
The setup tutorial referred to in my youtube comment. If they do nothing then I will remove them after I get some more urgent things out of the way.
 
Nowadays it's better to use kld_list in rc.conf but loader.conf will work fine too. Depending on the card and the version of the NVidia driver you include nvidia-modeset or nvidia. You don't need to include both. The other variables just don't do anything, so it's pointless to add them, they'll only add to the confusion.

In loader.conf:
Code:
nvidia_load="YES"
# - OR -
nvidia-modeset_load="YES"

Using kld_list in rc.conf:
Code:
kld_list="nvidia"
# - OR -
kld_list="nvidia-modeset"

Nothing else needs to be set.
 
loader.conf returned to its original state. RC.conf contains:
Code:
kld_list="linux nvidia-modeset fuse cuse"
 
Now I need to discover why mate-settings-daemon will not start. Or at least why I get a message saying so when I enter System -> Preferences -> Look and Feel -> Appearance in mate.
 
Back
Top