I believe this is only needed if you want some sort of hardware acceleration. I don't need that, and don't install those drivers, and it is working well for basic access.
I didn't see anything in the xorg log that clued me in on a problem, but I might be missing something.
I have found that...
...but now i have another issue
i need now to edit to /etc/X11/xrdp/xorg.conf , for my device but i dont know what i need to do drm-kmod is for amd and intel not nvidia so i used (nvidia-drm-kmod)
but now how to find my render device and should i keep DRMAllowlist as is or edit it for nvidia
hello i am using freebsd on my computer (not headless device and using DE on it and installed display drivers - nvidia)
and i wish to be able to connect to it its DE remotely not just ssh but both tigervnc and xrdp refuses to work
uname -a
FreeBSD freebsd 15.1-RELEASE-p3 FreeBSD...
If you already have up-to-date ports tree (for the driver version) and /usr/src/sys/ 100% in sync with your running kernel.
My assumption on previous comment was that the only remaining problem is that you cannot fetch NVIDIA driver distfile.
...which is incomparable to more than 1 million lines of (I suppose) mostly blindly generated code.
This sounds familiar... Aha!
enabled-the-nvidia-gpu-passthrough-inside-a-linux-virtual-machine-via-qemu-accelerated-with-bhyve.102901/
EDIT: Sadly, I got it wrong. There is also an...
If the issue is about distfile of x11/nvidia-{kmod|driver} on latest branch, can't you download it here? Both uses exactly the same distfile to build.
https://us.download.nvidia.com/XFree86/FreeBSD-x86_64/595.99.02/NVIDIA-FreeBSD-x86_64-595.99.02.tar.xz
...ports tree is also mirrored there. You don't have to get it from git.freebsd.org.
https://github.com/freebsd/freebsd-ports
https://gitlab.com/FreeBSD/freebsd-ports
Although I suspect it's downloading the distfiles from the NVidia website that's problematic, not so much the ports tree itself.
If the variable is tunable and readonly, /etc/sysctl.conf or sysctl command cannot take effect.
Readonly tunables (like hw.nvidiadrm.modeset for nvidia-drm.ko) needs to be set BEFORE the variable is actually needed (i.e., on loading nvidia-drm.ko for hw.nvidiadrm.modeset tunable), so needed to...
...old gpu RTX2080.
My pkg repository for port is pointing to latest. I did port upgrade and freebsd-fetch install. The port provided me with nvidia-drm-66-kmod-595.91.07.
It crashed my display manager sddm and dropped me to the console. I tried to start my window manager on console and...
jesus 😁, please give me power , let me can access freebsd ports to fast build x11/nvidia-kmod ..... the ccp block me to build anything from ports. do you have some proxy ? or other way to go ?
most time i have installed app from binary .....
To be safe, if anyone want to unload kernel modules after load, don't rely on autoloading.
Confirm relationship (depend on / depended upon) first, and carefully specify the order NOT to cause autoloads (all that needed are already loaded).
This COULD allow unloading later. But some modules are...
More precisely:
nvidia-modeset.ko pulls in nvidia.ko as its dependency.
nvidia.ko pulls in linux.ko as its dependency for Linux compatibility support.
linux.ko pulls in mqueuefs.ko and linux_common.ko as its dependency.
Build x11/nvidia-kmod locally via ports with LINUX option disabled...
You're going to need to build x11/nvidia-kmod with LINUX turned off. You cannot unload them because technically they're "in use" (there's a module depending on them, namely nvidia; which is autoloaded by nvidia-modeset)
thanks for your god voice ... but i cannot kldunload linux.ko and linux_common.ko .....what way i can go to turn off linux.ko and linx_common.ko autoload when system boot. thanks.
Yes, it's due to the LINUX option of x11/nvidia-kmod. Note that the driver doesn't require linux to function, it works fine without it. It's merely there so the driver can be used with the Linux Compatibility layer. If you don't use the Linux compatibility you can turn the option off.
sysrc linux_enable="YES"
The /etc/rc.d/linux rc script will load whatever is appropriate. Don't need to add anything to /boot/loader.conf.
And the default nvidia-modeset kernel module will automagically pull in any dependent linux kernel modules if needed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.