Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My pulseaudio went crazy... stuck in infinite loop? - SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 157

PostPosted: Tue Oct 04, 2016 2:25 pm    Post subject: My pulseaudio went crazy... stuck in infinite loop? - SOLVED Reply with quote

Hi all, I'm completely stuck on this one and need some help...

Pulseaudio seems to be stuck in a loop creating sources/sinks over and over again and cutting out the s/pdif connection to my stereo every time.
I can open alsamixer and actually watch the s/pdif button flicker on and off rapidly.

I tried setting use="-pulseaudio" in make.conf and emerge -uDN world and after a reboot the problem did go away, which I think rules out hardware/kernel/alsa.

I also tried deleting ~/.config/pulse and that had no effect.

I have no idea what else to try or how to even make a useful search as I'm not entirely sure what's happening here...
Here is a snippet from the output of pulseaudio -v (it just keeps repeating over and over again and got up to number 2208 in less than 5 minutes...)

Code:
I: [pulseaudio] source.c: Created source 2208 "alsa_output.pci-0000_00_14.2.analog-stereo.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Built-in Audio Analog Stereo"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     alsa.card = "0"
I: [pulseaudio] source.c:     alsa.card_name = "HDA ATI SB"
I: [pulseaudio] source.c:     alsa.long_card_name = "HDA ATI SB at 0xfe5f4000 irq 16"
I: [pulseaudio] source.c:     alsa.driver_name = "snd_hda_intel"
I: [pulseaudio] source.c:     device.bus_path = "pci-0000:00:14.2"
I: [pulseaudio] source.c:     sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
I: [pulseaudio] source.c:     device.bus = "pci"
I: [pulseaudio] source.c:     device.vendor.id = "1002"
I: [pulseaudio] source.c:     device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
I: [pulseaudio] source.c:     device.product.id = "4383"
I: [pulseaudio] source.c:     device.product.name = "SBx00 Azalia (Intel HDA)"
I: [pulseaudio] source.c:     device.form_factor = "internal"
I: [pulseaudio] source.c:     device.string = "0"
I: [pulseaudio] source.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] source.c:     device.icon_name = "audio-card-pci"
I: [pulseaudio] alsa-sink.c: Using 2.0 fragments of size 32768 bytes (185.76ms), buffer size is 65536 bytes (371.52ms)
I: [pulseaudio] alsa-sink.c: Time scheduling watermark is 20.00ms
I: [pulseaudio] alsa-sink.c: Successfully enabled deferred volume.
I: [pulseaudio] alsa-sink.c: Hardware volume ranges from -179.00 dB to 0.00 dB.
I: [pulseaudio] alsa-sink.c: Fixing base volume to 0.00 dB
I: [pulseaudio] alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
I: [pulseaudio] alsa-sink.c: Using hardware mute control.
I: [alsa-sink-ALC892 Analog] core-util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 5.
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Starting playback.
I: [pulseaudio] card.c: Changed profile of card 1 "alsa_card.pci-0000_00_14.2" to output:analog-stereo+input:analog-stereo
I: [pulseaudio] sink.c: Freeing sink 2207 "alsa_output.pci-0000_00_14.2.analog-stereo"
I: [pulseaudio] source.c: Freeing source 2208 "alsa_output.pci-0000_00_14.2.analog-stereo.monitor"
I: [pulseaudio] alsa-util.c: Trying to disable ALSA period wakeups, using timers only
I: [pulseaudio] alsa-util.c: ALSA period wakeups disabled
I: [pulseaudio] alsa-sink.c: Successfully opened device iec958:0.
I: [pulseaudio] alsa-sink.c: Selected mapping 'Digital Stereo (IEC958)' (iec958-stereo).
I: [pulseaudio] alsa-sink.c: Successfully enabled mmap() mode.
I: [pulseaudio] alsa-sink.c: Successfully enabled timer-based scheduling mode.
I: [pulseaudio] control.c: Invalid CTL iec958:0
I: [pulseaudio] alsa-util.c: Unable to attach to mixer iec958:0: No such file or directory
I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0'
I: [pulseaudio] sink.c: Created sink 2208 "alsa_output.pci-0000_00_14.2.iec958-stereo" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     alsa.resolution_bits = "16"
I: [pulseaudio] sink.c:     device.api = "alsa"
I: [pulseaudio] sink.c:     device.class = "sound"
I: [pulseaudio] sink.c:     alsa.class = "generic"
I: [pulseaudio] sink.c:     alsa.subclass = "generic-mix"
I: [pulseaudio] sink.c:     alsa.name = "ALC892 Digital"
I: [pulseaudio] sink.c:     alsa.id = "ALC892 Digital"
I: [pulseaudio] sink.c:     alsa.subdevice = "0"
I: [pulseaudio] sink.c:     alsa.subdevice_name = "subdevice #0"
I: [pulseaudio] sink.c:     alsa.device = "1"
I: [pulseaudio] sink.c:     alsa.card = "0"
I: [pulseaudio] sink.c:     alsa.card_name = "HDA ATI SB"
I: [pulseaudio] sink.c:     alsa.long_card_name = "HDA ATI SB at 0xfe5f4000 irq 16"
I: [pulseaudio] sink.c:     alsa.driver_name = "snd_hda_intel"
I: [pulseaudio] sink.c:     device.bus_path = "pci-0000:00:14.2"
I: [pulseaudio] sink.c:     sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
I: [pulseaudio] sink.c:     device.bus = "pci"
I: [pulseaudio] sink.c:     device.vendor.id = "1002"
I: [pulseaudio] sink.c:     device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
I: [pulseaudio] sink.c:     device.product.id = "4383"
I: [pulseaudio] sink.c:     device.product.name = "SBx00 Azalia (Intel HDA)"
I: [pulseaudio] sink.c:     device.form_factor = "internal"
I: [pulseaudio] sink.c:     device.string = "iec958:0"
I: [pulseaudio] sink.c:     device.buffering.buffer_size = "65536"
I: [pulseaudio] sink.c:     device.buffering.fragment_size = "32768"
I: [pulseaudio] sink.c:     device.access_mode = "mmap+timer"
I: [pulseaudio] sink.c:     device.profile.name = "iec958-stereo"
I: [pulseaudio] sink.c:     device.profile.description = "Digital Stereo (IEC958)"
I: [pulseaudio] sink.c:     device.description = "Built-in Audio Digital Stereo (IEC958)"
I: [pulseaudio] sink.c:     alsa.mixer_name = "Realtek ALC892"
I: [pulseaudio] sink.c:     alsa.components = "HDA:10ec0892,14627599,00100302"
I: [pulseaudio] sink.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card-pci"
I: [pulseaudio] source.c: Created source 2209 "alsa_output.pci-0000_00_14.2.iec958-stereo.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Built-in Audio Digital Stereo (IEC958)"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     alsa.card = "0"
I: [pulseaudio] source.c:     alsa.card_name = "HDA ATI SB"
I: [pulseaudio] source.c:     alsa.long_card_name = "HDA ATI SB at 0xfe5f4000 irq 16"
I: [pulseaudio] source.c:     alsa.driver_name = "snd_hda_intel"
I: [pulseaudio] source.c:     device.bus_path = "pci-0000:00:14.2"
I: [pulseaudio] source.c:     sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
I: [pulseaudio] source.c:     device.bus = "pci"
I: [pulseaudio] source.c:     device.vendor.id = "1002"
I: [pulseaudio] source.c:     device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
I: [pulseaudio] source.c:     device.product.id = "4383"
I: [pulseaudio] source.c:     device.product.name = "SBx00 Azalia (Intel HDA)"
I: [pulseaudio] source.c:     device.form_factor = "internal"
I: [pulseaudio] source.c:     device.string = "0"
I: [pulseaudio] source.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] source.c:     device.icon_name = "audio-card-pci"
I: [pulseaudio] alsa-sink.c: Using 2.0 fragments of size 32768 bytes (185.76ms), buffer size is 65536 bytes (371.52ms)
I: [pulseaudio] alsa-sink.c: Time scheduling watermark is 20.00ms
I: [pulseaudio] alsa-sink.c: Driver does not support hardware volume control, falling back to software volume control.
I: [pulseaudio] alsa-sink.c: Using hardware mute control.
I: [alsa-sink-ALC892 Digital] core-util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 5.
I: [alsa-sink-ALC892 Digital] alsa-sink.c: Starting playback.
I: [pulseaudio] card.c: Changed profile of card 1 "alsa_card.pci-0000_00_14.2" to output:iec958-stereo+input:analog-stereo


Any help with this would be greatly appreciated!

Edit; this is a mostly stable amd64 system with a few goodies like KDE5/qt5. The problem first appeared after logging out of X (all the way to tty) and starting it back up.
_________________
If it ain't broke - fix it till it is!


Last edited by nasaiya on Sun Feb 26, 2017 5:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Tue Oct 04, 2016 6:55 pm    Post subject: Reply with quote

Quote:
I also tried deleting ~/.config/pulse and that had no effect.


Thats your user profile

Are there any config files in /etc ?
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 157

PostPosted: Tue Oct 04, 2016 10:10 pm    Post subject: Reply with quote

There are a few files in etc (I've not touched any of them). I tried moving them away before replying but without them pulseaudio won't start at all.
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Tue Oct 04, 2016 10:19 pm    Post subject: Reply with quote

Have you try to use Pavucontrol and see what you can do in the configuration and other tabs? When Pulseaudio run and take the control of the sound card, Alsamixer is not of a great utility. The USE flags with who Pulseaudio have been compile can have something to do with the flip on and off of s/pdif.
_________________
Paul
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 157

PostPosted: Tue Oct 04, 2016 10:26 pm    Post subject: Reply with quote

Yep, pavucontrol is essentially un-useable. It constantly flickers and resets itself just like the button in alsamixer. Sometimes it says "establishing connection to pulseaudio" for a moment between flickering, this is partly why I think pulseaudio itself is crashing and restarting over and over again or something.

EDIT: After messing around with /etc/pulse/default.pa for a while without any improvement I decided to try downgrading pulseaudio (from 9 to 8 ) and the problem went away! If I need to I'll just keep it at version 8 for now but I'm still curious what could be causing this. I think this definitely proves it's pulseaudio itself that is the problem (or some misconfiguration version 9 doesn't like).
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Oct 05, 2016 1:45 pm    Post subject: Reply with quote

Quote:
amd64 system
Maybe an antique kernel. Newer software expects stable kernel.org kernels and not gentoo stable antique ones ... (4.7.x or 4.8.x ...)

WEll it works here but bugs can happen with different setups, so ... Not really a proof that this is the cause
Code:
qlist -Iv pulse
media-sound/pulseaudio-9.0
ASUS-G75VW roman # uname -a
Linux ASUS-G75VW 4.7.3-gentoo ...
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 157

PostPosted: Wed Oct 05, 2016 2:21 pm    Post subject: Reply with quote

Yeah I've got 4.4.21-gentoo I suppose that could be considered antique... It's possible I was on pulseaudio 8 and updated it to 9 without noticing while updating world and the problem didn't appear until I restarted X... I'll have to try upgrading the kernel and going back to 9 to see what happens.

I'm not an audiophile though... if sound comes out of the speakers when I want it to, and doesn't when I don't that's all that really matters..
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 157

PostPosted: Sun Feb 26, 2017 5:31 am    Post subject: Reply with quote

Well this problem.. ahem.. re-emerged after a world update that left me with pulseaudio 10 and no apparent downgrade option less than 9.

After wasting more time on this I finally unplugged the damned front panel connector for my case and viola! Audio works flawlessly!
I've since discovered there are TWO connectors, AC'97 and HD audio (from the case). I think I might have accidentally had the ****ing AC'97 one plugged in all this time, causing audio problems for YEARS! Everything seems to be working fine with the HD connector plugged in now...

So long story short if you have this problem, um, check your connections... :x Bogus headphone jack plugged/unplugged events were being generated or picked up by alsa and pulseaudio causing them to cut the digital output and try and switch back and forth between headphone and digital very rapidly...

This one belongs in the old "dumbest things you've done with linux" thread I think :oops: :oops: :roll:
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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