blob: dd7588531a0401a72f64d6307a97273c437ffb60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<!doctype html>
<html lang="EN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>Pipewire</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>Pipewire</h2>
<h3>2025-04-28</h3>
<h4>Fixing Thinkpad X220 microphone woes</h4>
<p>So with my nice new DWM installation I waltz into a Jitsi meeting only to find that my microphone
wasn't working even though it appeared to. Something was missing in pulseaudio after I removed XFCE4, or
wasn't taken into account in DWM. Then I noticed that Librewolf was looking for Pipewire. What?</p>
<p>Eventually I got it working, but the microphone was distorted and full of parasites.
<a href="/articles/2025/Microphone-distortion-on-Thinkpad-X220.html">Adding a module remap</a> to
turn the two laptop microphones into mono was a tad better but I decided go for the bleeding
edge and install Pipewire instead of Pulseaudio.</p>
<pre>
sudo pacman -Rdd pulseaudio
sudo pacman -S pipewire-{jack,alsa,pulse}
systemctl --user enable --now pipewire pipewire-pulse pipewire-media-session
</pre>
<h4>Noise suppression</h4>
<pre>
git clone https://github.com/werman/noise-suppression-for-voice.git
</pre>
<p>Follow the instructions at <a href="https://github.com/werman/noise-suppression-for-voice">Noise suppression for Voice</a></p>
<p>In order to change the default source:</p>
<pre>
pactl list sources short
pactl set-default-source rnnoise_source
systemctl --user restart pipewire.service
</pre>
<p>And that's the best I'll probably ever get out of the internal X220 microphones.</p>
<p>Why not just use Alsa? Because I use a bluetooth headset and noise suppression.</p>
<p>Why not just use an external microphone? I've ordered one :-)</p>
<h3>Bluetooth Autoconnect</h3>
<p>Just to add, Bluetooth Autoconnect was built for Pulseaudio but works fine with Pipewire.</p>
<p>Bluetooth autoconnect will connect any client that is paired and trusted, in my case a headset.</p>
<p>If you use Chaotic-Aur, pacman -S bluetooth-autoconnect will install it. Use yay -S bluetooth-autoconnect if not.</p>
</article>
</main>
<footer>
<p> </p>
<p>§</p>
</footer>
</body>
</html>
|