mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 23:13:29 +01:00
Fix audio interference in headphone jack on Thinkpad x1 Nano Gen 1
This commit is contained in:
1 parent
6e5cc385fc
commit
8be74baad0
1 file changed
+15
-1
@@ -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" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user