You are not logged in.

#1 2021-02-09 01:28:25

dandyrow
Member
Registered: 2020-12-27
Posts: 2

Headphones and microphone not detected when plugged in

Hi I'm new to the forums so if I haven't provided enough detail please let me know and I will add to my post.

When I plug my headphones and/or microphone into my front panel audio connectors nothing is detected, however if I boot with them plugged in they work perfectly and as long as I keep either my mic or headphones plugged in I can unplug and plug in the other and they are detected correctly.

If i'm already booted however I can run:

grep Codec /proc/asound/card*/codec

which outputs:

/proc/asound/card0/codec#0:Codec: Nvidia GPU 83 HDMI/DP
/proc/asound/card1/codec#0:Codec: Realtek ALC892 

As soon as that command is run the audio switches from my monitor to my headphones.

I have an Nvidia GTX 1070 which I usually use for sound over displayport using my monitors built in speakers.

My motherboard is the MSI B350 pc mate with a Ryzen 5 1600 processor.

cat /proc/asound/modules:

 0 snd_hda_intel
 1 snd_hda_intel 

aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

sudo fuser -v /dev/snd/* (with headphones and mic plugged in and working):

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  dandyrow    969 F.... pulseaudio
/dev/snd/controlC1:  dandyrow    969 F.... pulseaudio
/dev/snd/pcmC1D0c:   dandyrow    969 F...m pulseaudio
/dev/snd/timer:      dandyrow    969 f.... pulseaudio

sudo fuser -v /dev/snd/* (after unplugging and plugging in mic and headphones):

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  dandyrow    969 F.... pulseaudio
/dev/snd/controlC1:  dandyrow    969 F.... pulseaudio
/dev/snd/pcmC0D8p:   dandyrow    969 F...m pulseaudio

I've searched the forums, the internet in general and have been looking through the wiki to try and solve this but haven't found anything that works apart from the temporary fix of just running

grep Codec /proc/asound/card*/codec

everytime i need to use them which isn't ideal

Offline

#2 2021-02-09 08:52:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,444

Re: Headphones and microphone not detected when plugged in

Welcome to the boards

Do you have a parallel Windows installation? Is fast boot disabled if so? In general this reads like your mainboard initializes to weird state that can be fixed by explicitly probing the codec again, in which case you should be able to run a

sudo alsactl store

which should lead to the activation of the alsa-restore.service that should imply a relevant codec reinit that will fix this.

Offline

#3 2021-02-09 11:08:50

dandyrow
Member
Registered: 2020-12-27
Posts: 2

Re: Headphones and microphone not detected when plugged in

Thanks for your welcome!

I don't have windows installed. Arch is the only desktop OS I use.

Using

sudo alsactl store

didn't fix it unfortunately. When I unplug the mic and headphones and then plug them back in straight away they are still detected however if I keep them out for a few seconds and plug them back in they are no longer detected.

I rebooted after running the command and also ran it with the headphones and mic disconnected as well as connected after boot

Offline

Board footer

Powered by FluxBB