1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-27 05:19:43 +01:00

Fix audio interference in headphone jack on Thinkpad x1 Nano Gen 1

This commit is contained in:
queer-bird 2024-02-12 11:59:10 -08:00 committed by mergify[bot]
parent 6e5cc385fc
commit 8be74baad0

View file

@ -1,3 +1,17 @@
{ ... }: { { pkgs, ... }:
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" ];
};
} }