Hi I am not able to record sound on my laptop (Debian 10). I tried two different earphones, both are working fine on my phone. I tried to do a little troubleshooting by googling, but could not find the problem. (I am new to linux). I would appreciate any help I can get. Thanks
~$ aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC270 Analog [ALC270 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
~$ amixer -c0
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 78 [90%] [-6.75dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] [-65.25dB] [off]
Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 3 [100%] [36.00dB]
Front Right: 3 [100%] [36.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 31 [100%] [30.00dB] [on]
Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Earphone Mic : Unable to record sound on Debian 10
- FreewheelinFrank
- Global Moderator
- Posts: 2112
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 231 times
Re: Earphone Mic : Unable to record sound on Debian 10
You are new to Linux but have hit one of the most tricky problems in Linux: non-standard hardware set-ups. The problem (I believe) is vendors hacking the driver to work with the hardware, rather than setting up the hardware to work according to standards.
There is a hack for you card that may work, add
to
Create the file if it's not there. Restart ALSA or laptop.
https://01.org/linuxgraphics/gfx-docs/d ... xxx-models
Another option is hdajackretask, which can tell ALSA there a mic on the jack.
https://fossies.org/linux/alsa-tools/hd ... ask/README
If you search "Headset mic not detected ALC270" you will find threads on the same problem. Not really what you want to deal with when you are new to Linux, sorry to say.
There is a hack for you card that may work, add
Code: Select all
options snd-hda-intel model=headset-mic
Code: Select all
/etc/modprobe.d/alsa-base.conf
https://01.org/linuxgraphics/gfx-docs/d ... xxx-models
Another option is hdajackretask, which can tell ALSA there a mic on the jack.
https://fossies.org/linux/alsa-tools/hd ... ask/README
If you search "Headset mic not detected ALC270" you will find threads on the same problem. Not really what you want to deal with when you are new to Linux, sorry to say.
Re: Earphone Mic : Unable to record sound on Debian 10
Thanks for your quick response. I will try the steps that you have suggested and let you know.FreewheelinFrank wrote: ↑2021-09-07 13:50 You are new to Linux but have hit one of the most tricky problems in Linux: non-standard hardware set-ups. The problem (I believe) is vendors hacking the driver to work with the hardware, rather than setting up the hardware to work according to standards.
There is a hack for you card that may work, add
toCode: Select all
options snd-hda-intel model=headset-mic
Create the file if it's not there. Restart ALSA or laptop.Code: Select all
/etc/modprobe.d/alsa-base.conf
https://01.org/linuxgraphics/gfx-docs/d ... xxx-models
Another option is hdajackretask, which can tell ALSA there a mic on the jack.
https://fossies.org/linux/alsa-tools/hd ... ask/README
If you search "Headset mic not detected ALC270" you will find threads on the same problem. Not really what you want to deal with when you are new to Linux, sorry to say.
Re: Earphone Mic : Unable to record sound on Debian 10
Hi successfully created the alsa-base.conf file and updated it withFreewheelinFrank wrote: ↑2021-09-07 13:50 You are new to Linux but have hit one of the most tricky problems in Linux: non-standard hardware set-ups. The problem (I believe) is vendors hacking the driver to work with the hardware, rather than setting up the hardware to work according to standards.
There is a hack for you card that may work, add
toCode: Select all
options snd-hda-intel model=headset-mic
Create the file if it's not there. Restart ALSA or laptop.Code: Select all
/etc/modprobe.d/alsa-base.conf
https://01.org/linuxgraphics/gfx-docs/d ... xxx-models
Another option is hdajackretask, which can tell ALSA there a mic on the jack.
https://fossies.org/linux/alsa-tools/hd ... ask/README
If you search "Headset mic not detected ALC270" you will find threads on the same problem. Not really what you want to deal with when you are new to Linux, sorry to say.
Code: Select all
options snd-hda-intel model=headset-mic
Then I tried the second option (hdajackretask)
Screenshot:
https://ibb.co/rmdd7w1
I am not sure if trying to override is what I should be doing. But in any case if I try to override it, it pops up an error box.
I am not sure how to proceed now. Any assistance will be appreciated. In the mean time, I will continue to look for any help that I may get on google.
Thanks!
- FreewheelinFrank
- Global Moderator
- Posts: 2112
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 231 times
Re: Earphone Mic : Unable to record sound on Debian 10
Click on show unconnected pins and override one of them as a microphone. This is what worked for me.
Finding the right pin is a matter of trial and error - or search your card and hdajackretask and see if anybody found the right pin.
Make sure anything that uses sound is closed - even then, you will probably have to try several times before the change sticks.
Or you can click on Install boot override and reboot - you will have to do that anyway to make the change permanent of course.
Bit of a faff of course - blame the laptop manufacturer for not writing the BIOS code correctly to announce to the OS that there's a mic on one of those pins.
Finding the right pin is a matter of trial and error - or search your card and hdajackretask and see if anybody found the right pin.
Make sure anything that uses sound is closed - even then, you will probably have to try several times before the change sticks.
Or you can click on Install boot override and reboot - you will have to do that anyway to make the change permanent of course.
Bit of a faff of course - blame the laptop manufacturer for not writing the BIOS code correctly to announce to the OS that there's a mic on one of those pins.
Re: Earphone Mic : Unable to record sound on Debian 10
and not sure if you know you showed a command to list output devices. Keep it simple I suggest you show the output to
I will show you an example
**** List of CAPTURE Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic_1 [HD-Audio Generic], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Code: Select all
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic_1 [HD-Audio Generic], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0