1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-10 04:59:40 +01:00

fix: update fix to a closer version which fixes this

This commit is contained in:
Gabriel Nützi 2024-08-17 13:05:28 +02:00 committed by mergify[bot]
parent 966ed3f8eb
commit b887ec296a
2 changed files with 4 additions and 4 deletions

View file

@ -11,5 +11,5 @@ Gen3](https://www.tuxedocomputers.com/en/TUXEDO-Pulse-14-Gen3).
### Shutdown and Power Issues ### Shutdown and Power Issues
With the Linux Kernel version `6.6.33` (NixOS 24.05) there are shutdown issues resulting in the battery not turning off With the Linux Kernel version `6.6.33` (NixOS 24.05) there are shutdown issues resulting in the battery not turning off
completely. Apparently a newer Kernel (tested with `6.8.12`) fixes this (the exact version where this problem is fixed is unknown). completely. Apparently a newer Kernel (tested with `6.6.35`) fixes this (the exact version where this problem is fixed is unknown).
This `default.nix` will upgrade to the `pkgs.linuxPackages_latest` if the kernel is older than `6.8.12`. This `default.nix` will upgrade to the `pkgs.linuxPackages_latest` if the kernel is older than `6.6.35`.

View file

@ -14,9 +14,9 @@
# Fixing a power-issue with older kernels. # Fixing a power-issue with older kernels.
# When powered off, the battery does not turn off completely. # When powered off, the battery does not turn off completely.
# Kernel 6.8.12 fixes this, # Kernel 6.6.35 apparently does not have this issue,
# the exact version is still unknown which fixed this. # the exact version is still unknown which fixed this.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.8.12") ( boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.35") (
if (config.boot.zfs.enabled) if (config.boot.zfs.enabled)
then pkgs.zfs.latestCompatibleLinuxPackages then pkgs.zfs.latestCompatibleLinuxPackages
else pkgs.linuxPackages_latest else pkgs.linuxPackages_latest