You are not logged 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*/codecwhich 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 #0sudo 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.... pulseaudiosudo 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 pulseaudioI'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*/codeceverytime i need to use them which isn't ideal
Offline
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 storewhich should lead to the activation of the alsa-restore.service that should imply a relevant codec reinit that will fix this.
Offline
Thanks for your welcome!
I don't have windows installed. Arch is the only desktop OS I use.
Using
sudo alsactl storedidn'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