mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-23 10:09:44 +01:00
Fix audio interference in headphone jack on Thinkpad x1 Nano Gen 1
This commit is contained in:
parent
6e5cc385fc
commit
8be74baad0
1 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,17 @@
|
|||
{ ... }: {
|
||||
{ pkgs, ... }:
|
||||
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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue