From cdbb5bb040bacbd314e6cd79e4f0b163e0ae0300 Mon Sep 17 00:00:00 2001 From: Milo Oien-Rochat <13294739+nikolarobottesla@users.noreply.github.com> Date: Tue, 30 Apr 2024 03:09:35 -0500 Subject: [PATCH] HP Elitebook 830 G6 (#904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jörg Thalheim --- README.md | 1 + flake.nix | 1 + hp/elitebook/830/g6/README.md | 8 ++++++++ hp/elitebook/830/g6/default.nix | 26 ++++++++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 hp/elitebook/830/g6/README.md create mode 100644 hp/elitebook/830/g6/default.nix diff --git a/README.md b/README.md index 4f00d86..be88d61 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ See code for all available configurations. | [GPD WIN Max 2 2023](gpd/win-max-2/2023) | `` | | [Google Pixelbook](google/pixelbook) | `` | | [HP Elitebook 2560p](hp/elitebook/2560p) | `` | +| [HP Elitebook 830g6](hp/elitebook/830/g6) | `` | | [HP Elitebook 845g7](hp/elitebook/845/g7) | `` | | [HP Elitebook 845g8](hp/elitebook/845/g8) | `` | | [HP Elitebook 845g9](hp/elitebook/845/g9) | `` | diff --git a/flake.nix b/flake.nix index d68cdc0..0a245a3 100644 --- a/flake.nix +++ b/flake.nix @@ -89,6 +89,7 @@ gpd-win-2 = import ./gpd/win-2; gpd-win-max-2-2023 = import ./gpd/win-max-2/2023; hp-elitebook-2560p = import ./hp/elitebook/2560p; + hp-elitebook-830g6 = import ./hp/elitebook/830/g6; hp-elitebook-845g7 = import ./hp/elitebook/845/g7; hp-elitebook-845g8 = import ./hp/elitebook/845/g8; hp-elitebook-845g9 = import ./hp/elitebook/845/g9; diff --git a/hp/elitebook/830/g6/README.md b/hp/elitebook/830/g6/README.md new file mode 100644 index 0000000..eb9e4e8 --- /dev/null +++ b/hp/elitebook/830/g6/README.md @@ -0,0 +1,8 @@ +# HP Elitebook 830 G6 + +## solved problems +* KDE Plasma 5 (haven't tested others), ~20% of the time freezes at login screen on resume - setting hardare.enableAllFirmware seems to fix + +## Unsolved Problems + +* sometimes fails to sleep (seems to be an application causing it, so probably not a driver/kernel problem) diff --git a/hp/elitebook/830/g6/default.nix b/hp/elitebook/830/g6/default.nix new file mode 100644 index 0000000..b61b263 --- /dev/null +++ b/hp/elitebook/830/g6/default.nix @@ -0,0 +1,26 @@ +{ pkgs, lib, ... }: +{ + imports = [ + ../../../../common/cpu/intel + ../../../../common/pc/laptop + ../../../../common/pc/laptop/acpi_call.nix + ../../../../common/pc/laptop/ssd + ]; + + # Needed for wifi + hardware.enableRedistributableFirmware = lib.mkDefault true; + + # Cooling management + services.thermald.enable = lib.mkDefault true; + + # Allows for updating firmware via `fwupdmgr`. + services.fwupd.enable = lib.mkDefault true; + + # Enables ACPI platform profiles + boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") { + kernelModules = [ "hp-wmi" ]; + }; + + # reduces warnings/errors in boot log, seems to eliminate the ocassional boot hangs described in readme + hardware.enableAllFirmware = lib.mkDefault true; +}