-
-
Notifications
You must be signed in to change notification settings - Fork 767
laptop: replace tlp with power-profiles-daemon #1474
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
base: master
Are you sure you want to change the base?
Conversation
b9cbfe9
to
2f762c9
Compare
Actually, ppd also has been superceded by tuned in many distros. tuned is fully compatible with ppd profiles, so it's a drop-in compatible but also a superset. |
AMD Linux laptop/desktop team also recommends tuned over ppd. |
Happy to switch to tuned once it lands in nixpkgs. |
common/pc/laptop/default.nix
Outdated
# https://github.com/NixOS/nixos-hardware/issues/260 | ||
services.tlp.enable = lib.mkDefault ((lib.versionOlder (lib.versions.majorMinor lib.version) "21.05") | ||
|| !config.services.power-profiles-daemon.enable); | ||
config.services.power-profiles-daemon.enable = lib.mkDefault config.services.tlp.enable; |
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.
should this be enabled when config.services.tlp.enable is false? (missing !
)
meaning we need
config.services.power-profiles-daemon.enable = lib.mkDefault !config.services.tlp.enable;
instead
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.
Yes. Thanks.
TLP is often no longer the best choice since firmware provides power profiles instead. That's why we are removing TLP as the default option. We may want to bring back TLP to some old hardware if it makes sense i.e. certain thinkpad modules.
TLP is often no longer the best choice since firmware provides power profiles instead. That's why we are removing TLP as the default option. We may want to bring back TLP to some old hardware if it makes sense i.e. certain thinkpad modules.
Fixes #1465