From 9e96418d3dc5d15dae85494e4b74d9f4aac46f39 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sat, 3 Oct 2026 21:35:53 +0400 Subject: [PATCH] desktop: force micmute LED off, detach audio-micmute trigger Co-Authored-By: Claude Fable 5.1 --- modules/desktop.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/desktop.nix b/modules/desktop.nix index 4b1dc68..f77b445 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -54,4 +54,15 @@ # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; + + # P14s G6 AMD: the F4 mic-mute LED (platform::micmute) is driven by the + # kernel's `audio-micmute` trigger, which follows the HD-audio codec's + # hardware capture-mute. PipeWire mutes in software at the node level and + # never touches that codec mute, so the trigger reports "muted" (LED lit) + # permanently while the mic actually works. Detach the trigger and force + # the LED off at boot. Verified: writing brightness=0 clears it, so the EC + # is fine — this is purely a trigger/software-mute mismatch. + services.udev.extraRules = '' + ACTION=="add", SUBSYSTEM=="leds", KERNEL=="platform::micmute", ATTR{trigger}="none", ATTR{brightness}="0" + ''; }