valere: add kernel support for the mute keys~

This commit is contained in:
Kate 2024-11-24 13:04:33 -07:00
parent 49a8f719ec
commit cf374d5c99
4 changed files with 35 additions and 2 deletions

View file

@ -280,7 +280,7 @@
specialArgs = mkSpecialArgs system;
modules = linuxOfflineGuiModules [
./nixos/hosts/valere.nix
./nixos/hosts/valere
./nixos/configs/steam.nix
./nixos/configs/vmware.nix
./nixos/configs/power-saving.nix

View file

@ -32,7 +32,8 @@
system = "x86_64-linux";
protocol = "ssh";
hostName = "trailblazer.kate.tailnet.polytheon.org";
#hostName = "trailblazer.kate.tailnet.polytheon.org";
hostName = "100.64.0.12";
sshUser = "deprekated";
sshKey = "/home/deprekated/.ssh/id_ed25519";

View file

@ -0,0 +1,21 @@
---
v2:
- Commit message reflects Alienware devices may not necessarily support
the SMBIOS interface
- Commit message now has "Tested on"
---
drivers/platform/x86/dell/dell-smbios-base.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/dell/dell-smbios-base.c b/drivers/platform/x86/dell/dell-smbios-base.c
index 73e41eb69..01c72b91a 100644
--- a/drivers/platform/x86/dell/dell-smbios-base.c
+++ b/drivers/platform/x86/dell/dell-smbios-base.c
@@ -576,6 +576,7 @@ static int __init dell_smbios_init(void)
int ret, wmi, smm;
if (!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL) &&
+ !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Alienware", NULL) &&
!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "www.dell.com", NULL)) {
pr_err("Unable to run on non-Dell system\n");
return -ENODEV;

View file

@ -117,6 +117,17 @@
];
boot.extraModulePackages = [ config.boot.kernelPackages.acpi_call ];
# Support the Dell Privacy Driver.
boot.kernelPatches = [ {
name = "enable-dell-privacy";
patch = ./00-support-dell-smbios.patch;
extraStructuredConfig = with lib.kernel; {
DELL_WMI_PRIVACY = yes;
};
} ];
# Support thunderbolt.
services.hardware.bolt.enable = true;