Hey everyone, I have a Thinkpad P50 with an Nvidia Quadro M1000M, but only my internal display is recognized. I tried following the wiki and some configs on the forum here, but none of them work for me. What am I doing wrong? If I remove “modesetting” my screen just stays black. No problems on Ubuntu, I can check which driver is currently being used there if needed.
Thank you for your suggestion. Unfortunately it does not seem to work; I set both connectDisplay to true and added bumblebee to the video driver list (both separately and simultaneously), but no changes. I guess I should have a look at that bumblebee flag’s source for more hints.
That did the trick, thank you very much! I could swear I’ve tried this configuration already before, but I guess other stuff was broken then. I guess another change that I should mention that happened since I started this thread is that I now use a display manager (the nixos default, which I think is lightdm? Not sure), whereas before I used startx. This might be a piece of the puzzle (as the docs for hardware.nvidia.optimus_prime.enable mention that this is needed).
The only problem now is that the fonts in my login screen and other UI elements is very tiny. But I guess I’ll have to fix that with plain configuration.
Hi, did you ever get external monitors working? I followed this thread to get my own P50 working well, but when connected to an external monitor - the monitor is detected, but just flickers on/off and never shows a display.
Here is my configuration file for my P50 for reference sake.
Seems like our configs are almost identical now. I wasn’t using a display manager before, which can also cause problems (I think I read this on the wiki somewhere), not sure if this applies to you. I’m also not sure if the opengl part is needed.
EDIT: Well, I had to fiddle a bit with panning through xrandr, but my display seems to work fine on both the laptop’s own HDMI ports, as well as the HDMI ports on my docking station. I can give you more config info if you want (I’m on 20.03, but besides that there’s not that much stuff in my config, probably because I don’t use nixos daily (yet)), but then you need to tell me where to look. There also doesn’t seem to be nvidia related stuff in my hardware.config:
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/redacted";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/redacted"; }
];
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}