diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
| commit | 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch) | |
| tree | 3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2021/Coupure-microphone-X220.html | |
update
Diffstat (limited to 'articles/2021/Coupure-microphone-X220.html')
| -rwxr-xr-x | articles/2021/Coupure-microphone-X220.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/articles/2021/Coupure-microphone-X220.html b/articles/2021/Coupure-microphone-X220.html new file mode 100755 index 0000000..9f465b9 --- /dev/null +++ b/articles/2021/Coupure-microphone-X220.html @@ -0,0 +1,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> |
