Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Audio device randomly not available
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Spargeltarzan
Apprentice
Apprentice


Joined: 23 Jul 2017
Posts: 266

PostPosted: Sat Feb 17, 2018 10:56 pm    Post subject: Audio device randomly not available Reply with quote

Dear Community,

Randomly (~every fourth boot of my notebook) my audio device is not available (only dummy output shown in Gnome). A reboot fixes it and I can play audio again.

Any idea how I can fix it?

Code:
 lspci -k
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
   Subsystem: Lenovo Sunrise Point-LP HD Audio
   Kernel driver in use: snd_hda_intel


Many thanks.
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6555
Location: Saint Amant, Acadiana

PostPosted: Sun Feb 18, 2018 2:25 am    Post subject: Reply with quote

Quote:
Any idea how I can fix it?

I usually start with troubleshooting in case there is some trouble. Right now, considering all the information you have provided, I'd conclude something is wrong.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sun Feb 18, 2018 3:16 am    Post subject: Reply with quote

When it is not available, is it still recognized by the kernel? Visible in alsamixer?

Seeing that you use Gnome, my guess is that it is probably pulseaudio messing up...
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Spargeltarzan
Apprentice
Apprentice


Joined: 23 Jul 2017
Posts: 266

PostPosted: Wed Feb 21, 2018 9:35 pm    Post subject: Reply with quote

Jaglover wrote:

I usually start with troubleshooting in case there is some trouble. Right now, considering all the information you have provided, I'd conclude something is wrong.


Very philosophic!


I am now booted with "dummy output" as the only audio device. As a normal user alsamixer only shows one master and as a device pulseaudio, nothing else. As root alsamixer shows my HDA Intel PCH. Speaker is 100/100, PCM 100/100

Code:

lenovo-yoga ~ # dmesg | grep audio
[    1.632507] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC298: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    1.632509] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    1.632510] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    1.632511] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    1.632512] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    1.632514] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x18
[    1.632515] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12


How do I check if pulseaudio messed it up?
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen


Last edited by Spargeltarzan on Mon Feb 26, 2018 9:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Spargeltarzan
Apprentice
Apprentice


Joined: 23 Jul 2017
Posts: 266

PostPosted: Sun Feb 25, 2018 11:40 pm    Post subject: Reply with quote

I have realised that simply killing (pulseaudio -k) and starting (pulseaudio --start) pulseaudio fixes the issue, if the device is not available since boot.

Nothing blocks pulseaudio (recommendation from the Wiki to check):
Code:

lenovo-yoga ~ # fuser -v /dev/snd/*
                     BEN.        PID ZUGR.  BEFEHL
/dev/snd/controlC0:  gdm        2553 F.... pulseaudio


After restarting pulseaudio, fuser also reports controlc0 as a user:
Code:

username@lenovo-yoga ~ $ fuser -v /dev/snd/*
                     BEN.        PID ZUGR.  BEFEHL
/dev/snd/controlC0:  username   22261 F.... pulseaudio


Any idea how to fix this?
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
Spargeltarzan
Apprentice
Apprentice


Joined: 23 Jul 2017
Posts: 266

PostPosted: Sat Mar 03, 2018 10:48 am    Post subject: Reply with quote

I have compiled pulseaudio with those flags:

11.1{tbz2}(03:43:26 27.02.2018)(X alsa alsa-plugin asyncns bluetooth caps dbus gdbm glib gnome gtk ipv6 orc ssl tcpd udev webrtc-aec -doc -equalizer -jack -libressl -libsamplerate -lirc -native-headset -neon -ofono-headset -oss -qt4 -realtime -selinux -sox -system-wide -systemd -test -zeroconf ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")

If there is more information what I can provide you for your appreciated support, please let me know.
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum