Solved Help about running X (i3) with Nvidia Quadro K4200

Hi all

I installed FreebSD 14 on a HP-Z440 with an NVIDIA Quadro M4000.
GK Drivers work fine, and I can startx, and Xorg comes up.

When I exit Xorg by the Menu "Exit" it's freezing (and the Window Bars are gone too, see Pics):

Exit and then...
image1.jpeg


Xorg is frozen:
image0.jpeg


From here on, I only can login by SSH and

killall Xorg

loader.conf
Code:
#hw.vga.textmode=1
#kern.vty="vt"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"

rc.conf
Code:
hostname="regenschein"
keymap="ch.kbd"
ifconfig_em0="DHCP"
sshd_enable="YES"
moused_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

kld_list="nvidia nvidia-modeset"
# hald_enable="YES"
dbus_enable="YES"
sound_load="YES"

nvidia-smi
...drivers loaded, see screenshot:
1700832717898.png



NVIDIA Driver Config: /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf

Code:
Section "Device"
        Identifier "NVIDIA Card"
        VendorName "NVIDIA Corporation"
        Driver "nvidia"
EndSection


I was digging deep, but no light in sight.

Thanks for any help.
 
Last edited:
Code:
kld_list="nvidia nvidia-modeset"
Remove nvidia, only nvidia-modeset needs to be loaded. nvidia-modeset will automatically load nvidia as a dependency, order seems to be important here.
 
Code:
kld_list="nvidia nvidia-modeset"
Remove nvidia, only nvidia-modeset needs to be loaded. nvidia-modeset will automatically load nvidia as a dependency, order seems to be important here.

Removed & rebooted, Xorg still freezing on exit. No changes in "Freeze-Style" :)
TNX
 
startx: what does your .xinitrc look like? Is the last line something like "exec twm"?
I start it manually with "startx" command.
I don't have an .xinitrc file jet, since I have not installed i3 or any window manager. It's a pure install with the NVIDIA drivers only and xorg.
tnx.
 
tail /usr/local/etc/X11/xinit/xinitrc

Exiting twm does not end X.
Please close the xterm in the upper left corner.
OK, that did the trick.
When I click in the upper left corner window and type "exit", the "twm" is closing properly.
So, I guess I leaned now, that the "twm" (Tiling Window Manager) is not "Xorg" - Xorg is the "Server"..?.. §:cool:

Well, that's how newbies learn. It's a process, and it takes time.🥴

Thanks very much your super fast help from you all.

Next task: I'm going to install i3, if this is possible §:cool:
 
Charlie_ thanks, that's exactly what I was getting at.

bratak it should be possible to install i3.
The file .xinitrc in your user home directory is used by the startx command, so I've found it useful to always have one. It can simply be a single line,
exec whateveryourwindowmanageris
 
Charlie_ thanks, that's exactly what I was getting at.

bratak it should be possible to install i3.
The file .xinitrc in your user home directory is used by the startx command, so I've found it useful to always have one. It can simply be a single line,
exec whateveryourwindowmanageris
I see, startx triggers .xinitrc
Great, thanks mer, connecting the dots helps me understand how the system works. 👍
 
  • Like
Reactions: mer
Back
Top