mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 14:03:30 +01:00
- Fix boot screen invertion. - Add audio fixes for the Framework 13, given a shared chipset. - Add Bluetooth fixes. - Import AMD 7000-series GPU fix (Raphael). - Add GPD PPT (TDP) control from GPD Win Max 2 - Set `panel_orientation` kernel parameter. - Add AC wakeup fix as a config option; disabled by default. - Enable `power-profiles-daemon` by default, and disable TLP - can be configured. - Disable both PSR and PSR-SU on amdgpu module. - Fix touchscreen properties - upside down rotation - Update README.md for GPD Duo. Co-authored-by: Dom Rodriguez <shymega@shymega.org.uk>
28 lines
921 B
Nix
28 lines
921 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
{
|
|
imports = [
|
|
../../../common/cpu/amd
|
|
../../../common/cpu/amd/pstate.nix
|
|
../../../common/gpu/amd
|
|
];
|
|
|
|
boot.kernelParams = [
|
|
# There seems to be an issue with panel self-refresh (PSR) that
|
|
# causes hangs for users.
|
|
#
|
|
# https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459
|
|
# https://gitlab.freedesktop.org/drm/amd/-/issues/3647
|
|
"amdgpu.dcdebugmask=0x210"
|
|
]
|
|
# Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/
|
|
++ optionals (versionOlder config.boot.kernelPackages.kernel.version "6.8") [
|
|
"rtc_cmos.use_acpi_alarm=1"
|
|
];
|
|
|
|
# AMD has better battery life with PPD over TLP:
|
|
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
|
|
services.power-profiles-daemon.enable = mkDefault true;
|
|
services.tlp.enable = mkDefault false;
|
|
}
|