mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 15:33:29 +01:00
gpd/duo: init GPD Duo profile
- 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>
This commit is contained in:
1 parent
2e790b0a6b
commit
cf3de37ade
10 files changed
+642
No files matched your search
@@ -0,0 +1,56 @@
|
||||
# There is apparently a bug that affects Framework computers that causes black
|
||||
# screen on resume from sleep or hibernate with kernel version 6.11. Framework
|
||||
# have published a workaround; this applies that workaround.
|
||||
#
|
||||
# https://fosstodon.org/@frameworkcomputer/113406887743149089
|
||||
# https://github.com/FrameworkComputer/linux-docs/blob/main/hibernation/kernel-6-11-workarounds/suspend-hibernate-bluetooth-workaround.md#workaround-for-suspendhibernate-black-screen-on-resume-kernel-611
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
# TODO: drop this if linux 6.11 goes EOL
|
||||
}:
|
||||
with lib;
|
||||
mkIf
|
||||
(
|
||||
(config.boot.kernelPackages.kernelAtLeast "6.11") && (config.boot.kernelPackages.kernelOlder "6.12")
|
||||
)
|
||||
{
|
||||
systemd.services = {
|
||||
bluetooth-rfkill-suspend = {
|
||||
description = "Soft block Bluetooth on suspend/hibernate";
|
||||
before = [ "sleep.target" ];
|
||||
unitConfig.StopWhenUnneeded = true;
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.util-linux}/bin/rfkill block bluetooth";
|
||||
ExecStartPost = "${pkgs.coreutils}/bin/sleep 3";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
wantedBy = [
|
||||
"suspend.target"
|
||||
"hibernate.target"
|
||||
"suspend-then-hibernate.target"
|
||||
];
|
||||
};
|
||||
|
||||
bluetooth-rfkill-resume = {
|
||||
description = "Unblock Bluetooth on resume";
|
||||
after = [
|
||||
"suspend.target"
|
||||
"hibernate.target"
|
||||
"suspend-then-hibernate.target"
|
||||
];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.util-linux}/bin/rfkill unblock bluetooth";
|
||||
};
|
||||
wantedBy = [
|
||||
"suspend.target"
|
||||
"hibernate.target"
|
||||
"suspend-then-hibernate.target"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user