blob: 9f465b96cda0f7da8231066ec71e0ed7cc5b0362 (
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
|
<!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>Bloggings</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>Coupure microphone X220</h2>
<h3>2021-05-09</h3>
<p>Dans mon Thinkpad X22O fonctionnant sous Manjaro i3, la bouton de coupure du micro est
désactivée, car il n'est pas pris en charge par thinkpad-acpi.<br>
Pour l'activer, voici ce que j'ai fait:</p>
<p>Premièrement, vérifier que l'acpi est installé:</p>
<pre>sudo pacman -S acpi</pre>
</p>1) créer le fichier /etc/acpi/events/lenovo-mutemic</p>
<pre>
event=bouton/f20
action=/etc/acpi/lenovo-mutemic.sh
</pre>
<p>2) créez le fichier /etc/acpi/lenovo-mutemic.sh</p>
<pre>
#!/bin/bash
INPUT_DEVICE=" 'Capture'"
VOTRE_USERNAME="philip"
if amixer sget $INPUT_DEVICE,0 | grep '\[on\]' ; then
amixer sset $INPUT_DEVICE,0 toggle
echo "0 blink" | sudo tee /proc/acpi/ibm/led
DISPLAY=":0.0" notify-send -t 1000 -i microphone-sensibilité-muted-symbolic "Mic MUTED"
else
amixer sset $INPUT_DEVICE,0 toggle
DISPLAY=":0.0" notify-send -t 1000 -i microphone-sensitivity-high-symbolic "Mic ON"
echo "0 on" | sudo tee /proc/acpi/ibm/led
fi
</pre>
<p>3) redémarrer acpi</p>
<pre>systemctl restart acpid.service</pre>
<p>Adapté de <a
href="https://askubuntu.com/questions/125367/enabling-mic-mute-button-and-light-on-lenovo-thinkpads">réponseAskubuntu</a>.</p>
</article>
</main>
<footer>
<p> </p><p>§</p></footer>
</body></html>
|