-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
nixos/nvidia: include systemd power management #73530
Conversation
14231f4
to
70c6ff9
Compare
dee70c0
to
6f6746f
Compare
325dcf5
to
ee94f3b
Compare
ee94f3b
to
9d09bb3
Compare
I'm waiting for #66601 to get merged before pushing for this since it will introduce conflicts. Doesn't seem anyone is having critical issues with NVIDIA to push for this right now. |
#66601 is merged now. |
Experimental power management through systemd. For more information, see | ||
the NVIDIA docs, on Chapter 21. Configuring Power Management Support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these docs are publicly available, then a link would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs are within each package, so pinning the doc has the possibility of the docs becoming outdated (I'm not sure if there's a link for the "latest" package).
Then again, I could probably do something along the lines of https://download.nvidia.com/XFree86/Linux-x86_64/${nvidia_x11.version}/README/powermanagement.html
but not sure if a package evaluation should be done just for the option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path = with pkgs; [ kbd ]; | ||
serviceConfig = { | ||
Type = "oneshot"; | ||
ExecStart = "${nvidia_x11.out}/bin/nvidia-sleep.sh '${state}'"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broken with new driver due to conditional install (silent failure in package install process from this PR) if the script doesn't exist:
Motivation for this change
#73494
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @