1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-09-19 21:07:23 +02: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
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).
This `default.nix` will upgrade to the `pkgs.linuxPackages_latest` if the kernel is older than `6.8.12`.
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.6.35`.

View file

@ -14,9 +14,9 @@
# Fixing a power-issue with older kernels.
# 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.
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)
then pkgs.zfs.latestCompatibleLinuxPackages
else pkgs.linuxPackages_latest