valere: add kernel support for the mute keys~
This commit is contained in:
parent
49a8f719ec
commit
cf374d5c99
4 changed files with 35 additions and 2 deletions
|
@ -280,7 +280,7 @@
|
||||||
specialArgs = mkSpecialArgs system;
|
specialArgs = mkSpecialArgs system;
|
||||||
|
|
||||||
modules = linuxOfflineGuiModules [
|
modules = linuxOfflineGuiModules [
|
||||||
./nixos/hosts/valere.nix
|
./nixos/hosts/valere
|
||||||
./nixos/configs/steam.nix
|
./nixos/configs/steam.nix
|
||||||
./nixos/configs/vmware.nix
|
./nixos/configs/vmware.nix
|
||||||
./nixos/configs/power-saving.nix
|
./nixos/configs/power-saving.nix
|
||||||
|
|
|
@ -32,7 +32,8 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
protocol = "ssh";
|
protocol = "ssh";
|
||||||
|
|
||||||
hostName = "trailblazer.kate.tailnet.polytheon.org";
|
#hostName = "trailblazer.kate.tailnet.polytheon.org";
|
||||||
|
hostName = "100.64.0.12";
|
||||||
|
|
||||||
sshUser = "deprekated";
|
sshUser = "deprekated";
|
||||||
sshKey = "/home/deprekated/.ssh/id_ed25519";
|
sshKey = "/home/deprekated/.ssh/id_ed25519";
|
||||||
|
|
21
nixos/hosts/valere/00-support-dell-smbios.patch
Normal file
21
nixos/hosts/valere/00-support-dell-smbios.patch
Normal 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;
|
|
@ -117,6 +117,17 @@
|
||||||
];
|
];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.acpi_call ];
|
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.
|
# Support thunderbolt.
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue