Internal monitor not detected

Hey! I'm new to freeBSD and, after a little fight with xorg and the nvidia drivers I finally got to launch xorg and configure all of my monitors.
Except for one. The laptop's internal monitor, and it's not even listed with % xrandr :

Code:
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  59.99    59.94    50.00  
   1680x1050     59.95  
   1600x1200     60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 544mm x 303mm
   1920x1080     60.00 + 239.76*  144.00   119.98   119.93    99.90    84.88    59.94    50.00  
   1440x576      50.00  
   1440x480      59.94  
   1280x1024     75.02  
   1280x800      74.93    59.81  
   1280x720      74.78    60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-2 disconnected (normal left inverted right x axis y axis)

There should be three monitors listed as connected, or at least available, but eDP-1 is missing (as it is so called under Linux).
What can I do and what info should I provide?
Here's the output of % kldstat :

Code:
Id Refs Address                Size Name
 1  129 0xffffffff80200000  1f370e8 kernel
 2    2 0xffffffff82ff9000   125678 nvidia-modeset.ko
 3    2 0xffffffff83200000  3118000 nvidia.ko
 4    2 0xffffffff8311f000    30a80 linux.ko
 5    3 0xffffffff83150000     c2a8 linux_common.ko
 6    1 0xffffffff8315d000    108f0 nvidia-drm.ko
 7    1 0xffffffff8316e000    7c050 drm.ko
 8    1 0xffffffff831eb000     22b8 iic.ko
 9    1 0xffffffff831ee000     3080 linuxkpi_hdmi.ko
10    2 0xffffffff831f2000     6350 dmabuf.ko
11    1 0xffffffff831f9000     3378 lindebugfs.ko
12    1 0xffffffff86318000     3390 acpi_wmi.ko
13    1 0xffffffff8631c000     3250 ichsmb.ko
14    1 0xffffffff831fd000     2178 smbus.ko
15    1 0xffffffff86320000    93260 if_iwlwifi.ko
16    1 0xffffffff863b4000     5f90 ig4.ko
17    1 0xffffffff863ba000     d200 rtsx.ko
18    1 0xffffffff863c8000     3360 uhid.ko
19    1 0xffffffff863cc000     33c0 usbhid.ko
20    6 0xffffffff863d0000     3380 hidbus.ko
21    1 0xffffffff863d4000     3360 wmt.ko
22    1 0xffffffff863d8000     e5b0 snd_uaudio.ko
23    1 0xffffffff863e7000     4364 ums.ko
24    1 0xffffffff863ec000     4d20 ng_ubt.ko
25    6 0xffffffff863f1000     abb8 netgraph.ko
26    2 0xffffffff863fc000     a250 ng_hci.ko
27    4 0xffffffff86407000     2670 ng_bluetooth.ko
28    1 0xffffffff8640a000     3218 iichid.ko
29    1 0xffffffff8640e000     21e8 hms.ko
30    1 0xffffffff86411000     30a8 hidmap.ko
31    1 0xffffffff86415000     3355 hmt.ko
32    1 0xffffffff86419000     22cc hconf.ko
33    1 0xffffffff8641c000     e268 ng_l2cap.ko
34    1 0xffffffff8642b000    1bf68 ng_btsocket.ko
35    1 0xffffffff86447000     38f8 ng_socket.ko

I have nvidia modeset enabled on /boot/loader.conf. I'm assuming it has something to do with the driver?
 
What I think I am looking at is a desktop with a discrete Nvidia GPU. I am guessing that the GPU has 1xHDMI and 3xDisplayPort.

The screen connected to your HDMI seems to be fine. But you are only seeing one of the remaining 2 displays connected to DisplayPort.

My guess is that the last monitor is hiding as a disabled output. I would then try:

xrandr --output <outputname> --auto

...and see if it hides as DP-0 or DP-2.

But I am a little confused as you write "internal monitor" which makes me think laptop and 2 external displays. I would still try the above but is now wondering how things are connected? HDMI, DisplayPort or USB-C? I have seen system turning off the internal display if something was connected to the external HDMI port. But if this was working with Linux this should be fixable.

As drm, nvidia and nvidia-drm seems to be loaded that seems to be OK. We might need to dive deeper into the Xorg log and see how well the autoconfiguration worked. But these days you rarely need to configure manually and I think we can get by with xrandr.
 
Start with the basic stuff: which graphics card / cards does your laptop have? The pciconf command will tell you. Here is an example:
Code:
root@kg-core2:~ # pciconf -lv | grep -A 4 vga
vgapci0@pci0:7:0:0:    class=0x030000 rev=0xc7 hdr=0x00 vendor=0x1002 device=0x6617 subvendor=0x1da2 subdevice=0xe263
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Oland LE [Radeon R7 240]'
    class      = display
    subclass   = VGA
Note: this is from my workstation, not a laptop.
 
Back
Top