-
-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hardware support for Lenovo LOQ 15aph8
- Loading branch information
1 parent
e1cc1f6
commit 829cfb2
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Lenovo LOQ 15APH8 | ||
|
||
Tested on LOQ 15APH8 (82XT) with: | ||
- AMD Phoenix GPU | ||
- NVIDIA GeForce RTX 4050 Max-Q | ||
- AMD Phoenix1 integrated graphics | ||
|
||
## Features Requiring Configuration | ||
For optimal power management, consider adding: | ||
|
||
```nix | ||
services.power-profiles-daemon.enable = true; | ||
powerManagement.powertop.enable = true; | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ lib, ...}: { | ||
imports = [ | ||
../../../common/cpu/amd/pstate.nix | ||
../../../common/gpu/nvidia/prime.nix | ||
../../../common/gpu/nvidia/ada-lovelace | ||
../../../common/pc/laptop | ||
../../../common/pc/laptop/ssd | ||
]; | ||
|
||
hardware.nvidia.prime = { | ||
amdgpuBusId = lib.mkDefault "PCI:5:0:0"; | ||
nvidiaBusId = lib.mkDefault "PCI:1:0:0"; | ||
}; | ||
|
||
# Power management - using mkDefault as these can be overridden | ||
hardware.nvidia.powerManagement.enable = lib.mkDefault true; | ||
hardware.nvidia.modesetting.enable = lib.mkDefault true; | ||
services.thermald.enable = lib.mkDefault true; | ||
|
||
# These will merge with user settings, so no mkDefault needed | ||
hardware.amdgpu.initrd.enable = true; | ||
|
||
} | ||
|
||
|