Skip to content
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

XPS 15 7590 (nvidia) use open-source driver #1093

Closed

Conversation

eg-ayoub
Copy link
Contributor

@eg-ayoub eg-ayoub commented Aug 30, 2024

Description of changes

fix for #1092
set hardware.nvidia.open = true; for xps 15 7590
This fixes error induced intentionally, see NixOS/nixpkgs#337289 (comment)

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input
More info

output from nvidia-smi

$ nvidia-smi 
Fri Aug 30 15:44:25 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  Quadro T2000                   Off |   00000000:01:00.0 Off |                  N/A |
| N/A   51C    P8              2W /   40W |       1MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

This fixes error induced intentionally, see NixOS/nixpkgs#337289 (comment)

Signed-off-by: Ayoub Nasr <[email protected]>
@Mic92
Copy link
Member

Mic92 commented Aug 31, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Aug 31, 2024

queue

🛑 The pull request has been removed from the queue default

The merge conditions cannot be satisfied due to failing checks.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@@ -21,5 +21,7 @@
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};

open = lib.mkDefault true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid the conflicting option:

Suggested change
open = lib.mkDefault true;
open = true;

@BCNelson
Copy link
Contributor

Should we have a way to encode compatibility in a more general way? For instance does the logic to enable and disable the opensource driver belong in the shared gpu code?

@eg-ayoub
Copy link
Contributor Author

@BCNelson it might be. I just faced this on another one of my machines.
Personally, I think it might cause unexplained breakage for some people.
IIRC, the option's default description shows a condition comparing the package.version to 560. Maybe something along those lines would cause minimal breakage.

@BCNelson
Copy link
Contributor

the option's default description shows a condition comparing the package.version to 560.

@eg-ayoub Where is this I can't seem to find it? All I can find is this line

@BCNelson
Copy link
Contributor

@eg-ayoub I opened another PR #1094 with a bit more of a generic solution

@eg-ayoub
Copy link
Contributor Author

eg-ayoub commented Sep 1, 2024

@BCNelson alright, I'll be closing this then.

@eg-ayoub eg-ayoub closed this Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants