Getting nvidia to work with eDP (embedded Display Port)
Michał Kruszewski
mkru at protonmail.com
Fri Jan 8 11:36:59 UTC 2021
I have laptop with nvidia and intel video cards.
I have successfully installed the nvidia driver and configured the Xorg.
However, I can't get eDP monitor to work and my laptop becomes useless when it is not connected to some external monitor.
I can see mouse pointer and blank cursor in the left top corner on the eDP screen, however it is freezed and the eDP does not appear in the arandr.
After some reading I have found out, that eDP is wired to the Intel Video card embedded in the CPU chip, so nvidia does not even know it exists by default.
I have dumped Xorg logs for both FreeBSD and Linux X startups:
FreeBSD:
https://pastebin.com/UiYxH5Lz
Linux:
https://pastebin.com/VixHsFny
A few things makes me wonder after comparing the logs.
1. On FreeBSD I get a warning about VGA arbiter
[ 20.308] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
2. After some time the modesetting gets unloaded on FreeBSD.
[ 21.204] (II) UnloadModule: "modesetting"
[ 21.204] (II) Unloading modesetting
3. Linux loads glamoregl module while FreeBSD does not.
First information about eDP appears after loading this module (this might be just coincidence).
[ 13.107] (II) Loading sub module "glamoregl"
[ 13.107] (II) LoadModule: "glamoregl"
[ 13.107] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 13.116] (II) Module glamoregl: vendor="X.Org Foundation"
[ 13.116] compiled for 1.20.10, module version = 1.0.1
[ 13.116] ABI class: X.Org ANSI C Emulation, version 0.4
[ 13.363] (II) modeset(G0): glamor X acceleration enabled on Mesa Intel(R) UHD Graphics 630 (CFL GT2)
[ 13.363] (II) modeset(G0): glamor initialized
[ 13.364] (II) modeset(G0): Output eDP-1-1 has no monitor section
[ 13.365] (II) modeset(G0): EDID for output eDP-1-1
In rc.conf I have set the nvidia-modeset driver to be loaded (with nvidia even the external monitor does not work).
My Xorg config for nvidia device looks exactly the same on both FreeBSD and Linux:
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
As I have not found any information on how to configure such setup properly I have tried some random moves.
I have tried adding i915kms and installing drm-kmod, but it has not helped.
Does anyone know what might help?
Or maybe how to check if it is even possible on FreeBSD with my hardware?
Best regards,
Michał Kruszewski
Sent with [ProtonMail](https://protonmail.com) Secure Email.
More information about the freebsd-x11
mailing list