Xrandr is crashing X with NVIDIA card

Hello again,

I’ve recently acquired a ThinkPad P50 with the Quadro M1000M. Everything is mostly running swell and I’m generally very pleased; with one significant exception. I can seamlessly swap display configurations with xrandr, including an external monitor. But when I change it back to the single internal display, it crashes X. I expect my config is pretty typical/vanilla and I do include nixos-hardware/lenovo/thinkpad/p50.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.44, NixOS, 23.11 (Tapir), 23.11pre512984.ce5e4a6ef2e5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(steve): `""`
 - channels(root): `"nixos, nixos-hardware"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Any suggestions would be greatly appreciated.

More specifically, X crashes when I disable the external monitor, i.e. --off with xrandr.

OK, my solution was to simply use the modesetting driver. Now everything works seamlessly. I’m not gaming or editing video; I mostly just do software development on the box. I’ve yet to dig in to see what the trade-off was. If I find anything surprising, I’ll report back here. But if you’re like me, and you just need stability, this fixes it.

If I find I’m missing some feature or functionality that I really value, I may tweak things a bit more.