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

Replace ad hoc throttling fix with throttled #115

Merged
merged 1 commit into from Oct 21, 2019

Conversation

michaelpj
Copy link
Contributor

throttled is a service designed to fix the same CPU throttling bug,
but it's an actively maintainted upstream project that we can use.

I'm unsure if we should make this change now. throttled is only in since May, so this will only work for people on nixos-unstable. I don't know what our policy should be wrt to that.

@Mic92
Copy link
Member

Mic92 commented Jul 26, 2019

Since it is a new service, we could backport throttled as well to stable.

@Mic92
Copy link
Member

Mic92 commented Oct 16, 2019

This should be now in 19.09. Can you update the PR?

];

# Force S3 sleep mode. See README.wiki for details.
boot.kernelParams = [ "mem_sleep_default=deep" ];

# touchpad goes over i2c
boot.blacklistedKernelModules = [ "psmouse" ];

services.throttled.enable = lib.mkDefault true;
Copy link
Member

@Mic92 Mic92 Oct 16, 2019

Choose a reason for hiding this comment

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

Should we not rather update the cpu-throttling-bug module?

Copy link
Member

Choose a reason for hiding this comment

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

No strong opinion here. A single option line could be also good enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The module made sense because there were several things to do. Having a whole module which just enables a single option seems like overkill. Better to just enable it.

@michaelpj
Copy link
Contributor Author

Ah yes, I forgot about this. Updated - I changed some new users of cpu-throttling-bug.nix as well.

@michaelpj
Copy link
Contributor Author

Ironically, Lenovo might finally be going to fix it.

@Mic92
Copy link
Member

Mic92 commented Oct 16, 2019

This one was just merged and also has the module: https://github.com/NixOS/nixos-hardware/pull/125/files

`throttled` is a service designed to fix the same CPU throttling bug,
but it's an actively maintainted upstream project that we can use.
@michaelpj
Copy link
Contributor Author

Updated to catch that one too!

@Mic92 Mic92 merged commit 1ea7efa into NixOS:master Oct 21, 2019
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.

None yet

2 participants