-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvidia Driver Failure on GeForce GTX 1050 Ti #44284
Comments
Ubuntu forums say `nouveau.modeset=0` in the boot options (kernel parameters) might help. In the opposite direction, maybe the very latest nouveau could work (but probably it is too soon after the release of the videocard version).
|
@galaxite I bought the same XPS last month and I decided to return it. I got most of it to work properly, but I was getting a panic during resume after suspend, and that's a deal breaker for me. I was also having issues when connecting my wide screen. Anyway, you can find my /etc/nixos here. Make sure you are running the latest kernel. IIRC the key settings that made it work, were: boot.kernelPackages = pkgs.linuxPackages_latest;
services.xserver.videoDrivers = ["modesetting"];
boot.blacklistedKernelModules = ["nouveau"];
i18n.consoleFont = "latarcyrheb-sun32"; # will work without it, but it will make your life easier EDIT: Oh, as for the shutdown issue, I was able to track it down to the X server refusing to die after you get the black screen, it was just stuck there. Try it by shutting down the system without ever having started X11. |
@kalbasit That worked! Thank you so much! I just tried suspending and resuming and didn't get a kernel panic, but that may change eventually. Will those settings have any effect on the functionality of my laptop besides disabling the nvidia graphics card? |
IIRC Fedora and maybe some other mainstream distros prefer the |
For the shutdown issue, you can try |
@galaxite it should work with no issues. I have not tried |
@galaxite it depends. If you got it from Dell, you can return it within 30 days at no charge. |
@galaxite Yes, through ambrop72's solution though not on my current kernel (4.18.0-rc7). If I remember correctly, at the time I was using { config, pkgs, ... }:
{
hardware = {
nvidia = {
modesetting = {
enable = true;
};
optimus_prime = {
enable = true;
# values are from lspci
# try lspci | grep -P 'VGA|3D'
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
services = {
xserver = {
videoDrivers = [
"nvidiaBeta" # nvidia should work fine as well
];
};
};
} Just tried it and works fine on 4.17.11. Normally I keep it off unless I actually need to use it, since it averages at around ~30W.
|
@eadwu Do you know what kernels ambrop's solution works on? After implementing the |
Don't specifically know the kernel versions since I only ever used |
@eadwu I made the changes, and I was given the error: |
ambrop72's solution hasn't been merged into nixpkgs yet (#42846), you need a local nixpkgs to use that. You then reference it through
Clone repo (EDIT: easier instructions?) git clone https://github.com/NixOS/nixpkgs-channels.git
cd nixpkgs-channels
git checkout CHANNEL
git remote add upstream https://github.com/NixOS/nixpkgs.git
git remote -v
git fetch upstream pull/42846/head
git cherry-pick f26153754a1b6ac0d72adde9c75e1473463b4dbb |
@eadwu I see, will that affect my ability to do other system upgrades or install other packages? |
It shouldn't impact much, though if you want to update to the latest channel version just do |
@eadwu I modified the commands you used a bit (because using them didn't work for me and also because the nixos github pages recommend something else), and it did not work. I'm not very experienced with the git workflow, so I'm just going to list out the commands I used:
Attempting to edit my |
Try git clone [email protected]:NixOS/nixpkgs.git
cd nixpkgs
git remote add channels git://github.com/NixOS/nixpkgs-channels.git
git remote update channels
git checkout channels/nixos-unstable
git fetch origin pull/42846/head
git cherry-pick f26153754a1b6ac0d72adde9c75e1473463b4dbb
cd
sudo nixos-rebuild -I nixpkgs=/home/[my name]/nixpkgs switch To then update your repository fetch then rebase if there's an update. cd nixpkgs
git fetch channels nixos-unstable
git rebase channels/nixos-unstable Using Nvidia Prime requires a reboot as well if I'm not mistaken. |
@eadwu That worked perfectly! Just one last question before I close the issue, installing individual packages with this kind of local setup would entail something like |
|
So started to mess around with bumblebee again (since Nvidia PRIME had noticeable delay for me compared to the iGPU) and got it to "work" (considered a win for me since it uses less power than Nvidia PRIME, ~5W less compared to it, with powertop ~7-8W, measured (cough approximated) idle). The approach I used is outlined in the second option in the specific comment here. I can't seem to disable the graphics card on boot even though Some specifics on my current setup Keep in mind {
hardware = {
bumblebee = {
enable = true;
pmMethod = "none";
};
};
# Not sure if this is needed
# Probably was when I initially started testing it, not sure now
services = {
xserver = {
videoDrivers = [
"modesetting"
];
};
};
} Though if you really want to use optirun glxgears &
nix-shell -p powertop --run 'sudo powertop --auto-tune'
pgrep glxgears | xargs kill EDIT: Funny enough, using the workaround for |
Issue description
Attempting to start X on a dell xps 9570 laptop with a nvidia geforce 1050 Ti graphics card results in failure despite multiple attempts to fix the issue. In the
services.xserver.videoDrivers
section of configuration.nix, I have tried loading just nvidia, just intel, and both nvidia and intel. These all resulted in screen flickering with no x server. I have tried both the bumblebee and official nvidia PRIME solution to this problem described here in the wiki. These resulted in the system hanging when it attempts to start the display manager, still without seeming to start x server. I attempted to use the fix described by ambrop72 in issue #24711, but trying to rebuild nixos resulted in an error saying thathardware.nvidia
wasn't found. Additionally, I've been having a problem where my system won't shut down because mdadm-shutdown.service hangs, and my snooping has led me to believe that this is also because the graphics card can't be shut off. I've attached my configuration.nix and hardware-configuration.nix in case they would be helpful; you can see some of my failed attempts at fixing the problem commented out by the xservices section.configuration.nix.txt
hardware-configuration.nix.txt
Steps to reproduce
Attempt to start X on NixOS using a dell xps 9570 laptop.
Technical details
The text was updated successfully, but these errors were encountered: