diff --git a/framework/12-inch/common/default.nix b/framework/12-inch/common/default.nix index 5e8aa81f..a8f4661f 100644 --- a/framework/12-inch/common/default.nix +++ b/framework/12-inch/common/default.nix @@ -3,7 +3,6 @@ imports = [ ../../../common/pc/laptop ../../../common/pc/ssd - ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix ]; diff --git a/framework/13-inch/common/default.nix b/framework/13-inch/common/default.nix index d42a9f72..6a818c0d 100644 --- a/framework/13-inch/common/default.nix +++ b/framework/13-inch/common/default.nix @@ -3,7 +3,6 @@ imports = [ ../../../common/pc/laptop ../../../common/pc/ssd - ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix ./audio.nix diff --git a/framework/16-inch/common/default.nix b/framework/16-inch/common/default.nix index 59f736d4..44f867f9 100644 --- a/framework/16-inch/common/default.nix +++ b/framework/16-inch/common/default.nix @@ -3,7 +3,6 @@ imports = [ ../../../common/pc/laptop ../../../common/pc/ssd - ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix ]; diff --git a/framework/bluetooth.nix b/framework/bluetooth.nix deleted file mode 100644 index 0e08adb7..00000000 --- a/framework/bluetooth.nix +++ /dev/null @@ -1,55 +0,0 @@ -# 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 -}: -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" - ]; - }; - }; - }