1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-02 11:03:33 +02:00

Update to fix audio interference on Thinkpad X1 Nano Gen 1

Fixes the issue that this model of laptop has with audio interference in the headphone jack.
This commit is contained in:
queer-bird 2024-02-12 11:43:17 -08:00 committed by GitHub
parent 6e5cc385fc
commit 5e72bf5e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,19 @@
{ ... }: {
imports = [ ../. ];
imports = [ ../. ];
environment.systemPackages = with pkgs; [
alsa-utils
];
systemd.services.x1-fix = {
description = "Use alsa-utils to fix sound interference on Thinkpad x1 Nano";
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.alsa-tools}/bin/hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0";
Restart = "on-failure";
};
wantedBy = [ "default.target" ];
};
}