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

thinkpad x1 gen6 #62

Closed
wants to merge 3 commits into from
Closed

thinkpad x1 gen6 #62

wants to merge 3 commits into from

Conversation

denten
Copy link

@denten denten commented Jun 29, 2018

First stab at Thinkpad x1 gen6 profile.

@@ -1,10 +0,0 @@
{ lib, pkgs, ... }:
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks every other configuration in this directory, since they all import this.


boot.kernelModules = [ "acpi" "thinkpad-acpi" "acpi-call" ];
boot.extraModulePackages = [ config.boot.kernelPackages.acpi_call ];
boot.extraModprobeConfig = "options thinkpad_acpi experimental=1 fan_control=1";
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe improve the acpi_call module in the parent directory and import that?

boot.extraModulePackages = [ config.boot.kernelPackages.acpi_call ];
boot.extraModprobeConfig = "options thinkpad_acpi experimental=1 fan_control=1";

environment.systemPackages = with pkgs; [
Copy link
Contributor

Choose a reason for hiding this comment

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

If you import the default module this is implied by that (in common/pc/laptop)

hardware.pulseaudio.enable = true;

# handle lid close hibernate, suspend, or ignore
systemd.extraConfig = "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to include this?


# Thinkpad power services with some sample values
services.tlp.enable = true;
services.tlp.extraConfig = ''
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it makes sense to put these in the default thinkpad module, since presumably they apply generally?

Choose a reason for hiding this comment

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

I think there are some differences between generations. AFAIK The oldest thinkpads on the list should behave differently with CPU_SCALING_GOVERNOR_ON_BAT=powersave since powersave behaves differently depending on the scaling driver. Using powersave with pstate in newer generations isn't like powersave in the previous generations.

BTW. I don't think disabling bluetooth on startup should be a default. IMHO making some tweaks here by default is okay but making tradeoffs like this is better left to be opt in.


# enable sound
sound.enable = true;
hardware.pulseaudio.enable = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

These probably shouldn't be here, since people may want to make their own choices about sound settings. Generally any direct settings should probably have mkDefault so that other people's settings will override them.

@garbas
Copy link
Member

garbas commented Jul 17, 2018

Could this patch be merged with #60 or vice-versa? I'm personally using #60, but i think we want to have the same outcome.

@michaelpj
Copy link
Contributor

I think they're both maybe a little opinionated? It would be good if we had clearer guidelines about which options you should set vs. leave to users to set. I also think it would be nice if we could share as much as possible between the thinkpad configurations otherwise there's a ton of copy pasting.

@garbas
Copy link
Member

garbas commented Jul 17, 2018

@michaelpj i found things not to be to opinionated in #60. i think @yegortimoshenko has an idea about guidelines, but it would be nicer to see them written down.

sharing between thinkpad, with current setup this is definitely possible. i personally see this as an optimization step. once we notice that things duplicate we move the to "lower" placing default.nix.

@garbas
Copy link
Member

garbas commented Jul 30, 2018

closing this since this PR was reviewed in #60 (which just got merged) and integrated non-opinionated configuration from this PR.

@garbas garbas closed this Jul 30, 2018
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

4 participants