mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 22:13:29 +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>
19 lines
505 B
Nix
19 lines
505 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.hardware.gpd.duo.powerManagement;
|
|
in
|
|
{
|
|
options.hardware.gpd.duo.powerManagement = {
|
|
enable = mkEnableOption "Enable power-profiles-daemon and disable TLP for the GPD Duo" // {
|
|
# Default increase PPT to the BIOS default when power adapter plugin to increase performance.
|
|
default = true;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.power-profiles-daemon.enable = mkDefault true;
|
|
services.tlp.enable = mkForce false;
|
|
};
|
|
}
|