Thinkpad X230 Tablet: use headset microphone
I investigated using my combined headset (headphones and microphone) jack on my Lneovo Thinkpad X230 Tablet. The headphones would work but not the microphone input. Ultimately, what I got to work was rather simple!
File /usr/local/bin/mutemic
sends a little graphical popup to indicate the microphone status.
The Thinkpad automatically recognizes that the correct input was muted/unmuted (although it's not exactly a mute; it's a type of input-selection or availability?) and enables the orange lamp on the mute-mic button. The /proc/acpi/ibm/led special device does not have an integer available for the mute-mic LED lamp (unless you compile a kernel module yourself?) anyways.
The above script depends on an acpi event definition, which I placed in /etc/acpi/events/mutemic
:
# File: /etc/acpi/events/mutemic # Location: LTB-019 # Author: bgstack15 # Startdate: 2022-08-07 # Title: Mic-mute operation # Purpose: React to acpi event for mute-mic button # History: # Usage: # determine events by running acpi_listen and pressing buttons # Related: # /usr/local/bin/mutemic # Reference: # Improve: # get more specific with event? # Project: X230T-headset # Dependencies: # apt-get install acpid # Documentation: # In file /usr/local/bin/mutemic event=button/micmute action=/usr/local/bin/mutemic
After modifying this file, restart acpid service.
Extra research
I had investigated if I needed to change the driver (settings, or which driver was used?), by modifying /etc/modprobe.d/mic-input.conf
:
options snd_hda_intel model=dual-codecs
There is a whole list of audio "codecs" to use in that model value. Ultimately though, I learned the original (unspecified, so "auto") settings worked, and I just needed to unmute the mic input.
Comments