Hi, My laptop is an Optimus capable and there is no way to select Intel, NVIDIA, or Prime graphics from the BIOS. I am using Nvidia GTX 1660Ti Mobile and FreeBSD 13.2-RELEASE-p3 (64-bit) with X11.
I have the following drivers installed,
I got only one file in /usr/local/etc/X11/xorg.conf.d/20-intel.conf,
My /etc/rc.conf,
I followed these instructions and got the following results,
but when I run nvrun-vgl I get the game running with following errors and I got 0% GPU utilization,
Code:
# pciconf -lv | grep -B3 display
vgapci1@pci0:0:2:0: class=0x030000 rev=0x05 hdr=0x00 vendor=0x8086 device=0x9bc4 subvendor=0x1458 subdevice=0x86b6
vendor = 'Intel Corporation'
device = 'CometLake-H GT2 [UHD Graphics]'
class = display
--
vgapci0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x2191 subvendor=0x1458 subdevice=0x86b6
vendor = 'NVIDIA Corporation'
device = 'TU116M [GeForce GTX 1660 Ti Mobile]'
class = display
Code:
# pkg info -x nvidia
nvidia-hybrid-graphics-0.5
nvidia-secondary-driver-525.116.03_1
nvidia-settings-470.86_1
nvidia-xconfig-525.116.04
Code:
Section "Device"
Identifier "Card1"
Driver "intel"
Driver "modesetting" # Without it, I am unable to get any GUI login
BusID "PCI:0:2:0"
VendorName "Intel Corporation"
EndSection
Code:
clear_tmp_enable="YES"
sendmail_enable="NONE"
hostname="freebsd.lan"
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA DHCP"
sshd_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
dumpdev="AUTO"
dbus_enable="YES"
sddm_enable="YES"
#Linux Binary Compatibility
linux_enable="YES"
#NVIDIA
nvidia_load="YES"
kld_list="${kld_list} nvidia-modeset"
#NVIDIA HYBRID Xorg in headless mode on Display 8
nvidia_xorg_enable="YES"
#Intel VIDEO CARD
kld_list="${kld_list} i915kms.ko acpi_video"
Code:
$ nvrun glxinfo -B
name of display: :8
display: :8 screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 6144 MB
Total available memory: 6144 MB
Currently available dedicated video memory: 5926 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.116.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6.0 NVIDIA 525.116.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 525.116.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Code:
$ nvrun-vgl bomber
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)