aboutsummaryrefslogtreecommitdiffstats
path: root/src/w/thinkpad-x220.md
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-01-07 19:33:14 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-01-07 19:33:14 +0100
commit7550d3c3e81c8aa159dc5f6445b1184dcbcdbf2b (patch)
treee4d2856324e01adb124b749de406ca927726aea3 /src/w/thinkpad-x220.md
parent6f5964f75349fc01f4bebef43e29c7c62269013b (diff)
downloadrgoncalves.se-7550d3c3e81c8aa159dc5f6445b1184dcbcdbf2b.tar.gz
wiki/thinkpad-x220: Add micmute button fix
Diffstat (limited to 'src/w/thinkpad-x220.md')
-rw-r--r--src/w/thinkpad-x220.md49
1 files changed, 37 insertions, 12 deletions
diff --git a/src/w/thinkpad-x220.md b/src/w/thinkpad-x220.md
index 7764308..3b12aa3 100644
--- a/src/w/thinkpad-x220.md
+++ b/src/w/thinkpad-x220.md
@@ -27,13 +27,13 @@ muting the right microphone fix this issue.
With pulseaudio/pipewire-pulse, the `remap-source` module can be loaded:
```
-pactl load-module module-remap-source \
- "source_name=${source_name}" \
- "master=${source_index}" \
- use_master_format=1 \
- master_channel_map=front-left \
- channel_map=mono \
- channels=1
+$ pactl load-module module-remap-source \
+ "source_name=${source_name}" \
+ "master=${source_index}" \
+ use_master_format=1 \
+ master_channel_map=front-left \
+ channel_map=mono \
+ channels=1
```
However, the fans can still be heard, and not all voip clients handle noise
@@ -43,16 +43,41 @@ cancelling. Instead, you can keep the right microphone active and use it for
```
$ pactl load-module module-echo-cancel \
- "source_name=${source_name}" \
- "master=${source_index}" \
- use_master_format=1 \
- aec_method="webrtc" \
- aec_args='"beamforming=1 mic_geometry=-1,0,0,1,0,0"'
+ "source_name=${source_name}" \
+ "master=${source_index}" \
+ use_master_format=1 \
+ aec_method="webrtc" \
+ aec_args='"beamforming=1 mic_geometry=-1,0,0,1,0,0"'
```
See [my dotfiles](https://git.rgoncalves.se/dots/tree/.config/pipewire) for
additional information.
+## audio led buttons
+
+On some ThinkPad models, audio led buttons can be broken and desynchronized
+on linux `5.15.x`.
+
+A quick workaround is to catch the key press events (in your dwm configuration,
+i3, sway, etc ...) and force the synchronization of the leds.
+
+For the microphone:
+
+```
+$ pactl get-source-mute @DEFAULT_SOURCE@ | grep no >/dev/null 2>&1
+$ echo "${?}" > /sys/class/leds/platform::micmute/brightness
+```
+
+For the audio sink:
+
+```
+$ pactl get-sink-mute @DEFAULT_SINK@ | grep no >/dev/null 2>&1
+$ echo "${?}" > /sys/class/leds/platform::mute/brightness
+```
+
+See my [dotfiles](https://git.rgoncalves.se/dots/tree/.bin/ag-audio) and
+[the related pipewire issue](https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1849).
+
## usb-c mod
// todo
remember that computers suck.