Hi,
I am trying to configure nixos for the first time in my laptop.
I have nvidia rtx 2060, intel graphic card and I would like to use an external display together with the builtin one.
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
I suspect that my laptop is one of the special conditions where external display ports are only exposed to the dedicated GPU (though I have not confirmed that and so far I don’t know how to do that).
Over the last year or so similar issues where brought, and I have familiarized myself with these topics:
- Using internal + external monitor with Nvidia offload
- Can't use Nvidia offload mode - #11 by eyome
- Cannot get external monitor to work with nvidia + amdgpu
- https://github.com/NixOS/nixpkgs/pull/165188
I tested multiple different scenarios and to my surprise my setup works on wayland+gnome, but since I am already making a switch to nixos I would like to save migration from xorg to wayland for another day.
I tested both sync and offload in various setups, even though I would prefer to use offload I will be happy with sync if it turns out to be more reliable, as in the end I just want to use both of my displays.
Apart from the first scenario where I used nixpkgs-unstable I was running:
- nvidia driver 520.56.06
- nixos 22.11
test 1: xfce + xorg + nixos-unstable + offload + reverse-sync
I was able to start the xserver but displays were mirrored. After trying to change the configuration through ui settings (simply turning off mirroring) xserver crashed:
Summary
May 07 20:34:35 focus systemd-coredump[6519]: Process 6169 (X) of user 0 dumped
Module /nix/store/kin5g5aqiqbbc2i54fj0kf3s95qki41g-pcre2-10.42/lib/libpcre2-8.so.0.11.2 without build-id.
Module /nix/store/yinkh190x63137104bgga6zxklny37jp-libgudev-237/lib/libgudev-1.0.so.0.3.0 without build-id.
Module /nix/store/421phxy2xwqz2mg9b1kpz3ar3ndqrqp2-libevdev-1.13.0/lib/libevdev.so.2.3.0 without build-id.
Module /nix/store/q59v4qicdn7idbxnnif16mks288l1xrq-libinput-1.23.0/lib/libinput.so.10.13.0 without build-id.
Module /nix/store/6la2rz1dc1qkkjajpdrig0rz7xfnk7ns-libwacom-2.6.0/lib/libwacom.so.9.0.0 without build-id.
Module /nix/store/amzq39fxg5n2myp6k94lhny37wxc9lch-mtdev-1.1.6/lib/libmtdev.so.1.0.0 without build-id.
Module /nix/store/0ch9jk5gff2vzm8dw1k78a3x282my6vk-xf86-input-libinput-1.2.0/lib/xorg/modules/input/libinput_drv.so without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb-sync.so.1.0.0 without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb-present.so.0.0.0 without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb-xfixes.so.0.0.0 without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb-randr.so.0.1.0 without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb-dri2.so.0.0.0 without build-id.
Module /nix/store/pciixhi1sl4rc4b7wk705qzq8461l14h-libX11-1.8.4/lib/libX11-xcb.so.1.0.0 without build-id.
Module /nix/store/mw25mnql37bk5j5mbr69s02fp0rc7vcg-libglvnd-1.6.0/lib/libEGL.so.1.1.0 without build-id.
Module /nix/store/b7cw17ih42ydn7lha6llsca6zyj8fd16-libxml2-2.10.4/lib/libxml2.so.2.10.4 without build-id.
Module /nix/store/nh47yp2xm0r60hjxfjln9rp3aiipdjy9-ncurses-6.4/lib/libncursesw.so.6.4 without build-id.
Module /nix/store/vaxgqbm6h3zvhpgk9xqqk97hqjp9gzvs-gcc-12.2.0-lib/lib/libstdc++.so.6.0.30 without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb-dri3.so.0.0.0 without build-id.
Module /nix/store/szizxk6rkwb3j8v8f2z2nkxhqimq02q7-libdrm-2.4.115/lib/libdrm_amdgpu.so.1.0.0 without build-id.
Module /nix/store/2yadvivxdva734zy0lczacn3gmq3s2h5-libelf-0.8.13/lib/libelf.so.0.8.13 without build-id.
Module /nix/store/szizxk6rkwb3j8v8f2z2nkxhqimq02q7-libdrm-2.4.115/lib/libdrm_radeon.so.1.0.1 without build-id.
Module /nix/store/5br7hbxdrmxhrppz5wab8pp765bk5f2j-libffi-3.4.4/lib/libffi.so.8.1.2 without build-id.
Module /nix/store/szizxk6rkwb3j8v8f2z2nkxhqimq02q7-libdrm-2.4.115/lib/libdrm_nouveau.so.2.0.0 without build-id.
Module /nix/store/hsj83npwkkli3838gnmbdis4p96f9nyr-expat-2.5.0/lib/libexpat.so.1.8.10 without build-id.
Module /nix/store/mnifh057qk221sm79lhhplwnxhzfamar-libepoxy-1.5.10/lib/libepoxy.so.0.0.0 without build-id.
Module /nix/store/nbajy7w4mr453jg7dxdbznza2nqhalqx-xorg-server-21.1.8/lib/xorg/modules/libglamoregl.so without build-id.
Module /nix/store/nbajy7w4mr453jg7dxdbznza2nqhalqx-xorg-server-21.1.8/lib/xorg/modules/libwfb.so without build-id.
Module /nix/store/nbajy7w4mr453jg7dxdbznza2nqhalqx-xorg-server-21.1.8/lib/xorg/modules/drivers/modesetting_drv.so without build-id.
Module /nix/store/24b0wymzjgl1ylypzj3il3nj2ymf27p4-libxcb-1.14/lib/libxcb.so.1.1.0 without build-id.
Module /nix/store/mw25mnql37bk5j5mbr69s02fp0rc7vcg-libglvnd-1.6.0/lib/libGLdispatch.so.0.0.0 without build-id.
Module /nix/store/05pz5prswc4i515xihy8yiq26yk8vcg2-libXext-1.3.4/lib/libXext.so.6.4.0 without build-id.
Module /nix/store/pciixhi1sl4rc4b7wk705qzq8461l14h-libX11-1.8.4/lib/libX11.so.6.4.0 without build-id.
Module /nix/store/mw25mnql37bk5j5mbr69s02fp0rc7vcg-libglvnd-1.6.0/lib/libGLX.so.0.0.0 without build-id.
Module /nix/store/mw25mnql37bk5j5mbr69s02fp0rc7vcg-libglvnd-1.6.0/lib/libGL.so.1.7.0 without build-id.
Module /nix/store/nbajy7w4mr453jg7dxdbznza2nqhalqx-xorg-server-21.1.8/lib/xorg/modules/extensions/libglx.so without build-id.
Module /nix/store/wr1x9s9m9z9c3gx92s50sy8kbcf0nfm2-libgpg-error-1.47/lib/libgpg-error.so.0.34.0 without build-id.
Module /nix/store/03bamyd9l1b7c60wbia4jrhf9cddnfal-brotli-1.0.9-lib/lib/libbrotlicommon.so.1.0.9 without build-id.
Module /nix/store/hldfwx1acwskrn0cdwf4c53av3wvflrg-lz4-1.9.4/lib/liblz4.so.1.9.4 without build-id.
Module /nix/store/03xbrnx2wc5mzcrdxngky06a9c2b9lbz-zstd-1.5.5/lib/libzstd.so.1.5.5 without build-id.
Module /nix/store/5cjp903bnds08wd2q8487i6m6mlzz58z-libgcrypt-1.10.2/lib/libgcrypt.so.20.4.2 without build-id.
Module /nix/store/03bamyd9l1b7c60wbia4jrhf9cddnfal-brotli-1.0.9-lib/lib/libbrotlidec.so.1.0.9 without build-id.
Module /nix/store/nj01cmyk0hbi1qm21xvigjim7jv1bq49-libpng-apng-1.6.39/lib/libpng16.so.16.39.0 without build-id.
Module /nix/store/mnvrry4cf90zgazvx0iivvc85pchk2ws-bzip2-1.0.8/lib/libbz2.so.1.0.8 without build-id.
Module /nix/store/mm1kqax5gs35y2623lcn3mkvg1zbwm01-zlib-1.2.13/lib/libz.so.1.2.13 without build-id.
Module /nix/store/xbk6qwmhr3q8rgr13qmbb0man4zvl01r-freetype-2.13.0/lib/libfreetype.so.6.19.0 without build-id.
Module /nix/store/9lja4v9w8lx0y5y975jcypi5bci79kj6-libfontenc-1.1.4/lib/libfontenc.so.1.0.0 without build-id.
Module /nix/store/ccv3r14vrv5ffyxy24fqjd7wpbcim76f-xz-5.4.2/lib/liblzma.so.5.4.2 without build-id.
Module /nix/store/d7jh1dgmsz9h7x9kaalrv8lm00h8pcqn-gcc-12.2.0-libgcc/lib/libgcc_s.so.1 without build-id.
Module /nix/store/8pjpdngdligip5ykx3x6cj69sm1f7y2g-libcap-2.67-lib/lib/libcap.so.2.67 without build-id.
Module /nix/store/rmvg8m2062jd51g5fd9xwhfp0kgwibim-libXdmcp-1.1.3/lib/libXdmcp.so.6.0.0 without build-id.
Module /nix/store/b4drv3l2kigpnzcw42lzyv6z3mn3rcs0-libxshmfence-1.3/lib/libxshmfence.so.1.0.0 without build-id.
Module /nix/store/hwdscgi2d1pj89vg2v7ixhcnn543dasz-systemd-253.3/lib/libsystemd.so.0.36.0 without build-id.
Module /nix/store/da8b6nbbmck39cnin96phk5mb3kdihps-libXau-1.0.9/lib/libXau.so.6.0.0 without build-id.
Module /nix/store/nrck8k20kiryhc7890lllsjfyv3jbx48-libXfont2-2.0.5/lib/libXfont2.so.2.0.0 without build-id.
Module /nix/store/szizxk6rkwb3j8v8f2z2nkxhqimq02q7-libdrm-2.4.115/lib/libdrm.so.2.4.0 without build-id.
Module /nix/store/6a17chy90bf79y4wk1i4b8b9yp0jkf5a-libpciaccess-0.16/lib/libpciaccess.so.0.11.1 without build-id.
Module /nix/store/9irsic21qhcylp458qjasazc7511faaj-libxcvt-0.1.1/lib/libxcvt.so.0.1.1 without build-id.
Module /nix/store/z0y78imz5ka7dm9rjhxxw5kp5xpy7x3s-libunwind-1.6.2/lib/libunwind.so.8.0.1 without build-id.
Module /nix/store/hwdscgi2d1pj89vg2v7ixhcnn543dasz-systemd-253.3/lib/libudev.so.1.7.6 without build-id.
Module /nix/store/awbihzisbsbf3ixl1q8cyhhd8kj4za3l-dbus-1.14.6-lib/lib/libdbus-1.so.3.32.2 without build-id.
Stack trace of thread 6169:
#0 0x00000000005b6380 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64
I also tried copying the new nvidia
hardware module from the repository (nvidia: Add Reverse Prime Sync by GoogleBot42 · Pull Request #165188 · NixOS/nixpkgs · GitHub) and pasting it directly into my configuration (disabling the original module at the same time) and the result were similar (maybe the stacktrace was different, I don’t remember tbh).
// next scenarios will be posted as separate messages due to body limit
Similar things happen if I try to use xfce with prime.sync
. I can upload core dump for that later if needed but as far as I remember it was libnvidia-glcore
.
FWIW I was running ubuntu 22.04 with gnome and xorg with that setup for a while without any issues.
Could you help me debug that further? Should I raise those issues in nixpkgs or nvidia bug trackers?
Link to my nixos configuration: GitHub - ghostbuster91/dot-files at nixos
Many thanks,
K.