From b501c5fbf657b4bbe2a61a66fc1483ad0ec40d7b Mon Sep 17 00:00:00 2001 From: Arne Cuperus Date: Wed, 24 Jul 2024 18:01:51 +0200 Subject: [PATCH] Add configuration for Lenovo IdeaPad Gaming 3 15ach6 --- README.md | 1 + flake.nix | 1 + lenovo/ideapad/15ach6/README.md | 25 +++++++++++++++++++++++++ lenovo/ideapad/15ach6/default.nix | 20 ++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 lenovo/ideapad/15ach6/README.md create mode 100644 lenovo/ideapad/15ach6/default.nix diff --git a/README.md b/README.md index 727a119..ea97ab6 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ See code for all available configurations. | [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `` | | [Lenovo IdeaPad 3 15alc6](lenovo/ideapad/15alc6) | `` | | [Lenovo IdeaPad Gaming 3 15arh05](lenovo/ideapad/15arh05) | `` | +| [Lenovo IdeaPad Gaming 3 15ach6](lenovo/ideapad/15ach6) | `` | | [Lenovo IdeaPad 5 Pro 16ach6](lenovo/ideapad/16ach6) | `` | | [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `` | | [Lenovo IdeaPad Slim 5](lenovo/ideapad/slim-5) | `` | diff --git a/flake.nix b/flake.nix index e2ec5ed..7bbbe12 100644 --- a/flake.nix +++ b/flake.nix @@ -112,6 +112,7 @@ intel-nuc-8i7beh = import ./intel/nuc/8i7beh; lenovo-ideapad-15alc6 = import ./lenovo/ideapad/15alc6; lenovo-ideapad-15arh05 = import ./lenovo/ideapad/15arh05; + lenovo-ideapad-15ach6 = import ./lenovo/ideapad/15ach6; lenovo-ideapad-16ach6 = import ./lenovo/ideapad/16ach6; lenovo-ideapad-z510 = import ./lenovo/ideapad/z510; lenovo-ideapad-slim-5 = import ./lenovo/ideapad/slim-5; diff --git a/lenovo/ideapad/15ach6/README.md b/lenovo/ideapad/15ach6/README.md new file mode 100644 index 0000000..e429908 --- /dev/null +++ b/lenovo/ideapad/15ach6/README.md @@ -0,0 +1,25 @@ +# Lenovo IdeaPad Gaming 3 15ACH6 + +This device supports "battery conservation mode", which charges the battery to only ~60%. This mode can be enabled using [TLP](https://linrunner.de/tlp/settings/bc-vendors.html#lenovo-non-thinkpad-series): + +## Device information + +Details from `tlp-stat`: + +``` +System = LENOVO IdeaPad Gaming 3 15ACH6 82K2 +BIOS = H3CN31WW(V2.01) +EC Firmware = 1.31 +OS Release = NixOS 24.11 (Vicuna) +Kernel = 6.6.37 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jul 5 07:34:07 UTC 2024 x86_64 +Init system = systemd +Boot mode = UEFI +Suspend mode = s2idle [deep] +``` + +`lspci` output: + +``` +01:00.0 3D controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1) +06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c6) +``` diff --git a/lenovo/ideapad/15ach6/default.nix b/lenovo/ideapad/15ach6/default.nix new file mode 100644 index 0000000..c771f1b --- /dev/null +++ b/lenovo/ideapad/15ach6/default.nix @@ -0,0 +1,20 @@ +{ lib, ... }: + +{ + imports = [ + ../../../common/cpu/amd + ../../../common/cpu/amd/pstate.nix + ../../../common/gpu/amd + ../../../common/gpu/nvidia/prime.nix + ../../../common/pc/laptop + ../../../common/pc/laptop/ssd + ]; + + hardware.nvidia = { + modesetting.enable = true; + prime = { + amdgpuBusId = "PCI:6:0:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + }; +}