Skip to content

Commit 58b52b0

Browse files
arthurrumpmergify[bot]
authored andcommitted
Add configuration for Lenovo IdeaPad 5 Pro 16ACH6
1 parent 35f2177 commit 58b52b0

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ See code for all available configurations.
171171
| [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `<nixos-hardware/intel/nuc/8i7beh>` |
172172
| [Lenovo IdeaPad 3 15alc6](lenovo/ideapad/15alc6) | `<nixos-hardware/lenovo/ideapad/15alc6>` |
173173
| [Lenovo IdeaPad Gaming 3 15arh05](lenovo/ideapad/15arh05) | `<nixos-hardware/lenovo/ideapad/15arh05>` |
174+
| [Lenovo IdeaPad 5 Pro 16ach6](lenovo/ideapad/16ach6) | `<nixos-hardware/lenovo/ideapad/16ach6>` |
174175
| [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `<nixos-hardware/lenovo/ideapad/z510>` |
175176
| [Lenovo IdeaPad Slim 5](lenovo/ideapad/slim-5) | `<nixos-hardware/lenovo/ideapad/slim-5>` |
176177
| [Lenovo IdeaPad S145 15api](lenovo/ideapad/s145-15api) | `<nixos-hardware/lenovo/ideapad/s145-15api>` |

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
intel-nuc-8i7beh = import ./intel/nuc/8i7beh;
104104
lenovo-ideapad-15alc6 = import ./lenovo/ideapad/15alc6;
105105
lenovo-ideapad-15arh05 = import ./lenovo/ideapad/15arh05;
106+
lenovo-ideapad-16ach6 = import ./lenovo/ideapad/16ach6;
106107
lenovo-ideapad-z510 = import ./lenovo/ideapad/z510;
107108
lenovo-ideapad-slim-5 = import ./lenovo/ideapad/slim-5;
108109
lenovo-ideapad-s145-15api = import ./lenovo/ideapad/s145-15api;

lenovo/ideapad/16ach6/README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Lenovo IdeaPad 5 Pro 16ACH6
2+
3+
This laptop comes with an AMD CPU+GPU and dedicated NVIDIA graphics. Unlike the similarly named [Legion 5 Pro 16ACH6*H*](../../legion/16ach6h/), there is no direct dedicated graphics setting.
4+
5+
The `nvidia.hardware.powerManagement.enable` option is not enabled in this configuration, since it seemed to cause issues when waking up from suspend, while also not providing much in terms of power saving. I've tested with `finegrained` both enabled and disabled, and it caused the screen to go dark a few moments after waking up from suspend. Most times this only happened once and the screen came back after a few moments, but on some occasions it kept occurring repeatedly.
6+
7+
This device also has a "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):
8+
9+
```nix
10+
services.power-profiles-daemon.enable = false;
11+
services.tlp.enable = true;
12+
services.tlp.settings = {
13+
# Enable battery conservation mode
14+
# Run `sudo tlp fullcharge` to enable a full charge until next reboot,
15+
# and `sudo tlp setcharge` to reset to conservation mode.
16+
START_CHARGE_THRESH_BAT0 = 0;
17+
STOP_CHARGE_THRESH_BAT0 = 1;
18+
};
19+
```
20+
21+
## Device information
22+
23+
Details from `tlp-stat`:
24+
25+
```
26+
System = LENOVO IdeaPad 5 Pro 16ACH6 82L5
27+
BIOS = GSCN35WW
28+
EC Firmware = 1.35
29+
OS Release = NixOS 23.11 (Tapir)
30+
Kernel = 6.6.10 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan 5 14:19:45 UTC 2024 x86_64
31+
Init system = systemd
32+
Boot mode = UEFI
33+
Suspend mode = [s2idle]
34+
```
35+
36+
`lspci` output:
37+
38+
```
39+
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
40+
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
41+
```

lenovo/ideapad/16ach6/default.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ lib, ... }:
2+
3+
{
4+
imports = [
5+
../../../common/cpu/amd
6+
../../../common/cpu/amd/pstate.nix
7+
../../../common/gpu/amd
8+
../../../common/gpu/nvidia/prime.nix
9+
../../../common/pc/laptop
10+
../../../common/pc/laptop/ssd
11+
];
12+
13+
hardware.nvidia = {
14+
modesetting.enable = true;
15+
prime = {
16+
amdgpuBusId = "PCI:5:0:0";
17+
nvidiaBusId = "PCI:1:0:0";
18+
};
19+
};
20+
}

0 commit comments

Comments
 (0)