PDA

View Full Version : HOWTO: PulseAudio Fixes & System-Wide Equalizer Support


Pages : 1 2 [3] 4 5 6 7

ethos_dacapo
August 15th, 2008, 12:17 AM
Ok, let me clear something up: the testing packages in my PPA (and the included instructions) do *not* configure the equalizer (for the sake of simplicity). In order to get the equalizer working, you need to ensure your ~/.asoundrc matches the one posted in the guide on the first page, and that you also follow Part D.

In other words, follow Part A & D of the guide again.

Its working!!! But.... when i highlight a mp3 now it doesn't autoplay and when i open them with the default player i get no sound although i get login sounds, pidgin notifications, sound in flash and all of these are definitely eq'd any ideas, my friend?

UPDATE: I tried using vlc to open mp3 files and they work but i tried using realaudio and it locked up my system 3x in a row requiring a reboot each time to stop the ruckus! I wasn't able to kill pulseaudio once it locked up, shortly after the system became pretty unresponsive.

manlypain
August 15th, 2008, 01:26 AM
Try:
$ sudo apt-get install flashplugin-nonfree/hardy

That will downgrade to the version in the official repositories. Hold off on upgrading until you see that I've fixed the 64bit issues (which I'll post in this thread).

I don't know if this means anything or not but with the downgraded package i have flash back but i lost connection to pulse after a few seconds of playing. i was able to restart it with these errors and then it just dies again very soon after.

rklinkefus@linuxcore2:~$ pulseaudio &
[1] 8513
rklinkefus@linuxcore2:~$ W: pid.c: Stale PID file, overwriting.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0

rklinkefus@linuxcore2:~$ pulseaudio &
[2] 8540
rklinkefus@linuxcore2:~$ E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed.

[2]+ Exit 1 pulseaudio
rklinkefus@linuxcore2:~$ pulseaudio &
[2] 8559
rklinkefus@linuxcore2:~$ E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed.
Soft CPU time limit exhausted, terminating.
Hard CPU time limit exhausted, terminating forcibly.


If you need anymore information from me let me know. Thanks for all the hard work

psyke83
August 15th, 2008, 08:25 AM
I don't know if this means anything or not but with the downgraded package i have flash back but i lost connection to pulse after a few seconds of playing. i was able to restart it with these errors and then it just dies again very soon after

Flash 9 won't work with PulseAudio. You'll need to install the package "libflashsupport" until Flash 10 is available to you.

ypatis
August 15th, 2008, 08:48 AM
i tried with the new guide but i have problem, again. Flash doesn't work. I'm using the Greek version of ubuntu, does that makes any difference.That's what i get when i give the commands from your post.

john@john-desktop:~$ sudo apt-get remove libflashsupport
[sudo] password for john:
Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε (it means Done)
Κατασκευή Δένδρου Εξαρτήσεων
Reading state information... Ολοκληρώθηκε
Το πακέτο libflashsupport δεν είναι εγκατεστημένο και δεν θα αφαιρεθεί
Τα ακόλουθα πακέτα που εγκαταστάθηκαν αυτόματα και δεν χρειάζονται πια:
libswfdec-0.6-90 kdebase-data kdebase-bin-kde3 libboost-thread1.34.1
libswt3.2-gtk-java libboost-date-time1.34.1 libseda-java libcommons-cli-java
cryptsetup libtidy-0.99-0 kdebase-bin libdbus-qt-1-1c2 libcommons-lang-java
libswt3.2-gtk-jni
Χρησμοποιήστε το 'apt-get autoremove' για να τα απομακρύνετε
0 αναβαθμίστηκαν, 0 νέο εγκατεστημένα, 0 θα αφαιρεθούν και 0 δεν αναβαθμίζονται.
john@john-desktop:~$ sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf
rm: cannot remove `/etc/asound.conf': No such file or directory
john@john-desktop:~$ sudo apt-get remove nspluginwrapper
Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε
Κατασκευή Δένδρου Εξαρτήσεων
Reading state information... Ολοκληρώθηκε
Το πακέτο nspluginwrapper δεν είναι εγκατεστημένο και δεν θα αφαιρεθεί
Τα ακόλουθα πακέτα που εγκαταστάθηκαν αυτόματα και δεν χρειάζονται πια:
libswfdec-0.6-90 kdebase-data kdebase-bin-kde3 libboost-thread1.34.1
libswt3.2-gtk-java libboost-date-time1.34.1 libseda-java libcommons-cli-java
cryptsetup libtidy-0.99-0 kdebase-bin libdbus-qt-1-1c2 libcommons-lang-java
libswt3.2-gtk-jni
Χρησμοποιήστε το 'apt-get autoremove' για να τα απομακρύνετε
0 αναβαθμίστηκαν, 0 νέο εγκατεστημένα, 0 θα αφαιρεθούν και 0 δεν αναβαθμίζονται.
john@john-desktop:~$ gksudo gedit /etc/apt/sources.list
john@john-desktop:~$ sudo apt-get update
Hit http://gr.archive.ubuntu.com hardy Release.gpg
Αγνόησε (it means ignore) http://gr.archive.ubuntu.com hardy/main Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy/restricted Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy/universe Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy/multiverse Translation-el
Hit http://gr.archive.ubuntu.com hardy-updates Release.gpg
Hit http://security.ubuntu.com hardy-security Release.gpg
Αγνόησε http://security.ubuntu.com hardy-security/main Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/main Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/restricted Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/universe Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/multiverse Translation-el
Hit http://dl.google.com stable Release.gpg
Hit http://gr.archive.ubuntu.com hardy Release
Αγνόησε http://dl.google.com stable/non-free Translation-el
Αγνόησε http://packages.medibuntu.org hardy Release.gpg
Hit http://gr.archive.ubuntu.com hardy-updates Release
Αγνόησε http://ppa.launchpad.net hardy Release.gpg
Αγνόησε http://ppa.launchpad.net hardy/main Translation-el
Αγνόησε http://security.ubuntu.com hardy-security/restricted Translation-el
Αγνόησε http://security.ubuntu.com hardy-security/universe Translation-el
Αγνόησε http://security.ubuntu.com hardy-security/multiverse Translation-el
Hit http://security.ubuntu.com hardy-security Release
Hit http://dl.google.com stable Release
Hit http://gr.archive.ubuntu.com hardy/main Packages
Αγνόησε http://packages.medibuntu.org hardy/free Translation-el
Φέρε:1 http://ppa.launchpad.net hardy Release [27,6kB]
Hit http://gr.archive.ubuntu.com hardy/restricted Packages
Hit http://gr.archive.ubuntu.com hardy/main Sources
Hit http://gr.archive.ubuntu.com hardy/restricted Sources
Hit http://gr.archive.ubuntu.com hardy/universe Packages
Hit http://gr.archive.ubuntu.com hardy/universe Sources
Hit http://gr.archive.ubuntu.com hardy/multiverse Packages
Hit http://gr.archive.ubuntu.com hardy/multiverse Sources
Αγνόησε http://ppa.launchpad.net hardy/main Packages
Hit http://gr.archive.ubuntu.com hardy-updates/main Packages
Hit http://gr.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://gr.archive.ubuntu.com hardy-updates/main Sources
Hit http://gr.archive.ubuntu.com hardy-updates/restricted Sources
Hit http://gr.archive.ubuntu.com hardy-updates/universe Packages
Hit http://gr.archive.ubuntu.com hardy-updates/universe Sources
Hit http://gr.archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://gr.archive.ubuntu.com hardy-updates/multiverse Sources
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://dl.google.com stable/non-free Packages
Αγνόησε http://packages.medibuntu.org hardy/non-free Translation-el
Αγνόησε http://ppa.launchpad.net hardy/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Hit http://ppa.launchpad.net hardy/main Packages
Αγνόησε http://packages.medibuntu.org hardy Release
Hit http://security.ubuntu.com hardy-security/universe Packages
Hit http://security.ubuntu.com hardy-security/universe Sources
Hit http://security.ubuntu.com hardy-security/multiverse Packages
Hit http://security.ubuntu.com hardy-security/multiverse Sources
Hit http://ppa.launchpad.net hardy/main Sources
Αγνόησε http://packages.medibuntu.org hardy/free Packages
Αγνόησε http://packages.medibuntu.org hardy/non-free Packages
Σφάλμα http://packages.medibuntu.org hardy/free Packages
503 Service Temporarily Unavailable [IP: 78.46.39.176 80]
Σφάλμα http://packages.medibuntu.org hardy/non-free Packages
503 Service Temporarily Unavailable [IP: 78.46.39.176 80]
Μεταφορτώθηκαν 1B σε 1s (1B/s)
W: Αποτυχία ανάκτησης (fail to get)του http://packages.medibuntu.org/dists/hardy/free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

W: Αποτυχία ανάκτησης του http://packages.medibuntu.org/dists/hardy/non-free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

E: Μερικά αρχεία δεν μεταφορτώθηκαν, αγνοήθηκαν ή χρησιμοποιήθηκαν παλαιότερα στη θέση τους.
john@john-desktop:~$ sudo apt-get update
Hit http://gr.archive.ubuntu.com hardy Release.gpg
Αγνόησε http://gr.archive.ubuntu.com hardy/main Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy/restricted Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy/universe Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy/multiverse Translation-el
Hit http://gr.archive.ubuntu.com hardy-updates Release.gpg
Hit http://security.ubuntu.com hardy-security Release.gpg
Αγνόησε http://security.ubuntu.com hardy-security/main Translation-el
Αγνόησε http://security.ubuntu.com hardy-security/restricted Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/main Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/restricted Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/universe Translation-el
Αγνόησε http://gr.archive.ubuntu.com hardy-updates/multiverse Translation-el
Hit http://dl.google.com stable Release.gpg
Αγνόησε http://dl.google.com stable/non-free Translation-el
Hit http://gr.archive.ubuntu.com hardy Release
Φέρε:1 http://packages.medibuntu.org hardy Release.gpg [189B]
Αγνόησε http://packages.medibuntu.org hardy/free Translation-el
Αγνόησε http://ppa.launchpad.net hardy Release.gpg
Αγνόησε http://ppa.launchpad.net hardy/main Translation-el
Hit http://gr.archive.ubuntu.com hardy-updates Release
Αγνόησε http://security.ubuntu.com hardy-security/universe Translation-el
Αγνόησε http://security.ubuntu.com hardy-security/multiverse Translation-el
Hit http://security.ubuntu.com hardy-security Release
Hit http://dl.google.com stable Release
Αγνόησε http://packages.medibuntu.org hardy/non-free Translation-el
Hit http://gr.archive.ubuntu.com hardy/main Packages
Hit http://gr.archive.ubuntu.com hardy/restricted Packages
Hit http://gr.archive.ubuntu.com hardy/main Sources
Hit http://gr.archive.ubuntu.com hardy/restricted Sources
Hit http://gr.archive.ubuntu.com hardy/universe Packages
Hit http://gr.archive.ubuntu.com hardy/universe Sources
Φέρε:2 http://ppa.launchpad.net hardy Release [27,6kB]
Φέρε:3 http://packages.medibuntu.org hardy Release [9335B]
Αγνόησε http://packages.medibuntu.org hardy Release
Hit http://gr.archive.ubuntu.com hardy/multiverse Packages
Hit http://gr.archive.ubuntu.com hardy/multiverse Sources
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://dl.google.com stable/non-free Packages
Hit http://gr.archive.ubuntu.com hardy-updates/main Packages
Hit http://gr.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://gr.archive.ubuntu.com hardy-updates/main Sources
Hit http://gr.archive.ubuntu.com hardy-updates/restricted Sources
Hit http://gr.archive.ubuntu.com hardy-updates/universe Packages
Hit http://gr.archive.ubuntu.com hardy-updates/universe Sources
Hit http://gr.archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://gr.archive.ubuntu.com hardy-updates/multiverse Sources
Αγνόησε http://ppa.launchpad.net hardy/main Packages
Hit http://packages.medibuntu.org hardy/free Packages
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Αγνόησε http://ppa.launchpad.net hardy/main Sources
Hit http://packages.medibuntu.org hardy/non-free Packages
Hit http://security.ubuntu.com hardy-security/universe Packages
Hit http://security.ubuntu.com hardy-security/universe Sources
Hit http://security.ubuntu.com hardy-security/multiverse Packages
Hit http://security.ubuntu.com hardy-security/multiverse Sources
Hit http://ppa.launchpad.net hardy/main Packages
Hit http://ppa.launchpad.net hardy/main Sources
Μεταφορτώθηκαν 191B σε 0s (214B/s)
Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε
W: GPG error: http://packages.medibuntu.org hardy Release: Οι παρακάτω υπογραφές δεν ήταν δυνατόν να επαληθευτούν επειδή δεν ήταν διαθέσιμο το δημόσιο κλειδί: NO_PUBKEY 2EBC26B60C5A2783
W: Ίσως να πρέπει να τρέξετε apt-get update για να διορθώσετε αυτά τα προβλήματα
john@john-desktop:~$ sudo apt-get upgrade
Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε
Κατασκευή Δένδρου Εξαρτήσεων
Reading state information... Ολοκληρώθηκε
0 αναβαθμίστηκαν, 0 νέο εγκατεστημένα, 0 θα αφαιρεθούν και 0 δεν αναβαθμίζονται.
john@john-desktop:~$

psyke83
August 15th, 2008, 09:02 AM
i tried with the new guide but i have problem, again. Flash doesn't work. I'm using the Greek version of ubuntu, does that makes any difference.That's what i get when i give the commands from your post.

Your output shows that no packages got upgraded from my PPA (however, I think you must have upgraded them at an earlier time, correct?). I didn't see you executing "asoundconf set-pulseaudio" either - that's very important, as it enables the PulseAudio ALSA plugin (needed by Flash and other ALSA applications). You're on the i386 version of Ubuntu, right?

Also you seem to have installed swfdec and one time (and have probably now removed), but some of its libraries are still present and waiting for automatic removal. It may not help this issue, but "sudo apt-get autoremove" will clean up your system a bit.

psyke83
August 15th, 2008, 09:04 AM
Its working!!! But.... when i highlight a mp3 now it doesn't autoplay and when i open them with the default player i get no sound although i get login sounds, pidgin notifications, sound in flash and all of these are definitely eq'd any ideas, my friend?

UPDATE: I tried using vlc to open mp3 files and they work but i tried using realaudio and it locked up my system 3x in a row requiring a reboot each time to stop the ruckus! I wasn't able to kill pulseaudio once it locked up, shortly after the system became pretty unresponsive.

RealPlayer is not PulseAudio compatible, there's nothing we can do to fix a closed source application - as an alternative you may want to consider installing the "w32codecs" package from Medibuntu (and ubuntu-restricted-extras package from the Ubuntu repository), and then playing RealMedia content in Totem instead.

If you're having problems with specific applications, you should be following the advice in the guide's appendixes and giving the requested troubleshooting information if it doesn't answer your question.

ypatis
August 15th, 2008, 09:29 AM
everytime i tried i got the same messages. I don't know if i upgrade because at some lines says thinks like

W: fail to get or connect του http://packages.medibuntu.org/dists/hardy/free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

W: fail to get or connect του http://packages.medibuntu.org/dists/hardy/non-free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

When i complete your guide flash should be installed or should i install it through synaptic?

Also i tried sudo apt-get autoremove.

thx84
August 15th, 2008, 09:41 AM
EDIT: Although this PPA contains packages for 32bit and 64bit users, the latest Flash won't work for 64bit users at the moment. Some extra 32bit libraries need to be added to the ia32-lib package (and it's tough to modify a 450mb+ source package), so I'll try to create a supplement package. Since I don't have a 64bit machine, it may take a little while to get this sorted. Thanks for your patience ;)

Hi everyone,

Last night I finally set up my PPA. I have uploaded the newest release candidate of Flash 10, as well as ALSA & PulseAudio packages backported from Intrepid (with added tweaks and fixes from the guide included). I invite everyone to thoroughly test these packages!

1a. Remove obsolete packages and configuration files:
$ sudo apt-get remove libflashsupport
$ sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf

1b. (i386 users only): remove obsolete nspluginwrapper package:
$ sudo apt-get remove nspluginwrapper

2. Add my PPA to your sources.list:$ gksudo gedit /etc/apt/sources.list

Add the following lines to the end, and save:
# PulseAudio Fixes - http://ubuntuforums.org/showthread.php?p=5587712
deb http://ppa.launchpad.net/psyke83/ubuntu hardy main
deb-src http://ppa.launchpad.net/psyke83/ubuntu hardy main

3. Update your repository lists, then upgrade your system (answer Yes to install unsigned packages):
$ sudo apt-get update
$ sudo apt-get upgrade

4. Set PulseAudio as the default ALSA device:
$ asoundconf set-pulseaudio

After logging out and back in, everything should work correctly! These packages will install PulseAudio complete with tweaks to reduce stuttering/CPU usage, and Flash 10 (release candidate). Finally, Flash & PulseAudio work correctly without crashes!

Any feedback on the packages would be appreciated (it's my first attempt, so there could be issues). Thanks.

thanks you man, it works magic for me. I posted your method on the french forum (http://forum.ubuntu-fr.org/viewtopic.php?pid=2001173#p2001173), hope it can help somebody else too!

ethos_dacapo
August 15th, 2008, 09:56 AM
RealPlayer is not PulseAudio compatible, there's nothing we can do to fix a closed source application - as an alternative you may want to consider installing the "w32codecs" package from Medibuntu (and ubuntu-restricted-extras package from the Ubuntu repository), and then playing RealMedia content in Totem instead.

If you're having problems with specific applications, you should be following the advice in the guide's appendixes and giving the requested troubleshooting information if it doesn't answer your question.

There are three possible results:

1. The application plays audio and lists an entry in PulseAudio Volume Control.
2. The application plays audio and does not list an entry in PulseAudio Volume Control.
3. The application fails to play audio and does not list an entry in PulseAudio Volume Control.


Well, mine falls under a fourth... It lists the audio stream for totem but i have not sound. Btw, realplayer worked fine before, i use it to stream live video once a week and the other players that say they support real media don't wanna play it. here's the info you asked for:

$ pulseaudio -k; sleep 4; pulseaudio -vv
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: module-alsa-sink.c: Successfully opened device equalized.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL equalized
I: alsa-util.c: Unable to attach to mixer equalized: No such file or directory
I: alsa-util.c: Unable to attach to mixer hw:(null): No such device
I: sink.c: Created sink 0 "alsa_output.equalized" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.equalized.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 880 bytes.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=equalized").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_2485_sound_card_0_alsa_capture_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_8086_2485_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: Couldn't open PCM device front:0: Device or resource busy
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: Couldn't open PCM device surround40:0: Device or resource busy
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: Couldn't open PCM device surround41:0: Device or resource busy
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: Couldn't open PCM device surround50:0: Device or resource busy
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: Couldn't open PCM device surround51:0: Device or resource busy
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_8086_2485_sound_card_0_a lsa_playback_0"): initialization failed.
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_2485_sound_card_0_alsa_playback_0
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_8086_2485_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_8086_2485_sound_card_0_alsa_capture _0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 880 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_8086_2485_sound_card_0_ alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_2485_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 1 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #5; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #6; argument: "").
D: module-default-device-restore.c: Restored default sink 'alsa_output.equalized'.
D: core-subscribe.c: dropped redundant event.
D: module-default-device-restore.c: Restored default source 'alsa_input.pci_8086_2485_sound_card_0_alsa_captur e_0'.
I: module.c: Loaded "module-default-device-restore" (index: #7; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #8; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.equalized becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.equalized.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_8086_2485_sound_card_0_alsa_capture _0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #9; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #10; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source alsa_input.pci_8086_2485_sound_card_0_alsa_capture _0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.equalized.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink alsa_output.equalized idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...

nick623
August 15th, 2008, 10:00 AM
Before you downgrade, can you help out a bit?

1. Post the verbose log of PulseAudio:

$ pulseaudio -k && pulseaudio -vv

2. Try to temporarily disable PulseAudio:
$ pulseaudio -k && asoundconf unset-pulseaudio

Then, try launching an application and playing sound (you will need to restart any open applications).

Let me know if you can get sound after following step 2.


When I try pulseaudio -k && pulseaudio -vv and pulseaudio -k && asoundconf
unset-pulseaudio I get the same message:

E: main.c: Failed to kill daemon.

My flash eg. Youtube sound seems to work but my sound in sound > preferences doesn't.

By the way in frustration I gave this command to downgrade flash:

sudo apt-get install flashplugin-nonfree/hardy

This could be the issue. Should I just follow the original how to again.

Thanks.

rev7
August 15th, 2008, 10:13 AM
This may need to be changed for some users:



4. Set PulseAudio as the default ALSA device:
$ asoundconf set-pulseaudio


When pulseaudio is set as the soundcard on my system, alsamixer only shows two tracks- PCM mislabled as Master and Capture. The muted master track can be accessed with gnome-alsamixer, and everything works until reboot.

Setting asoundconf to VT82xx (my soundcard) clears this up and allows alsamixer settings to be saved.

Great job!
Cheers!

psyke83
August 15th, 2008, 10:18 AM
This may need to be changed for some users:



When pulseaudio is set as the soundcard on my system, alsamixer only shows two tracks- PCM mislabled as Master and Capture. The muted master track can be accessed with gnome-alsamixer, and everything works until reboot.

Setting asoundconf to VT82xx (my soundcard) clears this up and allows alsamixer settings to be saved.

Great job!
Cheers!

That's unavoidable due to the way the PulseAudio plugins work. The GNOME Volume Control applet isn't affected, and you can get access to the "real" volume via alsamixer by running it like this: $ alsamixer -Dhw

psyke83
August 15th, 2008, 10:22 AM
thanks you man, it works magic for me. I posted your method on the french forum (http://forum.ubuntu-fr.org/viewtopic.php?pid=2001173#p2001173), hope it can help somebody else too!

Merci ;), but I don't see any warning for 64bit users in your post. Can you edit it to add a disclaimer?

psyke83
August 15th, 2008, 10:28 AM
When I try pulseaudio -k && pulseaudio -vv and pulseaudio -k && asoundconf
unset-pulseaudio I get the same message:

E: main.c: Failed to kill daemon.

My flash eg. Youtube sound seems to work but my sound in sound > preferences doesn't.

By the way in frustration I gave this command to downgrade flash:

sudo apt-get install flashplugin-nonfree/hardy

This could be the issue. Should I just follow the original how to again.

Thanks.

Yes, but only follow Part A. You really need to look at Appendix B to give useful troubleshooting information.

psyke83
August 15th, 2008, 10:32 AM
everytime i tried i got the same messages. I don't know if i upgrade because at some lines says thinks like

W: fail to get or connect του http://packages.medibuntu.org/dists/hardy/free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

W: fail to get or connect του http://packages.medibuntu.org/dists/hardy/non-free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

When i complete your guide flash should be installed or should i install it through synaptic?

Also i tried sudo apt-get autoremove.

Those messages are only complaining that Medibuntu's repositories aren't available, nothing to do with this guide.

You will need to install flash if it's not yet installed via the package "flashplugin-nonfree". Also remember that it only works for 32bit users right now.

nick623
August 15th, 2008, 11:47 AM
Yes, but only follow Part A. You really need to look at Appendix B to give useful troubleshooting information.

Well I followed part A. Now I have no audio.

When I give the command pulseaudio -k; sleep 4; pulseaudio -vv the results are:

E: main.c: Failed to kill daemon.
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
I: module-hal-detect.c: Loaded 0 modules.
I: module.c: Loaded "module-hal-detect" (index: #0; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #1; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: module-gconf.c: Loading module 'module-null-sink' with args 'sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"' due to GConf configuration.
I: sink.c: Created sink 0 "rtp" with sample spec "s16be 2ch 44100Hz"
I: source.c: Created source 0 "rtp.monitor" with sample spec "s16be 2ch 44100Hz"
D: module-null-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module.c: Loaded "module-null-sink" (index: #3; argument: "sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"").
D: module-gconf.c: Loading module 'module-rtp-send' with args 'source=rtp.monitor loop=0' due to GConf configuration.
I: source-output.c: Created output 0 "RTP Monitor Stream" on rtp.monitor with sample spec s16be 2ch 44100Hz and channel map front-left,front-right
D: memblockq.c: memblockq requested: maxlength=174080, tlength=174080, base=4, prebuf=1, minreq=0
D: memblockq.c: memblockq sanitized: maxlength=174080, tlength=174080, base=4, prebuf=4, minreq=4
I: module-rtp-send.c: RTP stream initialized with mtu 1280 on 224.0.0.56:46024, SSRC=0x70b989fd, payload=10, initial sequence #24807
I: module-rtp-send.c: SDP-Data:
I: module-rtp-send.c: v=0
I: module-rtp-send.c: o=newbie 3427802616 0 IN IP4 192.168.0.100
I: module-rtp-send.c: s=PulseAudio RTP Stream on newbie-desktop
I: module-rtp-send.c: c=IN IP4 224.0.0.56
I: module-rtp-send.c: t=3427802616 0
I: module-rtp-send.c: a=recvonly
I: module-rtp-send.c: m=audio 46024 RTP/AVP 10
I: module-rtp-send.c: a=rtpmap:10 L16/44100/2
I: module-rtp-send.c: a=type:broadcast
I: module-rtp-send.c: EOF
I: module.c: Loaded "module-rtp-send" (index: #4; argument: "source=rtp.monitor loop=0").
D: module-gconf.c: Loading module 'module-rtp-recv' with args '' due to GConf configuration.
I: module.c: Loaded "module-rtp-recv" (index: #5; argument: "").
D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: protocol-native.c: using already loaded auth cookie.
I: protocol-native.c: using already loaded auth cookie.
I: module.c: Loaded "module-native-protocol-tcp" (index: #6; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: module.c: Loaded "module-esound-protocol-tcp" (index: #7; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-zeroconf-publish' with args '' due to GConf configuration.
D: module-zeroconf-publish.c: Publishing services in Zeroconf
D: module-zeroconf-publish.c: Successfully created entry group for newbie@newbie-desktop: RTP Multicast Sink.
I: module.c: Loaded "module-zeroconf-publish" (index: #8; argument: "").
D: module-gconf.c: Loading module 'module-zeroconf-discover' with args '' due to GConf configuration.
I: module.c: Loaded "module-zeroconf-discover" (index: #9; argument: "").
I: module.c: Loaded "module-gconf" (index: #10; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #11; argument: "").
D: module-default-device-restore.c: Restored default sink 'rtp'.
D: core-subscribe.c: dropped redundant event.
D: module-default-device-restore.c: Restored default source 'rtp.monitor'.
I: module.c: Loaded "module-default-device-restore" (index: #12; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #13; argument: "").
D: module-suspend-on-idle.c: Sink rtp becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #14; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #15; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-zeroconf-publish.c: Successfully established service newbie@newbie-desktop: RTP Multicast Sink.
I: module-zeroconf-publish.c: Successfully established main service.
I: module-suspend-on-idle.c: Sink rtp idle for too long, suspending ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams


It seems to hang on the "Checking for dead streams" message. I have to Control C to end it.

I've checked the Pulseaudio Volume Control's Playback Tab while using rhythmbox and youtube and the applications do not play audio yet are listed as an entry in the PulseAudio Volume Control.

Strange.

Any ideas?

psyke83
August 15th, 2008, 11:56 AM
It seems to hang on the "Checking for dead streams" message. I have to Control C to end it.

I've checked the Pulseaudio Volume Control's Playback Tab while using rhythmbox and youtube and the applications do not play audio yet are listed as an entry in the PulseAudio Volume Control.

Strange.

Any ideas?

If you downgraded to flash 9 and try to play a stream, it's going to cause a problem. Try playing sound in a single appliacation (e.g. only rhythmbox) after a fresh login.

To workaround flash 9, install "libflashsupport".

nick623
August 15th, 2008, 12:21 PM
If you downgraded to flash 9 and try to play a stream, it's going to cause a problem. Try playing sound in a single appliacation (e.g. only rhythmbox) after a fresh login.

To workaround flash 9, install "libflashsupport".

Well I logged in and out. I tried only rhythmbox and got no audio although it showed up on PulseAudio Volume Control Playback.

I also have libflashsupport installed.

Should I try to redo from part A again?
Maybe there is something I forgot?

I had working fine before. Weird.

psyke83
August 15th, 2008, 12:31 PM
Well I logged in and out. I tried only rhythmbox and got no audio although it showed up on PulseAudio Volume Control Playback.

I also have libflashsupport installed.

Should I try to redo from part A again?
Maybe there is something I forgot?

I had working fine before. Weird.

Ok, it's difficult to know what the problem is on your system, so I suggest you revert to defaults.

1. Edit your sources.list and comment/remove the lines for my PPA.

2. Update your repository lists: $ sudo apt-get update
3. Downgrade your packages to the Hardy versions: sudo apt-get install alsa-utils/hardy flashplugin-nonfree/hardy libasound2/hardy libasound2-plugins/hardy libpulse0/hardy libpulse-browse0/hardy libpulsecore5/hardy libpulse-mainloop-glib0/hardy pulseaudio/hardy pulseaudio-esound-compat/hardy pulseaudio-module-gconf/hardy pulseaudio-module-hal/hardy pulseaudio-module-x11/hardy pulseaudio-module-zeroconf/hardy pulseaudio-utils/hardy
4. Delete the asoundrc files: $ rm ~/.asoundrc*

Your system should be back to Hardy's default configuration after logging out and back in (or rebooting). If you want to get PulseAudio working via this guide, ignore the PPA packages and only follow Part A - and thoroughly check if it works before going any further.

fogelfink
August 15th, 2008, 01:40 PM
Sorry to say that it didn't work for me.
:(
I was looking for a solution to pulse audio stuttering and adding random distortion - I have tried to get sound working on my Acer aspire 5720z for the last 4 months (not my idea of spending my time really).
I tried numerous howtos, but the current Linux sound architecture seems such a buggy mess.

After using this tutorial, pulse audio crashes on both soundcards, ALSA stopped working and I am back to square one.

Sorry, I am actually referring to the new alternative howto found here http://ubuntuforums.org/showpost.php?p=5587712&postcount=472.

psyke83
August 15th, 2008, 02:12 PM
Sorry to say that it didn't work for me.
:(
I was looking for a solution to pulse audio stuttering and adding random distortion - I have tried to get sound working on my Acer aspire 5720z for the last 4 months (not my idea of spending my time really).
I tried numerous howtos, but the current Linux sound architecture seems such a buggy mess.

After using this tutorial, pulse audio crashes on both soundcards, ALSA stopped working and I am back to square one.

Sorry, I am actually referring to the new alternative howto found here http://ubuntuforums.org/showpost.php?p=5587712&postcount=472.

Read the disclaimer in the first post; this guide was never meant to fix ALSA issues like the ones you're experiencing.

PulseAudio is a sound server that runs on top of ALSA. If ALSA does not work correctly, PulseAudio will not work either.

You can revert the packages to Hardy defaults if you see my last post in this thread.

ethos_dacapo
August 15th, 2008, 03:43 PM
Ok, it's difficult to know what the problem is on your system, so I suggest you revert to defaults.

1. Edit your sources.list and comment/remove the lines for my PPA.

2. Update your repository lists: $ sudo apt-get update
3. Downgrade your packages to the Hardy versions: sudo apt-get install alsa-utils/hardy flashplugin-nonfree/hardy libasound2/hardy libasound2-plugins/hardy libpulse0/hardy libpulse-browse0/hardy libpulsecore5/hardy libpulse-mainloop-glib0/hardy pulseaudio/hardy pulseaudio-esound-compat/hardy pulseaudio-module-gconf/hardy pulseaudio-module-hal/hardy pulseaudio-module-x11/hardy pulseaudio-module-zeroconf/hardy pulseaudio-utils/hardy
4. Delete the asoundrc files: $ rm ~/.asoundrc*

Your system should be back to Hardy's default configuration after logging out and back in (or rebooting). If you want to get PulseAudio working via this guide, ignore the PPA packages and only follow Part A - and thoroughly check if it works before going any further.

I was having a similar problem. The totem player was showing up but there wasn't any sound so i uninstalled everything like you stated above but still no sound in totem now... It was working previously. Also i had mentioned that realplayer locked up before but now it works at least. I just went ahead and tested rhythmbox and its not working either....

Edit: i had to goto system/sound and set it to use pulseaudio again and it works

psyke83
August 15th, 2008, 03:49 PM
I was having a similar problem. The totem player was showing up but there wasn't any sound so i uninstalled everything like you stated above but still no sound in totem now... It was working previously. Also i had mentioned that realplayer locked up before but now it works at least. I just went ahead and tested rhythmbox and its not working either....

Edit: i had to goto system/sound and set it to use pulseaudio again and it works

Ok. Rhythmbox and Totem both use the GStreamer framework, which is actually configured to use PulseAudio by default (unlike Flash & other ALSA applications), so it would have suggested that PulseAudio was working correctly for some reason.

It's better not to mess with System/Preferences/Sound at all - leave the options at Autodetect.

thesoffish
August 15th, 2008, 05:39 PM
Is there a way to set application-specific default devices? I want to have Skype default to my bluetooth headset and have everything else continue to use the sound card, without having to manually change Skype's stream every time.

And is ~/.pulse/default.pa the correct file to put additional modules to be loaded automatically on startup? (Specifically, my headset module.)

Thirdly, I think one of my main problems is that the headset can't properly handle anything with a sampling rate greater than 8000Hz; as far as I know there's no way to set Skype's output rate, but is there a way to 'format' this output as it passes through PulseAudio, or any intermediate layer for that matter, before it reaches the headset? (Preferably without destroying sound quality.)

And thanks for you hard work psyke83, those packages were a great help! (I am/was still having some crashing issues, but I attribute this to my messing with config files rather than anything wrong with the packages. It seems to be sorted out now.)

psyke83
August 15th, 2008, 06:01 PM
Is there a way to set application-specific default devices? I want to have Skype default to my bluetooth headset and have everything else continue to use the sound card, without having to manually change Skype's stream every time.

And is ~/.pulse/default.pa the correct file to put additional modules to be loaded automatically on startup? (Specifically, my headset module.)
Yes, it's possible - but you don't need to modify that file. Launch Skype and start a call (e.g. to test123), and open PulseAudio Volume Control (via the PulseAudio Device Chooser in Applications/Sound & Video). Go to the Playback tab and you'll see the entry for Skype - right-click on the Skype entry and select "Move Stream...", and select the desired output device.

Hopefully that will work as long as the bluetooth headset was autodetected by PulseAudio upon connection, otherwise you may need to mess with configuration file you mentioned.

If the stream successfully moved, Skype should always select that stream upon subsequent launches (fingers crossed).

Thirdly, I think one of my main problems is that the headset can't properly handle anything with a sampling rate greater than 8000Hz; as far as I know there's no way to set Skype's output rate, but is there a way to 'format' this output as it passes through PulseAudio, or any intermediate layer for that matter, before it reaches the headset? (Preferably without destroying sound quality.)

And thanks for you hard work psyke83, those packages were a great help! (I am/was still having some crashing issues, but I attribute this to my messing with config files rather than anything wrong with the packages. It seems to be sorted out now.)

(Un?)fortunately, PulseAudio operates at a fixed rate (44100Hz without changing the default configuration). Your bluetooth device may operate at a different rate, but the PulseAudio server itself always stays at a fixed rate. I don't think it's necessary to change the sample rate via PulseAudio's configuration, as PulseAudio will most likely upsample to 44100Hz anyway - though I could be mistaken.

PulseAudio Manager is a great tool to check the status of all the ALSA sinks (including sample rates). If you really need to change the rate, you'll need to edit ~/.pulse/default.pa. See PulseAudio's Modules (http://pulseaudio.org/wiki/Modules) wiki entry for guidance.

nick623
August 15th, 2008, 06:06 PM
Well I followed everything you posted to restore Hardy defaults. Then I followed section A completely. But I still have no sound.

I had my system setup completely using section A of your How To before following your new instructions here http://ubuntuforums.org/showpost.php?p=5587712&postcount=472

And sound worked completely.

I am really puzzled. Plus whenever I try pulseaudio -k and then try to restart it using pulseaudio -vv it still hangs with the message:
"D: module-rtp-recv.c: Checking for dead streams ..."

Then I'm unable to daemonize it. And I have to log in and out to restart it.


I'm googling around for answers. So far none.

nick623
August 15th, 2008, 06:23 PM
Well I followed everything you posted to restore Hardy defaults. Then I followed section A completely. But I still have no sound.

I had my system setup completely using section A of your How To before following your new instructions here http://ubuntuforums.org/showpost.php?p=5587712&postcount=472

And sound worked completely.

I am really puzzled. Plus whenever I try pulseaudio -k and then try to restart it using pulseaudio -vv it still hangs with the message:
"D: module-rtp-recv.c: Checking for dead streams ..."

Then I'm unable to daemonize it. And I have to log in and out to restart it.


I'm googling around for answers. So far none.

psyke83
August 15th, 2008, 06:28 PM
Well I followed everything you posted to restore Hardy defaults. Then I followed section A completely. But I still have no sound.

I had my system setup completely using section A of your How To before following your new instructions here http://ubuntuforums.org/showpost.php?p=5587712&postcount=472

And sound worked completely.

I am really puzzled. Plus whenever I try pulseaudio -k and then try to restart it using pulseaudio -vv it still hangs with the message:
"D: module-rtp-recv.c: Checking for dead streams ..."

Then I'm unable to daemonize it. And I have to log in and out to restart it.


I'm googling around for answers. So far none.

Those errors are strange, yes. The instructions I gave to revert packages should have solved your issues (assuming your system worked ok prior to testing the new packages)... if you just want sound and don't care about PulseAudio, I recommend you delete your ~/.asoundrc* files, go to System/Preferences/Sound and set all the "Sound Playback" options to ALSA. Sorry I can't be of more help to you.

nick623
August 15th, 2008, 07:02 PM
Those errors are strange, yes. The instructions I gave to revert packages should have solved your issues (assuming your system worked ok prior to testing the new packages)... if you just want sound and don't care about PulseAudio, I recommend you delete your ~/.asoundrc* files, go to System/Preferences/Sound and set all the "Sound Playback" options to ALSA. Sorry I can't be of more help to you.

Thanks I guess for now I will remove .asouncrc and set to alsa.
This is really strange. I just can't pinpoint the exact cause.

If you come across any suggestions or ideas let me know.

gabrielsaldana
August 15th, 2008, 08:13 PM
Before you downgrade, can you help out a bit?

1. Post the verbose log of PulseAudio:

$ pulseaudio -k && pulseaudio -vv

2. Try to temporarily disable PulseAudio:
$ pulseaudio -k && asoundconf unset-pulseaudio

Then, try launching an application and playing sound (you will need to restart any open applications).

Let me know if you can get sound after following step 2.


I run:
$ pulseaudio -k && asoundconf unset-pulseaudio
E: main.c: Failed to kill daemon.

I don't have any audio

psyke83
August 15th, 2008, 08:15 PM
I run:
$ pulseaudio -k && asoundconf unset-pulseaudio
E: main.c: Failed to kill daemon.

I don't have any audio

http://ubuntuforums.org/showthread.php?p=5595106#post5595106

someonestolemyname
August 15th, 2008, 08:20 PM
Great Job!
I was having a few sound problems after messing with PA for a while and such. This guide and packages cleared that up.

I have a new problem now, however. I am getting just a tiny bit of static on my speakers all of the time now. Any ideas why?

Daniel

psyke83
August 15th, 2008, 08:41 PM
Great Job!
I was having a few sound problems after messing with PA for a while and such. This guide and packages cleared that up.

I have a new problem now, however. I am getting just a tiny bit of static on my speakers all of the time now. Any ideas why?

Daniel

Do you hear this static when sound is actually playing, or when the system is idle? Give me some insight as to how I can reproduce it or what triggers it, if you can.

Anyway, try to kill PulseAudio:
$ pulseaudio -k

Does the static disappear when PulseAudio isn't running?

dansan
August 16th, 2008, 01:52 PM
Glad to hear it's working now.

Geez, I fired up Hardy this afternoon and, according to PulseAudio Volume Control, I'm back to no MB. Why would Hardy find my speakers last week after I followed your newest fix but not Sat? Can I stabilize a good setup once I've got it?

psyke83
August 16th, 2008, 01:58 PM
Geez, I fired up Hardy this afternoon and, according to PulseAudio Volume Control, I'm back to no MB. Why would Hardy find my speakers last week after I followed your newest fix but not Sat? Can I stabilize a good setup once I've got it?

It's very likely that you're suffering from an ALSA bug. I recommend you revert the packages (I've listed instructions a few post back) and forget about my guide, and then search Launchpad. I honestly remember a bug being discussed where certain audio chipsets only seem to work a few days per week (a strange startup initialization error). Remember, you're looking for an ALSA bug, not PulseAudio.

I can't emphasise enough the warnings I put in the disclaimer of the guide - fixing PulseAudio will not fix ALSA.

rbanavara
August 17th, 2008, 05:18 AM
Nice tutorial. I use linux mint & its configured for pulse audio. but I could not play realplayer11 & rhythmbox simultaneously. I was under the impression that this is a pulseaudio bug. After reading this tutorial, I am clear that its due to the fact that RP11 uses ALSA. Not sure why the first post does not have thankyou button

dansan
August 17th, 2008, 07:26 AM
It's very likely that you're suffering from an ALSA bug. I recommend you revert the packages...

I did as you suggested. Searching Launchpad did not turn up anything promising, so I returned to basics: SoundTroubleshooting (https://help.ubuntu.com/community/SoundTroubleshooting#head-e84f006dcbea90e29447ef97f32af397487fe7fb).

Going through this yet again (I started there) showed that my onboard sound card was not loading at startup. So I removed and reinstalled all the alsa & sound-base stuff, edited /etc/modules to add the relevant alsa soundcard name, typed alsactl store 0 and rebooted. I got back onboard sound, and all else seems to work, including Pulse Audio. Given previous ups and downs, my fingers are crossed.

Added late 17 Aug: Everything still stable and working even after several reboots.

manlypain
August 17th, 2008, 01:53 PM
The new 64bit guide allowed me to update the pakages.
Bad news: I now crash more frequently but the error codes are slightly different.

this is after i restarted once. I played a movie and 5 minutes in it froze. Checked the PA Manager and it was unable to connect. This is the output from the terminal
rklinkefus@linuxcore2:~$ pulseaudio &
[1] 8475
rklinkefus@linuxcore2:~$ W: pid.c: Stale PID file, overwriting.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:Intel
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
W: protocol-native.c: Failed to push data into queue
Soft CPU time limit exhausted, terminating.
Hard CPU time limit exhausted, terminating forcibly.


when i restarted pulse it stoped at at line "ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:Intel"
the rest came after the crash

jaktar
August 17th, 2008, 03:18 PM
This did not work for me. I've attached the log just in case you'd like to see.

IntuitiveNipple
August 17th, 2008, 03:25 PM
Changelog
15/08/08 - support added for 64bit users, please test!

Using Hardy 8.04.1 amd64, I have recently repackaged flashplugin-nonfree 10.0.0569 (RC1) myself and fixed a bunch of issues in that. I also fixed a couple of bugs in getlibs and made packages for both available from my PPA.

I then discovered Flash 10 causing exclusive-sound issues. I found this thread and your PPA.

I added your flashplugin-nonfree Windowless mode patch to my package. I installed your pulseaudio and alsa packages.

I had to reboot the system to get them to take effect - a simple logout wasn't sufficient.

To begin with I thought it was working okay, but now I've realised that there is still a lack of sound-device sharing. If RhythmBox is playing Flash 10 can't play audio, and visa-versa.

If RhythmBox is paused Flash can use audio but then unpausing RhythmBox causes it to lock up, and more interestingly, if I go to Preferences > Sound, it won't play the test sounds. If I quit the Flash application those test sounds will work.

I'm using the Userplane webchat2 audio/video conferencing application to test against since it is pretty heavy on A/V interaction with the host.

psyke83
August 17th, 2008, 03:25 PM
This did not work for me. I've attached the log just in case you'd like to see.

The log shows absolutely no problems with the updated packages. I forgot to mention that you may need to install the package "libasound2-plugins", try that; in the meantime I will update that post to reflect that information.

psyke83
August 17th, 2008, 03:42 PM
Using Hardy 8.04.1 amd64, I have recently repackaged flashplugin-nonfree 10.0.0569 (RC1) myself and fixed a bunch of issues in that. I also fixed a couple of bugs in getlibs and made packages for both available from my PPA.

I then discovered Flash 10 causing exclusive-sound issues. I found this thread and your PPA.

I added your flashplugin-nonfree Windowless mode patch to my package. I installed your pulseaudio and alsa packages.

I had to reboot the system to get them to take effect - a simple logout wasn't sufficient.

To begin with I thought it was working okay, but now I've realised that there is still a lack of sound-device sharing. If RhythmBox is playing Flash 10 can't play audio, and visa-versa.

If RhythmBox is paused Flash can use audio but then unpausing RhythmBox causes it to lock up, and more interestingly, if I go to Preferences > Sound, it won't play the test sounds. If I quit the Flash application those test sounds will work.

I'm using the Userplane webchat2 audio/video conferencing application to test against since it is pretty heavy on A/V interaction with the host.

Although I don't have a 64bit machine to test on, my packages should work correctly as long as you have the necessary 32 bit libraries installed. You really need to look at PulseAudio Volume Control to monitor what applications are truly using PulseAudio or not (also see Appendix B of my original guide at the first post).

I have a feeling that you may need to have a lib32asound2-plugins package (nope, it doesn't exist yet). Try using getlibs via:
$ getlibs -p libasound2-plugins

Always remember to check the PulseAudio Volume Control, as the presence or absence of sound is meaningless without knowing if it's played by ALSA directly, or through PulseAudio.

guyster
August 17th, 2008, 03:53 PM
Great job Psyche83 on the ppa and the updates. Two out of the three computers I tried it on worked flawlessly. I have a slight problem on one desktop, that really doesn't involve audio, but I thought I'd ask here any way, hoping you might have an idea. Ever since installing the new flash package, I cannot load any pages containing flash. When I click on a youtube video, I get a message that says "you have java script turned off, or possibly running an older version of flash." I then typed about:plugins into the location bar, and flash is not even listed as an installed plugins. I verified that files were in the same place as the other machines that are working, and everything seems identical. As I said, sorry for being slightly off-topic, but thanks for any ideas and/or suggestions.

Thanks,


Guy

psyke83
August 17th, 2008, 04:42 PM
Great job Psyche83 on the ppa and the updates. Two out of the three computers I tried it on worked flawlessly. I have a slight problem on one desktop, that really doesn't involve audio, but I thought I'd ask here any way, hoping you might have an idea. Ever since installing the new flash package, I cannot load any pages containing flash. When I click on a youtube video, I get a message that says "you have java script turned off, or possibly running an older version of flash." I then typed about:plugins into the location bar, and flash is not even listed as an installed plugins. I verified that files were in the same place as the other machines that are working, and everything seems identical. As I said, sorry for being slightly off-topic, but thanks for any ideas and/or suggestions.

Thanks,


Guy

That's strange. Are they all running the same version of Ubuntu (all 32bit or all 64bit)? Ensure the plugin is really installed on your system:

$ sudo updatedb
$ locate libflashplayer.so

You can try downgrading Flash to v9 on the troublesome machine just to see if the older package works correctly (note that sound won't work in flash 9 correctly, but we're only checking if it will actually install):
$ sudo apt-get install flashplugin-nonfree/hardy

IntuitiveNipple
August 17th, 2008, 04:46 PM
Always remember to check the PulseAudio Volume Control, as the presence or absence of sound is meaningless without knowing if it's played by ALSA directly, or through PulseAudio.
Yes, it might be worth spelling out how to install the PulseAudio GUI tools:

sudo apt-get install padevchooser paprefs paman pavucontrol pavumeter

It took me a while to discover what was being referred to - thought these were installed from your repo :)

Volume Control shows RhythmBox as a client but not Firefox/Flash.

When it is working correctly what should Volume Manager report for Firefox/Flash ?

psyke83
August 17th, 2008, 04:57 PM
Yes, it might be worth spelling out how to install the PulseAudio GUI tools:

sudo apt-get install padevchooser paprefs paman pavucontrol pavumeter

It took me a while to discover what was being referred to - thought these were installed from your repo :)

Volume Control shows RhythmBox as a client but not Firefox/Flash.

When it is working correctly what should Volume Manager report for Firefox/Flash ?

In case it wasn't obvious, merely upgrading the packages in my repository isn't enough to get things working (at least not yet). Follow the instructions fully in the post you saw: http://ubuntuforums.org/showthread.php?p=5587712

Additionally, as I said, you may need to grab the 32bit version of "libasound2-plugins" installed on your system - amd64 is so messy, heh.

Finally, see the attached image. Notice that the entry is prefixed by "ALSA plug-in [process]" to indicate that it is using the ALSA plugins as defined in ~/.asoundrc.

Edit: you may see the process "npviewer.bin" listed instead of "firefox", due to nspluginwrapper.

IntuitiveNipple
August 17th, 2008, 05:22 PM
Okay, progress.

YouTube videos have audio and the Flash stream shows up in Pulse Audio volume manager playback streams list: "Adobe Flash: Flash Animation"

I'm not sure if that had to do with fetching your libasound2-plugins package for i386 and installing it:

wget http://launchpadlibrarian.net/16767709/libasound2-plugins_1.0.16-1ubuntu2%7Eppa1_i386.deb

getlibs -i ./libasound2-plugins_1.0.16-1ubuntu2~ppa1_i386.deb


I still need to check back with a Userplane webchat service but having difficulty finding one with people transmitting audio - the problems earlier with Userplane could be service-specific (I foolishly didn't test on another application like YouTube).

psyke83
August 17th, 2008, 05:31 PM
Okay, progress.

YouTube videos have audio and the Flash stream shows up in Pulse Audio volume manager playback streams list: "Adobe Flash: Flash Animation"

I'm not sure if that had to do with fetching your libasound2-plugins package for i386 and installing it:

wget http://launchpadlibrarian.net/16767709/libasound2-plugins_1.0.16-1ubuntu2%7Eppa1_i386.deb

getlibs -i ./libasound2-plugins_1.0.16-1ubuntu2~ppa1_i386.deb


I still need to check back with a Userplane webchat service but having difficulty finding one with people transmitting audio - the problems earlier with Userplane could be service-specific (I foolishly didn't test on another application like YouTube).

Ok, it's a little complicated. The ia32-lib package ships the "libflashsupport" library which is active on your system. You need to find and delete this library in your /usr/lib32/ folder, as that library causes instability. Even though an amd64 "libflashsupport" package is available in the repository, it's completely useless and causes a lot of confusion, as the real functionality is provided in the ia32-lib package.

Usually for i386 users, libflashsupport causes Firefox to completely crash when closing/opening flash content (e.g. browsing between Youtube pages), but for amd64 users it causes flash content to spontaneously cut out (showing a grey box where the content should be). This is because nspluginwrapper isolates flash from the firefox process, giving some protection. See: https://bugs.launchpad.net/bugs/192888

Basically you need to get rid of libflashsupport.so from your system to have 100% stability.

IntuitiveNipple
August 17th, 2008, 06:01 PM
Yes, I had deleted /usr/lib32/libflashsupport.so.

I did a full restart and tested.

It seems the UserPlane webchat application is somehow managing to get Flash 10 to not use Pulse Audio - maybe it is possible to internally over-ride the audio sink choice.

Everything else shows up on the Volume Control streams list so I'm happy this isn't a Pulse Audio issue.

Thanks for your help and packages. This certainly needs an SRU rather than a backport if so many audio applications can be 'broken', especially as Hardy is LTS.

psyke83
August 17th, 2008, 06:06 PM
Yes, I had deleted /usr/lib32/libflashsupport.so.

I did a full restart and tested.

It seems the UserPlane webchat application is somehow managing to get Flash 10 to not use Pulse Audio - maybe it is possible to internally over-ride the audio sink choice.

Everything else shows up on the Volume Control streams list so I'm happy this isn't a Pulse Audio issue.

Thanks for your help and packages. This certainly needs an SRU rather than a backport if so many audio applications can be 'broken', especially as Hardy is LTS.

What about Youtube, for example? What shows up in the Volume Control in that case?

IntuitiveNipple
August 17th, 2008, 06:18 PM
OK, this is getting confusing. I need to remember to restart after changing libraries.

Without /usr/lib32/libflashsupport.so Flash player 10 will not use Pulse Audio.

I just reinstalled it:

getlibs -p libflashsupport

and now the Flash 10 streams are reported by Volume Control. As I said before, playing a YouTube video it shows: "Adove Flash: Flash Animation"

I'll let things settle for a little while now :)

psyke83
August 17th, 2008, 06:22 PM
OK, this is getting confusing. I need to remember to restart after changing libraries.

Without /usr/lib32/libflashsupport.so Flash player 10 will not use Pulse Audio.

I just reinstalled it:

getlibs -p libflashsupport

and now the Flash 10 streams are reported by Volume Control. As I said before, playing a YouTube video it shows: "Adove Flash: Flash Animation"

I'll let things settle for a little while now :)

That's not optimal, as libflashsupport is buggy.

What happens if you remove libflashsupport and install "libasound2-plugins" through getlibs, and with the proper ~/.asoundrc configuration enabled?

IntuitiveNipple
August 17th, 2008, 06:48 PM
That's not optimal, as libflashsupport is buggy.

What happens if you remove libflashsupport and install "libasound2-plugins" through getlibs, and with the proper ~/.asoundrc configuration enabled?
/usr/lib32/libasound.so.2.0.0 is installed. (and has been since earlier).

The user configuration is:

cat ~/.asoundrc.asoundconf

# ALSA library configuration file managed by asoundconf(1).
#
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
#
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.
pcm.!default { type pulse }
ctl.!default { type pulse }
pcm.pulse { type pulse }
ctl.pulse { type pulse }

and

cat ~/.asoundrc

# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/tj/.asoundrc.asoundconf>

pcm.a2dpd {
type a2dpd
}

I'll try it again without libflashsupport.so

phorgan1
August 17th, 2008, 06:51 PM
:(I've done the complete installation on Hardy with latest updates and your repository enabled. Sadly it did not work--I'm giving you all the info I can think of in case it helps. I really would like to have pulseaudio working. I have Intel sound on a Dell motherboard. The pulseaudio daemon doesn't start at reboot. As root, /etc/init.d/pulseaudio causes no messages in any of the logs, but also no pulseaudio daemon. Strange. You'd expect the Starting Pulseaudio Daemon message followed by errors if it didn't start. If as a user, I run pulseaudio -vv it looks like it works fine (inline below), but when I run rhythmbox there's no sound. It shows up in the pulseaudio volume control saying ALSA plug-in [rhythmbox]: ALSA Playback. rythmbox looks as if it's playing, i.e. the UI gives me feedback that it's moving through songs, but there's no sound. The sound doesn't show up as muted either in input or output. If before running pulseaudio I run rhythmbox it plays fine with good sound output. After killing pulseaudio and rhythmbox, restarting rhythmbox results in fine sound again without having to restart the machine. My sound preferences are set to Autodetect. While the Sound Preferences are up and I click play, I get sound and it shows up in the pulseaudio volume control. Right now I have both rhythmbox and the sound preferences playing. They look identical in the volume control, i.e. both say ALSA plug-in [their name]: ALSA Playback, but there's sound from the sound prefs (annoying beep), but none for rhythmbox.:( I saw other posts where they mentioned that pulseaudio -k && pulseaudio -vv had as part of its output: E: main.c: Failed to kill daemon. That's because, like me they didn't have pulseaudio running. I wonder what causes the daemon to not run out of init.d? If there's any more info I can give you, let me know. Anyway here's the output of pulseaudio -vv (note the mispelling of independent in the output is not my fault;):

pulseaudio -vv
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_playback_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_8086_284b_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: ALSA device lacks independant volume controls for each channel, falling back to software volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_8086_284b_sound_card_0_a lsa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_8086_284b_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_8086_284b_sound_card_0_alsa_capture _0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_8086_284b_sound_card_0_ alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_hw_specific_1
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "socket=/tmp/.esd-1002/socket").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: module-gconf.c: Loading module 'module-null-sink' with args 'sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"' due to GConf configuration.
I: sink.c: Created sink 1 "rtp" with sample spec "s16be 2ch 44100Hz"
I: source.c: Created source 2 "rtp.monitor" with sample spec "s16be 2ch 44100Hz"
D: module-null-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+27
I: module.c: Loaded "module-null-sink" (index: #5; argument: "sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"").
D: module-gconf.c: Loading module 'module-rtp-send' with args 'source=rtp.monitor loop=0' due to GConf configuration.
I: source-output.c: Created output 0 "RTP Monitor Stream" on rtp.monitor with sample spec s16be 2ch 44100Hz and channel map front-left,front-right
D: memblockq.c: memblockq requested: maxlength=174080, tlength=174080, base=4, prebuf=1, minreq=0
D: memblockq.c: memblockq sanitized: maxlength=174080, tlength=174080, base=4, prebuf=4, minreq=4
I: module-rtp-send.c: RTP stream initialized with mtu 1280 on 224.0.0.56:46896, SSRC=0x50a6d9b1, payload=10, initial sequence #10016
I: module-rtp-send.c: SDP-Data:
I: module-rtp-send.c: v=0
I: module-rtp-send.c: o=patrick 3428000826 0 IN IP4 172.16.1.16
I: module-rtp-send.c: s=PulseAudio RTP Stream on dell.linuxdev.us.dell.com
I: module-rtp-send.c: c=IN IP4 224.0.0.56
I: module-rtp-send.c: t=3428000826 0
I: module-rtp-send.c: a=recvonly
I: module-rtp-send.c: m=audio 46896 RTP/AVP 10
I: module-rtp-send.c: a=rtpmap:10 L16/44100/2
I: module-rtp-send.c: a=type:broadcast
I: module-rtp-send.c: EOF
I: module.c: Loaded "module-rtp-send" (index: #6; argument: "source=rtp.monitor loop=0").
D: module-gconf.c: Loading module 'module-rtp-recv' with args '' due to GConf configuration.
I: module.c: Loaded "module-rtp-recv" (index: #7; argument: "").
D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: protocol-native.c: using already loaded auth cookie.
I: protocol-native.c: using already loaded auth cookie.
I: module.c: Loaded "module-native-protocol-tcp" (index: #8; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: module.c: Loaded "module-esound-protocol-tcp" (index: #9; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-zeroconf-publish' with args '' due to GConf configuration.
D: module-zeroconf-publish.c: Publishing services in Zeroconf
D: module-zeroconf-publish.c: Successfully created entry group for patrick@dell: ALSA PCM on front:0 (STAC92xx Analog) via DMA.
D: module-zeroconf-publish.c: Successfully created entry group for patrick@dell: RTP Multicast Sink.
D: module-zeroconf-publish.c: Successfully created entry group for patrick@dell: ALSA PCM on front:0 (STAC92xx Analog) via DMA.
I: module.c: Loaded "module-zeroconf-publish" (index: #10; argument: "").
D: module-gconf.c: Loading module 'module-zeroconf-discover' with args '' due to GConf configuration.
I: module.c: Loaded "module-zeroconf-discover" (index: #11; argument: "").
I: module.c: Loaded "module-gconf" (index: #12; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #13; argument: "").
D: module-default-device-restore.c: Restored default sink 'rtp'.
D: core-subscribe.c: dropped redundant event.
D: module-default-device-restore.c: Restored default source 'rtp.monitor'.
I: module.c: Loaded "module-default-device-restore" (index: #14; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #15; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Sink rtp becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_8086_284b_sound_card_0_alsa_capture _0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #16; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #17; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-zeroconf-publish.c: Successfully established service patrick@dell: ALSA PCM on front:0 (STAC92xx Analog) via DMA.
I: module-zeroconf-publish.c: Successfully established service patrick@dell: RTP Multicast Sink.
I: module-zeroconf-publish.c: Successfully established service patrick@dell: ALSA PCM on front:0 (STAC92xx Analog) via DMA.
I: module-zeroconf-publish.c: Successfully established main service.
I: module-suspend-on-idle.c: Source alsa_input.pci_8086_284b_sound_card_0_alsa_capture _0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink rtp idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified

psyke83
August 17th, 2008, 06:52 PM
Thanks for the output. The libraries that are really crucial are:

conn@conn-desktop:~$ dpkg -L libasound2-plugins | grep pulse.so
/usr/lib/alsa-lib/libasound_module_pcm_pulse.so
/usr/lib/alsa-lib/libasound_module_ctl_pulse.so

If you launch Firefox from a terminal and watch the output (or perhaps in ~/.xsession-errors), you will see if there are any problems with the ALSA plugins.

Again, the 32bit libflashsupport libraries must be removed and 32bit libasound2-plugins must be installed (via getlibs). Additionally, the 64bit libasound2-plugins must be installed via the regular package (for native 64bit applications, though).

Thanks for helping to sort this mess out, I really appreciate it!

IntuitiveNipple
August 17th, 2008, 06:58 PM
Wow, I did say this can get confusing didn't I?

I've removed /usr/lib32/libflashsupport.so again, ensured /usr/lib32/libasound.so.2.0.0 is in place, and that the user ~/.asoundrc and ~/.asoundrc.asoundconf are as described above.

I restarted Firefox 3.0.1 (x86_64) and visited YouTube. A video starts playing and now Pulse Audio Volume Control Playback streams list "ALSA plug-in [npviewer.bin]: ALSA Playback" (Stereo)

Then I start up the UserPlane webchat application and for the first time, I hear sound and Volume Control reports "ALSA plug-in [npviewer.bin]: ALSA Playback" (Mono).

So, am I correct in thinking that is what is expected when this configuration is working correctly?

psyke83
August 17th, 2008, 07:01 PM
:(I've done the complete installation on Hardy with latest updates and your repository enabled. Sadly it did not work--I'm giving you all the info I can think of in case it helps. I really would like to have pulseaudio working. I have Intel sound on a Dell motherboard. The pulseaudio daemon doesn't start at reboot. As root, /etc/init.d/pulseaudio causes no messages in any of the logs, but also no pulseaudio daemon. Strange. You'd expect the Starting Pulseaudio Daemon message followed by errors if it didn't start. If as a user, I run pulseaudio -vv it looks like it works fine (inline below), but when I run rhythmbox there's no sound. It shows up in the pulseaudio volume control saying ALSA plug-in [rhythmbox]: ALSA Playback. rythmbox looks as if it's playing, i.e. the UI gives me feedback that it's moving through songs, but there's no sound. The sound doesn't show up as muted either in input or output. If before running pulseaudio I run rhythmbox it plays fine with good sound output. After killing pulseaudio and rhythmbox, restarting rhythmbox results in fine sound again without having to restart the machine. My sound preferences are set to Autodetect. While the Sound Preferences are up and I click play, I get sound and it shows up in the pulseaudio volume control. Right now I have both rhythmbox and the sound preferences playing. They look identical in the volume control, i.e. both say ALSA plug-in [their name]: ALSA Playback, but there's sound from the sound prefs (annoying beep), but none for rhythmbox.:( I saw other posts where they mentioned that pulseaudio -k && pulseaudio -vv had as part of its output: E: main.c: Failed to kill daemon. That's because, like me they didn't have pulseaudio running. I wonder what causes the daemon to not run out of init.d? If there's any more info I can give you, let me know. Anyway here's the output of pulseaudio -vv (note the mispelling of independent in the output is not my fault;):

Thanks for the output (by the way, it's better to place such text in CODE brackets to make things a little neater).

As you suspect, the verbose output doesn't show any problems - it should be working. Also, the fact that Rhythmbox is trying to use ALSA output even though the output in System/Preferences/Sound is *very* suspicious. This shouldn't be happening.

Do other applications that use PulseAudio play sound correctly, e.g. Totem or VLC?

psyke83
August 17th, 2008, 07:05 PM
Wow, I did say this can get confusing didn't I?

I've removed /usr/lib32/libflashsupport.so again, ensured /usr/lib32/libasound.so.2.0.0 is in place, and that the user ~/.asoundrc and ~/.asoundrc.asoundconf are as described above.

I restarted Firefox 3.0.1 (x86_64) and visited YouTube. A video starts playing and now Pulse Audio Volume Control Playback streams list "ALSA plug-in [npviewer.bin]: ALSA Playback" (Stereo)

Then I start up the UserPlane webchat application and for the first time, I hear sound and Volume Control reports "ALSA plug-in [npviewer.bin]: ALSA Playback" (Mono).

So, am I correct in thinking that is what is expected when this configuration is working correctly?

Yes! Finally, that configuration is optimal. The libasound.so.2.0.0 library is important, but it's part of the "libasound" package which should already be installed in 32bit and 64bit form. It's the pulse_pcm plugins from "libasound2-plugins" that were causing you the issue.

So, it seems you have found the proper (PulseAudio) configuration for 64bit users (in addition to the instructions on my post): remove /usr/lib32/libflashsupport.so and install libasound2-plugins via getlibs (ugly, but it can get fixed officially in the ia32-lib package). Am I missing something else?

Edit: hmm, perhaps the 32bit component of the "libasound2" package needed to be updated too? The older version, 1.0.15 of "libasound2" may be present in ia32-libs, which can cause problems... though I can't be certain.

Edit2: considering the way "getlibs" functions, it is important that the "libasound2-plugins" (and perhaps also "libasound2") package is fetched from my PPA, not from Hardy's repositories - otherwise you'll be using the buggy 1.0.15 version. That could make a difference.

phorgan1
August 17th, 2008, 07:32 PM
Thanks for the output (by the way, it's better to place such text in CODE brackets to make things a little neater).

As you suspect, the verbose output doesn't show any problems - it should be working. Also, the fact that Rhythmbox is trying to use ALSA output even though the output in System/Preferences/Sound is *very* suspicious. This shouldn't be happening.

Do other applications that use PulseAudio play sound correctly, e.g. Totem or VLC?

I'm getting no sound when pulseaudio is running from vlc. It lists in the volume control as VLC Media Player: audio stream. Again, while it's listed but not playing, I can play the sound from the sound preferences and it shows up in the volume control as ALSA Playback and plays correctly.

Any thoughts on pulseaudio not starting during boot, or ideas on debugging it?

Patrick

psyke83
August 17th, 2008, 08:49 PM
I'm getting no sound when pulseaudio is running from vlc. It lists in the volume control as VLC Media Player: audio stream. Again, while it's listed but not playing, I can play the sound from the sound preferences and it shows up in the volume control as ALSA Playback and plays correctly.

Any thoughts on pulseaudio not starting during boot, or ideas on debugging it?

Patrick

Are you using Ubuntu (the GNOME release)? If you are, PulseAudio is configured to run per-user via the GNOME Session Properties, not as a system daemon (via /etc/init.d or similar). Essentially you shouldn't need to do anything to make PulseAudio start upon login.

Were you having these problems before you tried the packages in my PPA? You can either:

a) Downgrade to the default Hardy packages and undo the changes from this guide: http://ubuntuforums.org/showthread.php?p=5595106#post5595106

or

b) Disable PulseAudio (unfortunately). Delete ~/.asoundrc* and set the "Sound playback" entries to ALSA in System/Preferences/Sound.

It would be nice to sort out your issue, though, so I recommend you try the first option.

phorgan1
August 17th, 2008, 09:48 PM
Are you using Ubuntu (the GNOME release)? If you are, PulseAudio is configured to run per-user via the GNOME Session Properties, not as a system daemon (via /etc/init.d or similar). Essentially you shouldn't need to do anything to make PulseAudio start upon login.

Were you having these problems before you tried the packages in my PPA? You can either:

a) Downgrade to the default Hardy packages and undo the changes from this guide: http://ubuntuforums.org/showthread.php?p=5595106#post5595106

or

b) Disable PulseAudio (unfortunately). Delete ~/.asoundrc* and set the "Sound playback" entries to ALSA in System/Preferences/Sound.

It would be nice to sort out your issue, though, so I recommend you try the first option.
Yes, I am using Ubuntu Gnome, and it doesn't start automagically. I have had pulseaudio sort of working before, but before I installed your packages. Right now, after the last reboot, pulseaudio is running automatically, (don't know why when didn't before), but still no sound from Rhythmbox. If you don't mind, I'd love to stick with it and help you figure out why it's now working. I'm an experienced developer and great debugger, if you just point me toward where I can gather information from you I'd like to help. Before, the best I'd gotten with pulseaudio is that everything worked except SDL audio which was severely distorted. In frustration I'd removed pulseaudio, but after reading your setup I thought I'd give it another try. It's not working nearly as well as it was before, but what the hell, lets figure out why!

Patrick

psyke83
August 17th, 2008, 09:55 PM
Yes, I am using Ubuntu Gnome, and it doesn't start automagically. I have had pulseaudio sort of working before, but before I installed your packages. Right now, after the last reboot, pulseaudio is running automatically, (don't know why when didn't before), but still no sound from Rhythmbox. If you don't mind, I'd love to stick with it and help you figure out why it's now working. I'm an experienced developer and great debugger, if you just point me toward where I can gather information from you I'd like to help. Before, the best I'd gotten with pulseaudio is that everything worked except SDL audio which was severely distorted. In frustration I'd removed pulseaudio, but after reading your setup I thought I'd give it another try. It's not working nearly as well as it was before, but what the hell, lets figure out why!

Patrick

Well, it would be good to revert the packages as I mentioned in the previous post, then see if PulseAudio works with the default applications installed in Ubuntu (Rhythmbox, Totem). If you look at the original guide at the first post, Appendix B gives you some good pointers to troubleshoot PulseAudio playback.

The reason you should try reverting packages is that my PPA contains the userland ALSA 1.0.16 code, but the kernel still has the 1.0.15 modules. In practice this shouldn't matter, but it may cause problems for certain hardware setups (perhaps yours).

sofasurfer
August 18th, 2008, 02:25 AM
I did the instructions in post #1, parts A and D. It did not give me a system wide equalizer. I have since found that there is an equalizer in MPlayer. Whether it was there before I followed these instructions I do not know. However, it is inadequete since it only work in MPlayer.

Is the fact that the instructions did not give me an equalizer indicate something that I can dorrect?

I followed a differant Pulse-Audio How-to a couple months ago and I did end up with an equalizer in the sound controls that were added to my applications>sound and video menu.

Any recommendations?

IntuitiveNipple
August 18th, 2008, 07:52 AM
Because the instructions for amd64 (x86_64) include omitting parts A, B, and C and skipping to the PPA installation process the steps required for equalisation on amd64 are not all in one place.

I've just enabled it and here's the steps required:

Install the LADSPA SDK and equaliser packages:

sudo apt-get install ladspa-sdk swh-plugins

Add the following section to the end of ~/.asoundrc:

pcm.equalized {
type plug
slave.pcm "equalizer";
}

pcm.equalizer {
type ladspa

# The output from the EQ can either go direct to a hardware device
# (if you have a hardware mixer, e.g. SBLive/Audigy) or it can go
# to the software mixer shown here.
slave.pcm "plughw"
#slave.pcm "plug:dmix"

# Sometimes you may need to specify the path to the plugins,
# especially if you've just installed them. Once you've logged
# out/restarted this shouldn't be necessary, but if you get errors
# about being unable to find plugins, try uncommenting this.
path "/usr/lib/ladspa"

plugins [
{
label mbeq
id 1197
input {
#this setting is here by example, edit to your own taste
#bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz,
# 1250hz, 1750hz, 25000hz, 50000hz, 10000hz, 20000hz
#range: -70 to 30
controls [ -1 -1 -1 -1 -5 -10 -20 -17 -12 -7 -6 -5 -5 0 0 ]
}
}
]
}

Create a user-specific pulse-audio configuration by copying the system configuration:

cp /etc/pulse/daemon.conf /etc/pulse/default.pa -t ~/.pulse/

Enable the pulse-audio ALSA sink module with equalisation in ~/.pulse/default.pa:

sed -i 's/^#\(load-module module-alsa-sink\)$/\1 device=equalized/' ~/.pulse/default.pa


Restart the pulse-audio server (or log-out/log-in) - making sure pulse-audio isn't currently in use (else applications are liable to lock-up):

kill -s SIGTERM $(ps -ef | awk "\$1 ~ /$(id -un)/ && \$8 ~ /^pulseaudio/ {print \$2}"); pulseaudio --log-target=syslog&

zelrikriando
August 18th, 2008, 09:20 AM
I followed the steps psyke83 described at the begining of the thread...

I have 2 versions of flash now in Firefox and the first one is sitting there even if I remove all the flash packages in synaptic :


Shockwave Flash

Nom de fichier : libflashplayer.so
Shockwave Flash 9.0 r124

Shockwave Flash

Nom de fichier : libflashplayer.so
Shockwave Flash 10.0.0 d569

Note : I CANT REMOVE THE FIRST ONE :/


I have a lot of trouble reading flash on youtube now. Rythmbox is working fine.

psyke83
August 18th, 2008, 09:29 AM
I followed the steps psyke83 described at the begining of the thread...

I have 2 versions of flash now in Firefox and the first one is sitting there even if I remove all the flash packages in synaptic :


Shockwave Flash

Nom de fichier : libflashplayer.so
Shockwave Flash 9.0 r124

Shockwave Flash

Nom de fichier : libflashplayer.so
Shockwave Flash 10.0.0 d569

Note : I CANT REMOVE THE FIRST ONE :/


I have a lot of trouble reading flash on youtube now. Rythmbox is working fine.

Did you ever do a manual install of Flash prior to this guide?

Try:
$ sudo updatedb
$ locate libflashplayer.so

And:

$ dpkg -S libflashplayer.so

zelrikriando
August 18th, 2008, 11:04 AM
Ok so I managed to remove flash 9. The sound seems to be working now, even after reboot (before it broke for the flash after rebooting).

I still have some issues with videos in high quality on Youtube, with flash 10, there are not available...maybe it's flash 10 related or Youtube related...or both I dont know.

I will see how stable this is, I'll keep you informed if there is more problems :)


"Did you ever do a manual install of Flash prior to this guide?"

Yes I just noticed I did, I removed all the libflashplayer.so I found but the one from flashplugin-nonfree. :)

phorgan1
August 18th, 2008, 12:05 PM
Well, it would be good to revert the packages as I mentioned in the previous post, then see if PulseAudio works with the default applications installed in Ubuntu (Rhythmbox, Totem). If you look at the original guide at the first post, Appendix B gives you some good pointers to troubleshoot PulseAudio playback.

The reason you should try reverting packages is that my PPA contains the userland ALSA 1.0.16 code, but the kernel still has the 1.0.15 modules. In practice this shouldn't matter, but it may cause problems for certain hardware setups (perhaps yours).

Before I revert, let me tell you about one more thing in case it gives you a clue. As before, pulseaudio running, rhythmbox running. Pulseaudio volume control shows: ALSA plug-in [rythmbox]: ALSA Playback. Just out of curiosity, for the first time I right click on the stream and select Move stream. It shows that the output is going to RTP Multicast Sink. I moved it to ALSA PCM on front:0 STAC92XX Analog via DMA. Immediately I got sound! Does that help?

Patrick

MemoryDump
August 18th, 2008, 01:40 PM
it still amazes me the amount of work required to get such a "simple" thing such as sound setup. Hopefully this will get better in the near future as it's extremely discouraging for new and old users.

IntuitiveNipple
August 18th, 2008, 04:06 PM
Although OpenJDK 6 is currently able to output sound, it isn't doing it through pulse-audio.

I've looked around and so far not found anything definitive about the state of pulse-audio support in OpenJDK, although there are some very recent patches in the OpenJDK pulse-audio support library.

Has anyone got pulse-audio handling OpenJDK sound output?

~~MAINFRAIME²~~
August 18th, 2008, 04:19 PM
I'm running mythbuntu 8.04 64-bit and I tried to install pulseaudio because I need a global equalizer but I don't get any program to connect to it, the sound has worked before and oss still works.

Here was "pulseaudio -k; sleep 4; pulseaudio -vv" says

E: main.c: Failed to kill daemon.
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
W: main.c: RLIMIT_RTPRIO failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: module-alsa-sink.c: Successfully opened device equalized.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL equalized
I: alsa-util.c: Unable to attach to mixer equalized: No such file or directory
I: alsa-util.c: Unable to attach to mixer hw:(null): No such device
I: sink.c: Created sink 0 "alsa_output.equalized" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.equalized.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 896 bytes.
D: module-alsa-sink.c: Thread starting up
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=equalized").
I: main.c: Daemon startup complete.


and "alsamixer" says

*** PULSEAUDIO: Unable to connect: Connection refused

alsamixer: function snd_ctl_open failed for default: Connection refused


Where is the problem?

skumpered
August 18th, 2008, 07:40 PM
Awesome!!!

Thanks Psyke83, you are a genius, worked perfectly for me :)

BTW, took me a few minutes to figure out that I actually had to start pulseaudio. Before I did so, I was getting a "failure: connection refused" error when I opened up the pulseaudio device chooser.

~~MAINFRAIME²~~
August 18th, 2008, 10:39 PM
So pulseaudio does not start automatically, but starting it does not fix the problem.


mythbox1@mythbox1-desktop:~$ pulseaudio -D -vv
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
W: main.c: RLIMIT_RTPRIO failed: Operation not permitted
I: main.c: daemon startup successful.

mythbox1@mythbox1-desktop:~$ alsamixer
*** PULSEAUDIO: Unable to connect: Connection refused

alsamixer: function snd_ctl_open failed for default: Connection refused

mythbox1@mythbox1-desktop:~$ vlc
VLC media player 0.8.6e Janus
[00000344] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:224000
*** PULSEAUDIO: Unable to connect: Connection refused
[00000289] main playlist: stopping playback



Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: main.c: This is PulseAudio 0.9.10
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: main.c: Page size is 4096 bytes
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: main.c: Fresh high-resolution timers available! Bon appetit!
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: module-alsa-sink.c: Successfully opened device equalized.
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: module-alsa-sink.c: Successfully enabled mmap() mode.
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: alsa-util.c: Unable to attach to mixer equalized: No such file or directory
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: alsa-util.c: Unable to attach to mixer hw:(null): No such device
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: sink.c: Created sink 0 "alsa_output.equalized" with sample spec "s16le 2ch 44100Hz"
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: source.c: Created source 0 "alsa_output.equalized.monitor" with sample spec "s16le 2ch 44100Hz"
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: module-alsa-sink.c: Using 8 fragments of size 896 bytes.
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: module-alsa-sink.c: Thread starting up
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: module-alsa-sink.c: Starting playback.
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=equalized").
Aug 19 04:18:42 mythbox1-desktop pulseaudio[6910]: main.c: Daemon startup complete.

nick623
August 18th, 2008, 10:51 PM
Well, so far, I finally have sound working using your new post http://ubuntuforums.org/showpost.php?p=5587712&postcount=472.

Apparently module-hal-detect in the /etc/pulse/default.pa file was not automatically detecting my sound card. So I added these two lines to manualy detect my card in the default.pa file.

load-module module-alsa-sink device=hw:0
load-module module-alsa-source device=hw:0

I also commented out the module-hal-detect line in the file. Now my default sink is alsa_output.hw_0 and my default source is alsa_input.hw_0 according to the pulseaudio manager. Before they were using RTP Multicast.

When I give the command pulseaudio -k; sleep 4; pulseaudio -vv it stills hangs with a message and I have to Control C it. I still can't figure this out.

Also how do you have your network settings setup in pulseaudio preferences.
I have Enable network access to local sound devices checked. And underneath it I have Don't require notification checked (see attachment).
Are these settings to allow other computers on a LAN access to the sound server. Any idea what the default settings are?

demios
August 18th, 2008, 11:46 PM
I finally got around to setting up my PPA, and I have uploaded the newest release candidate of Flash 10, as well as ALSA & PulseAudio packages backported from Intrepid (with added tweaks and fixes from the guide included). I invite everyone to thoroughly test these packages!

(Guide)



So I followed the guide, no problems, except there is still some stutter -- though noticably less. I tried to open the daemon.conf file mentioned in part C of the original guide, just to tweak the numbers a bit, but it's blank now. any simple way to tweak things until perfection?

Thanks a ton.

Vadi
August 19th, 2008, 09:36 AM
I finally made lots of people happy!

Thanks! Now I can have both my flash and savage 2 :)

psyke83
August 19th, 2008, 10:33 AM
Thanks! Now I can have both my flash and savage 2 :)

Really, that's not an accurate quote. I'm sure I also caused quite a bit of annoyance for others... :p

psyke83
August 19th, 2008, 10:35 AM
So I followed the guide, no problems, except there is still some stutter -- though noticably less. I tried to open the daemon.conf file mentioned in part C of the original guide, just to tweak the numbers a bit, but it's blank now. any simple way to tweak things until perfection?

Thanks a ton.

The packages differ from the main guide as I appled the tweaks to the system-wide configuration in /etc/pulse. Therefore you can either edit the files in /etc/pulse/, or make a copy of the files to ~/.pulse/ , then begin editing.

psyke83
August 19th, 2008, 12:18 PM
Well, so far, I finally have sound working using your new post http://ubuntuforums.org/showpost.php?p=5587712&postcount=472.

Apparently module-hal-detect in the /etc/pulse/default.pa file was not automatically detecting my sound card. So I added these two lines to manualy detect my card in the default.pa file.

load-module module-alsa-sink device=hw:0
load-module module-alsa-source device=hw:0

I also commented out the module-hal-detect line in the file. Now my default sink is alsa_output.hw_0 and my default source is alsa_input.hw_0 according to the pulseaudio manager. Before they were using RTP Multicast.

When I give the command pulseaudio -k; sleep 4; pulseaudio -vv it stills hangs with a message and I have to Control C it. I still can't figure this out.

Also how do you have your network settings setup in pulseaudio preferences.
I have Enable network access to local sound devices checked. And underneath it I have Don't require notification checked (see attachment).
Are these settings to allow other computers on a LAN access to the sound server. Any idea what the default settings are?

Perhaps your PulseAudio was already configured incorrectly before you followed this guide (the RTP settings are all disabled by default).

I haven't set any of these options, but I made no changes in my packages that would cause different networked behaviour when compared to the official packages.

TheSe7enthSin
August 19th, 2008, 02:26 PM
Ok, so I followed the guide from post #472 in this topic. I was having flash problems where Firefox would either crash or the flash box (like in a Youtube video) would just be gray, sometimes with sound coming out.

I was told that the process outlined in post 472 would fix that issue, so I followed it. Now most, if not ALL flash videos do not work. Youtube displays a message that "We're sorry, this video is no longer available" on ALL videos. MySpace video tells me that I need flash installed.

Flash IS installed because I can see simple flash items & some sites show flash videos/flash content. I don't know what to do. There are too many posts in this thread & I'm feeling lost & overwhelmed just reading. =[

Nepherte
August 19th, 2008, 02:42 PM
I followed your instructions in post #472 (http://ubuntuforums.org/showpost.php?p=5587712&postcount=472), using 64 bit. Didn't experience a problem. I had fixed my pulseaudio settings before though, following the first post.

manlypain
August 19th, 2008, 07:34 PM
everytime i run
"$ getlibs -p libasound2-plugins"

i get an error saying it can't download it
"rklinkefus@linuxcore2:~$ getlibs -p libasound2-plugins
The following i386 packages will be installed: libasound2-plugins
Continue [Y/n]? y
Downloading ...
Failed to download file http://ppa.launchpad.net/do-core/ubuntu/pool/main/a/alsa-plugins/libasound2-plugins_1.0.16-1ubuntu2~ppa1_i386.deb
The mirrors do not have the requested file or there is no internet connection
No packages to install"

All the others work fine. Is anyone else getting this error.

Also i still have pulse crash on me. It just gives me the cpu timout error
rklinkefus@linuxcore2:~$ E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed.
Soft CPU time limit exhausted, terminating.
Hard CPU time limit exhausted, terminating forcibly.

gunnar_boe
August 20th, 2008, 07:23 AM
Thanks for putting this together.

Unfortunately, it made things worse for me.

I had a problem when using vlc and realplayer when Pulseaudio was running.

The solution was to kill pulseaudio and first start realplay
(In general it seems like vlc is very demanding when acquiring sound devices)

Anyway, after following your guide, realplay cannot run at all (is this on purpose:-)
.
The error I get when trying to connect to a location is:

whatever:~$ realplay
Opening ALSA PCM device default
/usr/bin/realplay: line 54: 19677 Floating point exception$HELIX_LIBS/realplay.bin "$@"

tcrisan
August 20th, 2008, 08:55 AM
With reference to Real Player, try installing the nightly build from the real.com website instead of the released version. This fixed my realplayer problem with Pulseaudio.

guyster
August 20th, 2008, 11:54 AM
That's strange. Are they all running the same version of Ubuntu (all 32bit or all 64bit)? Ensure the plugin is really installed on your system:

$ sudo updatedb
$ locate libflashplayer.so

You can try downgrading Flash to v9 on the troublesome machine just to see if the older package works correctly (note that sound won't work in flash 9 correctly, but we're only checking if it will actually install):
$ sudo apt-get install flashplugin-nonfree/hardy

Yes, all three machines are running 32-bit Hardy 8.04.1. Whene I did the updatedb and locate libflashplayer.so, my system reported that it was in /usr/lib/flashplugin-nonfree. I then downgraded to flash 9, and that is working. If I go to youtube, of course sound doesn't work, but we knew that going in. I then took it one step further and tried to re-install the flash 10 package from your ppa, and after receiving the "flash plugin installed" message, I checked in firefox (tools>addons), and it reports that flash 9 is still installed. At this point, I'm thoroughly stumped. Thanks again in advance for any ideas/suggestions.

tcrisan
August 20th, 2008, 12:20 PM
Thanks for all of your great work. The latest set of packages have fixed all of the problems I was experience but has created one new one for which I cannot find a solution.

When I use Amarok and redirect the sound to a remote sink, the sound continually breaks ups and stutters. I also receive error messages from module-tunnel.c about buffer underruns.

I have tried various sized default-fragments and default-fragment-size-msec settings to no avail. I have also tried both the xine drivers in Hardy and the new ones in Intrepid.

Reviewing the pulseaudio.org site, I see that version 0.9.11 has been released and incorporates the new "glitch-free" timer-based audio scheduling sub-project.

http://0pointer.de/blog/projects/pulse-glitch-free.html (http://0pointer.de/blog/projects/pulse-glitch-free.html)

I have a suspicion that the sound card IRQ issues might be the root cause to the remote sink sound breakups I am experiencing.

Any chance in seeing the 0.9.11 release anytime soon?

psyke83
August 20th, 2008, 12:36 PM
Yes, all three machines are running 32-bit Hardy 8.04.1. Whene I did the updatedb and locate libflashplayer.so, my system reported that it was in /usr/lib/flashplugin-nonfree. I then downgraded to flash 9, and that is working. If I go to youtube, of course sound doesn't work, but we knew that going in. I then took it one step further and tried to re-install the flash 10 package from your ppa, and after receiving the "flash plugin installed" message, I checked in firefox (tools>addons), and it reports that flash 9 is still installed. At this point, I'm thoroughly stumped. Thanks again in advance for any ideas/suggestions.

Try to completely purge the package:
$ sudo apt-get remove --purge flashplugin-nonfree

Reinstall, and please post the apt-get/dpkg log:
$ sudo apt-get install flashplugin-nonfree

Finally, ensure that you restart Firefox before checking "about:plugins".

psyke83
August 20th, 2008, 12:40 PM
I have a suspicion that the sound card IRQ issues might be the root cause to the remote sink sound breakups I am experiencing.

Yes, that's quite possibly your problem.

Any chance in seeing the 0.9.11 release anytime soon?

Hmm, I fear not. PulseAudio 0.9.11 requires ALSA 1.0.17 with additional patches, and Lennart warned of more potential for incompatibility with applications. Additionally, Intrepid is scheduled for Feature Freeze in 8 days. It doesn't look good.

psyke83
August 20th, 2008, 07:32 PM
everytime i run
"$ getlibs -p libasound2-plugins"

i get an error saying it can't download it
"rklinkefus@linuxcore2:~$ getlibs -p libasound2-plugins
The following i386 packages will be installed: libasound2-plugins
Continue [Y/n]? y
Downloading ...
Failed to download file http://ppa.launchpad.net/do-core/ubuntu/pool/main/a/alsa-plugins/libasound2-plugins_1.0.16-1ubuntu2~ppa1_i386.deb
The mirrors do not have the requested file or there is no internet connection
No packages to install"

All the others work fine. Is anyone else getting this error.

It seems you have the "do-core" PPA listed in your sources.list, which at one time had a version of libasound2-plugins available (not anymore, though). You need to either update your repository lists, or disable that PPA and update your lists, then try again.

Also i still have pulse crash on me. It just gives me the cpu timout error

Unfortunately it could be any number of things. It's best to check the list of issues on Launchpad or upstream, here: http://pulseaudio.org/report

16777216
August 21st, 2008, 01:01 AM
After following the guide and rebooting I no longer have sound.
When opening PulseAudio Manage it says Failure: Connection refused in the status bar.

Never mind I must have made a boo-boo when folowing the guide.
I used the PPA instructions and now my sound works fine as far as I can tell.

tcrisan
August 21st, 2008, 04:05 PM
Hmm, I fear not. PulseAudio 0.9.11 requires ALSA 1.0.17 with additional patches, and Lennart warned of more potential for incompatibility with applications. Additionally, Intrepid is scheduled for Feature Freeze in 8 days. It doesn't look good.

Quick, you only have a few days left to see that PulseAudio 0.9.11 gets checked in and committed for Intrepid. You will single handedly move forward the development of PulseAudio and perhaps be hated for years.

More seriously, I'm very thankful for your work towards getting PulseAudio up to where ALSA has been (from a simple user's perspective such as mine). After finding this thread some weeks ago, my frustrations with Hardy and its sound implementation largely went away.

petitchevalroux
August 22nd, 2008, 01:59 PM
Hi psyke83 the pulsemaster !

First I should say Thanks For all The work you do for all of us.

But unfortunatly My sound is always stuttering after having installed the packages from your ppa.

Is their any way to try ALSA direct output to my card in order to know if it alsa or pulse the problem.

My card is an C-Media Electronics based on CM8738 rev 10 chipset. Anyone who succeed to stop stutter with this card is pleased to help me.

dude4linux
August 22nd, 2008, 11:12 PM
psyke83

Thanks so much for your hard work. I have been fighting flash crashes since upgrading to Hardy. Nothing I've found previously has helped. Now after following your post #472 with updates, everything seems okay. Still a few apps like Audacity that don't yet support pulseaudio but I can wait for them. I'm running Ubuntu Hardy upgraded from Gutsy on i386 laptop.

Any idea when/if your updates will be released in the standard repositories?

Dude4Linux

manlypain
August 23rd, 2008, 05:10 PM
It seems you have the "do-core" PPA listed in your sources.list, which at one time had a version of libasound2-plugins available (not anymore, though). You need to either update your repository lists, or disable that PPA and update your lists, then try again.


Ok I edited my sources and update and commented out that repo
i then ran
sudo apt-get update

i keeps trying to get it from that address. Is there a command to stop it from doing that?

anarki13
August 23rd, 2008, 09:20 PM
No luck, following post #472 i could not get sound to work without installing libflashsupport.

without it, when i check the Pulseaudio devices tab, the youtube video sound source keeps toggling on and off very, VERY quickly!

with flashlibsupport installed, it shows normally, BUT crashes still occur. granted a bit less, but they do occur still :(

soundcard is intel HDA. OS is Hardy 32-but.

btw already tried following posts 551-553, no luck. sorry if i seem groggy but i am, its 3 am here and i should go to sleep!

PLEASE HELP!

thedaylights
August 24th, 2008, 12:25 AM
I followed the guide and now I have no sound. I had mp3 playback but no movie playback before the guide. Now even mp3's do not play.

psyke83
August 24th, 2008, 09:51 AM
Hi psyke83 the pulsemaster !

First I should say Thanks For all The work you do for all of us.

But unfortunatly My sound is always stuttering after having installed the packages from your ppa.

Is their any way to try ALSA direct output to my card in order to know if it alsa or pulse the problem.

My card is an C-Media Electronics based on CM8738 rev 10 chipset. Anyone who succeed to stop stutter with this card is pleased to help me.

If you followed post #472:

To disable PulseAudio:
$ asoundconf unset-pulseaudio
$ pulseaudio -k

To enable PulseAudio:
$ asoundconf set-pulseaudio
$ pulseaudio

psyke83
August 24th, 2008, 09:53 AM
Hi psyke83 the pulsemaster !

First I should say Thanks For all The work you do for all of us.

But unfortunatly My sound is always stuttering after having installed the packages from your ppa.

Is their any way to try ALSA direct output to my card in order to know if it alsa or pulse the problem.

My card is an C-Media Electronics based on CM8738 rev 10 chipset. Anyone who succeed to stop stutter with this card is pleased to help me.

You need to try editing the fragment sizes/amounts. Look at Part C of the original guide to see what needs to be edited, but keep in mind that you may ned to edit /etc/pulse/daemon.conf (or else make a copy to ~/.pulse/ first).

psyke83
August 24th, 2008, 10:00 AM
No luck, following post #472 i could not get sound to work without installing libflashsupport.

without it, when i check the Pulseaudio devices tab, the youtube video sound source keeps toggling on and off very, VERY quickly!

with flashlibsupport installed, it shows normally, BUT crashes still occur. granted a bit less, but they do occur still :(

soundcard is intel HDA. OS is Hardy 32-but.

btw already tried following posts 551-553, no luck. sorry if i seem groggy but i am, its 3 am here and i should go to sleep!

PLEASE HELP!

Posts 551-553 were for 64bit users, I certainly hope you weren't messing with "getlibs" on a 32bit installation. Do other applications play sound successfully using PulseAudio?

Anyway, check if you successfully upgraded the necessary packages. Post the output of this command:

dpkg -l | grep asound

psyke83
August 24th, 2008, 11:11 AM
Ok I edited my sources and update and commented out that repo
i then ran
sudo apt-get update

i keeps trying to get it from that address. Is there a command to stop it from doing that?

There's a few possibilities:
1. Getlibs is using a copy of your sources.list that is in a different location to /etc/apt/
2. You didn't disable the gnome-do repositories properly.
3. Getlibs is trying to grab the identical version of a package installed on your system.

Ensure you really disabled the gnome-do repositories (binary and sources), then:
$ sudo apt-get install libasound2/hardy libasound2-plugins/hardy lib32asound2/hardy

Finally, allow an upgrade to my version:
$ sudo apt-get upgrade

malrost
August 24th, 2008, 01:15 PM
YIKES.

Following this thread, I ran the suggested commands. Not only was I unable to view the Daily Show (the reason I tried this), but now I am unable to watch ANY video files on ANY video player. (Except .mpg files using gxine.)

How to undo the damage?

Depending on the driver I'm using --and I've tried them all-- Mplayer gives me either "Error opening/initializing the selected video_out (-vo_ device" or "error at MB: 633" (whatever THAT means.) VLC, which used to be my fallback, is now useless. In desperation, I even checked RealPlayer.

Here are the commands I used, copied from my .bash_history file. My computer has been in storage for a few months and I am a little rusty on this stuff. It's an x86_64 system, using Hardy which was recently upgraded from Gutsy. The video was working until I used these commands.

What now?

getlibs -p libnspr4-0d
getlibs -p libcurl3
getlibs -p libasound2-plugins
sudo apt-get remove libflashsupport
sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf
sudo apt-get install padevchooser libao-pulse libasound2-plugins libsdl1.2debian-pulseaudio
gksudo gedit /etc/apt/sources.list
sudo apt-get update
asoundconf set-pulseaudio
echo "default_driver=pulse" >~/.libao

In the third from the last line above, the following was added to my /etc/apt/sources.list:

# added to watch the damn Daily Show Aug 24 2008
# PulseAudio Fixes - http://ubuntuforums.org/showthread.php?p=5587712
deb http://ppa.launchpad.net/psyke83/ubuntu hardy main
deb-src http://ppa.launchpad.net/psyke83/ubuntu hardy main

psyke83
August 24th, 2008, 01:33 PM
YIKES.

Following this thread, I ran the suggested commands. Not only was I unable to view the Daily Show (the reason I tried this), but now I am unable to watch ANY video files on ANY video player. (Except .mpg files using gxine.)

How to undo the damage?

Depending on the driver I'm using --and I've tried them all-- Mplayer gives me either "Error opening/initializing the selected video_out (-vo_ device" or "error at MB: 633" (whatever THAT means.) VLC, which used to be my fallback, is now useless. In desperation, I even checked RealPlayer.

Here are the commands I used, copied from my .bash_history file. My computer has been in storage for a few months and I am a little rusty on this stuff. It's an x86_64 system, using Hardy which was recently upgraded from Gutsy. The video was working until I used these commands.

What now?

getlibs -p libnspr4-0d
getlibs -p libcurl3
getlibs -p libasound2-plugins
sudo apt-get remove libflashsupport
sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf
sudo apt-get install padevchooser libao-pulse libasound2-plugins libsdl1.2debian-pulseaudio
gksudo gedit /etc/apt/sources.list
sudo apt-get update
asoundconf set-pulseaudio
echo "default_driver=pulse" >~/.libao

In the third from the last line above, the following was added to my /etc/apt/sources.list:

# added to watch the damn Daily Show Aug 24 2008
# PulseAudio Fixes - http://ubuntuforums.org/showthread.php?p=5587712
deb http://ppa.launchpad.net/psyke83/ubuntu hardy main
deb-src http://ppa.launchpad.net/psyke83/ubuntu hardy main

I can't test getlibs here as I don't have any 64bit systems, but you would need to run getlibs with administrator privileges (sudo).

1. Are you using the Ubuntu (GNOME) release?
2. Post your pulseaudio verbose log (see Appendix B of the guide at post #1).
3. Post the output of mplayer using the pulse driver, e.g.:
$ mplayer -ao pulse /usr/share/example-content/ubuntu\ Sax.ogg

Also be sure to check the troubleshooting tips in Appendix B.

malrost
August 24th, 2008, 02:19 PM
Thanks for the assist, it is much appreciated. Now to your questions:

1. Yes, it's Ubuntu w/ Gnome (version 2.22.3), amd64. I upgraded from Gutsy.

2. I checked appendix B with two appliations. First application was Audacious (a music player), and I got result A. Second application was Hydrogen (a drum machine), and I got result B.

Not sure if this helps, but when I first ran the test, an Mplayer plugin stream was already visible even though i had no instance of Mplayer running. (I did have to kill it once a bit earlier; one driver change/test made it 'sleeping', as it's called in the system monitor. IOW no response to my attempts to close & restart it.)

Not sure what to make of this, but I've now received different results to the verbose output depending on what was open. Details below:

First time: applet open, Audacious running. I gave the last line about a minute, than ctrl+X'd it.

I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_371_sound_card_0_alsa_capture_2
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_371_sound_card_0_alsa_playback_1
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_371_sound_card_0_alsa_capture_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_10de_371_sound_card_0_al sa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.pci_10de_371_sound_card_0_alsa_playbac k_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_10de_371_sound_card_0_alsa_playbac k_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: ALSA device lacks independant volume controls for each channel, falling back to software volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_10de_371_sound_card_0_al sa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_10de_371_sound_card_0_a lsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_10de_371_sound_card_0_alsa_capture_ 0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_10de_371_sound_card_0_a lsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_371_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_371_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #5; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #6; argument: "").
D: module-default-device-restore.c: Restored default sink 'alsa_output.pci_10de_371_sound_card_0_alsa_playba ck_0'.
D: core-subscribe.c: dropped redundant event.
D: module-default-device-restore.c: Restored default source 'alsa_input.pci_10de_371_sound_card_0_alsa_capture _0'.
I: module.c: Loaded "module-default-device-restore" (index: #7; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #8; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.pci_10de_371_sound_card_0_alsa_playbac k_0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_10de_371_sound_card_0_alsa_playbac k_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_10de_371_sound_card_0_alsa_capture_ 0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #9; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #10; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Sink alsa_output.pci_10de_371_sound_card_0_alsa_playbac k_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_input.pci_10de_371_sound_card_0_alsa_capture_ 0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.pci_10de_371_sound_card_0_alsa_playbac k_0.monitor idle for too long, suspending ...

Second time: closed the PulseAudio applet, only apps open were browser and terminal:

I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed.

Third time, same as above but as root:

E: main.c: Failed to kill daemon.
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed.

Fourth; one last time, with PulseAudio applet and Hydrogen open (though not playing):

I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed.


Finally, question #3. Not sure what to make of the "mplayer: no such file or directory" line. After I realized the video wasn't working, I reinstalled Mplayer, VLC, and all related libraries using Synaptic, (thinking that if I'd hosed any dependencies that would fix them.)

MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ (Family: 15, Model: 107, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/example-content/ubuntu Sax.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
================================================== ========================
AO: [pulse] Failed to connect to server: Timeout
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

psyke83
August 24th, 2008, 03:13 PM
2. I checked appendix B with two appliations. First application was Audacious (a music player), and I got result A. Second application was Hydrogen (a drum machine), and I got result B.

That's probably normal. I suspect that Hydrogen isn't compatible with PulseAudio.

Not sure if this helps, but when I first ran the test, an Mplayer plugin stream was already visible even though i had no instance of Mplayer running. (I did have to kill it once a bit earlier; one driver change/test made it 'sleeping', as it's called in the system monitor. IOW no response to my attempts to close & restart it.)

That could indicate that mplayer crashes when using its PulseAudio output, perhaps.

Not sure what to make of this, but I've now received different results to the verbose output depending on what was open. Details below:

First time: applet open, Audacious running. I gave the last line about a minute, than ctrl+X'd it.

You didn't need to test under all those circumstances. The first output indicated no problems, and all subsequent tries indicated that a PulseAudio server was already running.

1. Did getlibs complain of any problems when trying to install the 32bit packages? You may want to check IntuitiveNipple's PPA to get a "fixed" version of getlibs: http://ubuntuforums.org/showpost.php?p=5603687&postcount=10

2. Log out and log back in. Don't allow any other applications that use audio to remain open, then run mplayer (using the advice of Appendix B) in two ways:

First:
$ mplayer -ao alsa /usr/share/example-content/ubuntu\ Sax.ogg

Second:
$ mplayer -ao pulse /usr/share/example-content/ubuntu\ Sax.ogg

If it doesn't give result A in both instances, I'm not sure what's wrong on your system. Let me know the results, and paste the output for both instances here.

If you want to disable PulseAudio, the quickest way is:
$ asoundconf unset-pulseaudio

Also you may want to change the entries in System/Preferences/Sound from Autodetect to ALSA.

anarki13
August 24th, 2008, 03:51 PM
Posts 551-553 were for 64bit users, I certainly hope you weren't messing with "getlibs" on a 32bit installation. Do other applications play sound successfully using PulseAudio?

Anyway, check if you successfully upgraded the necessary packages. Post the output of this command:

dpkg -l | grep asound


dpkg -l | grep asound gives:

ii libasound2 1.0.16-2ubuntu2~ppa1 ALSA library
ii libasound2-plugins 1.0.16-1ubuntu2~ppa1 ALSA library additional plugins

i know they were for 64-bit, i just thought i'd see if i missed something :)

now, i did get libasound2-plugins thru apt, actually thru your PPA

oh and yes all other apps play sound fine and show on the pulseaudio GUI volume and devices tabs:

my problem is only with flash video. it does work temporarily if i install libflashsupport or flashplugin-nonfree, however after a few minutes flash video just stops showing.

believe me your help is much appreciated!

psyke83
August 24th, 2008, 04:05 PM
my problem is only with flash video. it does work temporarily if i install libflashsupport or flashplugin-nonfree, however after a few minutes flash video just stops showing.

believe me your help is much appreciated!

It's possible you have an older version of flash on your system (possibly from a manual installation).

$ sudo updatedb
$ locate libflashplayer.so

Delete any references to that file on your system, and then reinstall the flashplugin-nonfree package:
$ sudo apt-get install --reinstall flashplugin-nonfree

Ensure you have version "10.0.1.218+10.0.0.569ubuntu1~ppa2" of this package installed. Paste the apt-get log if you still have problems.

anarki13
August 24th, 2008, 06:19 PM
It's possible you have an older version of flash on your system (possibly from a manual installation).

$ sudo updatedb
$ locate libflashplayer.so

Delete any references to that file on your system, and then reinstall the flashplugin-nonfree package:
$ sudo apt-get install --reinstall flashplugin-nonfree

Ensure you have version "10.0.1.218+10.0.0.569ubuntu1~ppa2" of this package installed. Paste the apt-get log if you still have problems.


sorry, no luck :( firefox now reports flashplugin as uninstalled; here is the log:


sudo apt-get install --reinstall flashplugin-nonfree
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/19.2kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
flashplugin-nonfree
Install these packages without verification [y/N]? y
Preconfiguring packages ...
(Reading database ... 181668 files and directories currently installed.)
Preparing to replace flashplugin-nonfree 10.0.1.218+10.0.0.569ubuntu1~ppa2 (using .../flashplugin-nonfree_10.0.1.218+10.0.0.569ubuntu1~ppa2_i386.deb ) ...
Unpacking replacement flashplugin-nonfree ...
Setting up flashplugin-nonfree (10.0.1.218+10.0.0.569ubuntu1~ppa2) ...
Installing from local file /var/cache/flashplugin-nonfree/flashplayer10_install_linux_081108.tar.gz
Flash Plugin installed.

malrost
August 24th, 2008, 06:22 PM
I got result A from both mplayer tests! Hopefully that's good news...


Anyway I'm afraid I don't remember any complaints from getlibs, but am not sure. Should I run those lines again to check?

So first I checked IntuitiveNipple's post, added his/her PPA to my repository list, and updated apt-get. I then changed the sound preferences (for everything) from autodetect to ALSA. After this I logged off/on and ran the Appendix B tests.

I haven't yet disabled PulseAudio, because I'm not sure if that's what I need or want to do here. Here are the test results:

Test 1:

$ mplayer -ao alsa /usr/share/example-content/ubuntu\ Sax.ogg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ (Family: 15, Model: 107, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/example-content/ubuntu Sax.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
================================================== ========================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 25.6 (25.6) of 26.0 (25.9) 0.9%

Exiting... (End of file)


Test 2

$ mplayer -ao alsa /usr/share/example-content/ubuntu\ Sax.ogg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ (Family: 15, Model: 107, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/example-content/ubuntu Sax.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
================================================== ========================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 25.6 (25.6) of 26.0 (25.9) 0.8%

Exiting... (End of file)

psyke83
August 24th, 2008, 06:24 PM
sorry, no luck :( firefox now reports flashplugin as uninstalled; here is the log:

You didn't indicate whether or not you found other "libflashplayer.so" files. Also, that logs shows that Flash (re)installed successfully.

Are you aware that you have to restart Firefox for changes to take effect? What version of the plugin is shown in Firefox's "about:plugins" ?

psyke83
August 24th, 2008, 06:33 PM
I got result A from both mplayer tests! Hopefully that's good news...


Anyway I'm afraid I don't remember any complaints from getlibs, but am not sure. Should I run those lines again to check?

So first I checked IntuitiveNipple's post, added his/her PPA to my repository list, and updated apt-get. I then changed the sound preferences (for everything) from autodetect to ALSA. After this I logged off/on and ran the Appendix B tests.

I haven't yet disabled PulseAudio, because I'm not sure if that's what I need or want to do here. Here are the test results:


Please, don't confuse my instructions.

In my last post, I asked you to test mplayer using the "alsa" output, then the "pulse" output. In your tests you tested mplayer with "alsa" both times.

I also gave you instructions to disable PulseAudio, which you shouldn't have done until after following the mplayer tests.

You will need to enable PulseAudio again:
1. $ asoundconf set-pulseaudio
2. System/Preferences/Sound. Set "Sound playback" options to Autodetect (this only affects GStreamer applications, though).

When PulseAudio is "enabled", log out and back in, then try the mplayer tests again (just ensure you use "-ao pulse" for the second attempt). Be sure *not* to have other audio applications running during these tests.

anarki13
August 24th, 2008, 06:55 PM
You didn't indicate whether or not you found other "libflashplayer.so" files. Also, that logs shows that Flash (re)installed successfully.

Are you aware that you have to restart Firefox for changes to take effect? What version of the plugin is shown in Firefox's "about:plugins" ?


1. yes, found other libflashplayer.so files, removed them by hand, 3 files, two in ~/.mozilla/plugins/ and ~/.flock/plugins/
and one under /usr/lib/flashplugin-nonfree

2. yes i do :) and about:plugin does not show flashplugin-nonfree..

i just removed them completely again, "locate" doesnt show them, i reinstalled flashplugin-nonfree yet again, it recommended these packges to me however: ttf-xfree86-nonfree xfs, will see what happens when i install them..

have to restart now and will come back to tell you!

psyke83
August 24th, 2008, 07:04 PM
1. yes, found other libflashplayer.so files, removed them by hand, 3 files, two in ~/.mozilla/plugins/ and ~/.flock/plugins/
and one under /usr/lib/flashplugin-nonfree

2. yes i do :) and about:plugin does not show flashplugin-nonfree..

i just removed them completely again, "locate" doesnt show them, i reinstalled flashplugin-nonfree yet again, it recommended these packges to me however: ttf-xfree86-nonfree xfs, will see what happens when i install them..

have to restart now and will come back to tell you!

Those packages aren't necessary and neither is a restart. You always have to update your mlocate database before doing a search for a file, otherwise you'll get outdated results from the "locate" command.

$ sudo updatedb

You should have libflashplayer.so in this folder: /usr/lib/flashplugin-nonfree/

malrost
August 24th, 2008, 07:30 PM
That was a bad copy/paste on my part. I did in fact test it with both pulse and alsa. Here's the pulse output:

$ mplayer -ao pulse /usr/share/example-content/ubuntu\ Sax.ogg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ (Family: 15, Model: 107, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/example-content/ubuntu Sax.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
================================================== ========================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 25.5 (25.4) of 26.0 (25.9) 0.8%

Exiting... (End of file)

As I mentioned before, I haven't yet disabled pulse because I wasn't clear if you were suggesting I do so. Shall I?

psyke83
August 24th, 2008, 07:35 PM
As I mentioned before, I haven't yet disabled pulse because I wasn't clear if you were suggesting I do so. Shall I?

Well, it seems PulseAudio is working, considering that output. If you're no longer having problems with audio, keep PulseAudio enabled. Otherwise you can disable it using the instructions I posted earlier.

malrost
August 24th, 2008, 07:46 PM
Disabling PulseAudio appears to be the necessary step for my video player apps to function properly.

Still no Daily Show, but at least I'm back to where I was before I started. Thanks for the help!

thedaylights
August 24th, 2008, 09:28 PM
I'm running into some problems with this, and I hope someone can help. In the PulseAudio Device Chooser, I go to volume control and then start up an application such as Amarok or a movie. Amarok indicates that the mp3 file is playing and PulseAudio shows a stream from amarok, but there is no sound coming from the speakers. Same with movies no matter what player I use.

The guide says I can only get one of three possibilities with PulseAudio Device Chooser:
There are three possible results:

1. The application plays audio and lists an entry in PulseAudio Volume Control.
2. The application plays audio and does not list an entry in PulseAudio Volume Control.
3. The application fails to play audio and does not list an entry in PulseAudio Volume Control.

But I get a fourth result of no audio and a listed entry in PulseAudio Volume Control.

Please help!

psyke83
August 24th, 2008, 09:32 PM
I'm running into some problems with this, and I hope someone can help. In the PulseAudio Device Chooser, I go to volume control and then start up an application such as Amarok or a movie. Amarok indicates that the mp3 file is playing and PulseAudio shows a stream from amarok, but there is no sound coming from the speakers. Same with movies no matter what player I use.

The guide says I can only get one of three possibilities with PulseAudio Device Chooser:

But I get a fourth result of no audio and a listed entry in PulseAudio Volume Control.

Please help!

Open the PulseAudio Volume Control. Play an mp3 in Amarok, then right-click on the Amarok entry and choose "Move Sink..." and try any alternatives it presents.

thedaylights
August 24th, 2008, 09:45 PM
Open the PulseAudio Volume Control. Play an mp3 in Amarok, then right-click on the Amarok entry and choose "Move Sink..." and try any alternatives it presents.

I tried that and there was only one option "ALSA PCM on front:0 (AD 198x Analog) via DMA". I assume you mean "move stream" rather than "move sink".

Also, I've tried switching the output plugin to PulseAudio in Amarok. No luck. Should it be PulseAudio or ALSA?

anarki13
August 25th, 2008, 11:50 AM
Those packages aren't necessary and neither is a restart. You always have to update your mlocate database before doing a search for a file, otherwise you'll get outdated results from the "locate" command.

$ sudo updatedb

You should have libflashplayer.so in this folder: /usr/lib/flashplugin-nonfree/

yes i already am doing this: the results are indeed


sudo updatedb
locate flashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so


still nothing. using flash 10, flash just shows up as a white blank space, the flashplugin is not registered.

i tried just once downgrading to flash 9, i get video just fine, however there is no sound..

i really dont know what to do, and i dont want to undo all the things said in the guide..
i have no idea where the problem is.. sigh.

--

edit: just experimented using flash9 and libflashsupport, all is ok once more.. i know its not optimal and everything but maybe this will be fixed when flash10 is stable?

sym_zo
August 26th, 2008, 07:01 PM
Yes, all three machines are running 32-bit Hardy 8.04.1. Whene I did the updatedb and locate libflashplayer.so, my system reported that it was in /usr/lib/flashplugin-nonfree. I then downgraded to flash 9, and that is working. If I go to youtube, of course sound doesn't work, but we knew that going in. I then took it one step further and tried to re-install the flash 10 package from your ppa, and after receiving the "flash plugin installed" message, I checked in firefox (tools>addons), and it reports that flash 9 is still installed. At this point, I'm thoroughly stumped. Thanks again in advance for any ideas/suggestions.

I have the same problem : upgrade to your version of flash player 10 makes it disappear from firefox registered plugins. Downgrading to the repository version or to flash player 9 solves the issue, but then I don't have any sound ;-).

When your plugin is installed :
$ locate libflashplayer.so
/usr/lib/firefox/plugins/libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so
/usr/lib/opera/plugins/libflashplayer.so


Which way should I look ?

Thanks a lot,
sym_zo

psyke83
August 27th, 2008, 08:34 AM
I have the same problem : upgrade to your version of flash player 10 makes it disappear from firefox registered plugins. Downgrading to the repository version or to flash player 9 solves the issue, but then I don't have any sound ;-).

When your plugin is installed :
$ locate libflashplayer.so
/usr/lib/firefox/plugins/libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so
/usr/lib/opera/plugins/libflashplayer.so


Which way should I look ?

Thanks a lot,
sym_zo

This is what's on my system with the package installed:

conn@dimension:~$ locate libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so

Try deleting all references to that file (listed in your post), then reinstall the plugin: $ sudo apt-get install --reinstall flashplugin-nonfree

eru777
August 27th, 2008, 01:05 PM
Thanks a lot, it fixed the problem .

anarki13
August 27th, 2008, 06:46 PM
This is what's on my system with the package installed:

conn@dimension:~$ locate libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so

Try deleting all references to that file (listed in your post), then reinstall the plugin: $ sudo apt-get install --reinstall flashplugin-nonfree

seems he has the same problem as i, with your plugin, flashvideo is gone completely, with the old flash9 plugin AND libflashsupport, sound is back but then again the video crash problem is back as well.

if i purge the system and reinstall your plugin, it just goes away. its just not working over here. i have a Lenovo N200 3000 with Intel HDA sound.

thank you Psyke83 for the time and effort you are putting into this, here's hoping it gets solved once and for all and gets integrated into lin.

sym_zo
August 28th, 2008, 07:37 AM
This is what's on my system with the package installed:

conn@dimension:~$ locate libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so

Try deleting all references to that file (listed in your post), then reinstall the plugin: $ sudo apt-get install --reinstall flashplugin-nonfree

Hello,

I followed your instructions : I now have only one libflashplayer, /usr/lib/flashplugin-nonfree/libflashplayer.so. Unfortunately, it did not solve my problem.

But there's something new ;-) : firefox is now aware of the fact that he has no flash plugin, and warns me about it ("Additional plugins are required...").

How is firefox suppose to be "linked" to libflashplayer.so ? How/where can I check that the "link" actually exists, and how/where can I check why, if the link does exist, firefox fails to load the plugin ?

Thanks for your (precious !) help ;-)

crjackson
August 28th, 2008, 11:39 AM
Okay so I followed this post (http://ubuntuforums.org/showpost.php?p=5587712&postcount=472) and now I have no flash support. I tried to reinstall the old version (no-dice), I tried to reinstall the new version (no-dice). What do I need to do here?

charles@MSI-K8N-NEO4-PLAT-SLI:~$ sudo apt-get install --reinstall flashplugin-nonfree
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
konqueror-nsplugins ttf-xfree86-nonfree xfs
The following NEW packages will be installed:
flashplugin-nonfree
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/19.2kB of archives.
After this operation, 176kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
flashplugin-nonfree
Install these packages without verification [y/N]? y
Preconfiguring packages ...
Selecting previously deselected package flashplugin-nonfree.
(Reading database ... 231166 files and directories currently installed.)
Unpacking flashplugin-nonfree (from .../flashplugin-nonfree_10.0.1.218+10.0.0.569ubuntu1~ppa2_i386.deb ) ...
Setting up flashplugin-nonfree (10.0.1.218+10.0.0.569ubuntu1~ppa2) ...
Downloading...
--11:35:34-- http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_install_linux_081108.tar.gz
=> `./flashplayer10_install_linux_081108.tar.gz'
Resolving download.macromedia.com... 96.6.35.191
Connecting to download.macromedia.com|96.6.35.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,035,433 (3.8M) [application/x-gzip]

0K .......... .......... .......... .......... .......... 1% 462.00 KB/s
50K .......... .......... .......... .......... .......... 2% 837.39 KB/s
100K .......... .......... .......... .......... .......... 3% 822.16 KB/s
150K .......... .......... .......... .......... .......... 5% 845.19 KB/s
200K .......... .......... .......... .......... .......... 6% 823.55 KB/s
250K .......... .......... .......... .......... .......... 7% 836.42 KB/s
300K .......... .......... .......... .......... .......... 8% 836.01 KB/s
350K .......... .......... .......... .......... .......... 10% 832.56 KB/s
400K .......... .......... .......... .......... .......... 11% 816.10 KB/s
450K .......... .......... .......... .......... .......... 12% 833.44 KB/s
500K .......... .......... .......... .......... .......... 13% 837.54 KB/s
550K .......... .......... .......... .......... .......... 15% 833.28 KB/s
600K .......... .......... .......... .......... .......... 16% 808.77 KB/s
650K .......... .......... .......... .......... .......... 17% 831.37 KB/s
700K .......... .......... .......... .......... .......... 19% 841.79 KB/s
750K .......... .......... .......... .......... .......... 20% 831.83 KB/s
800K .......... .......... .......... .......... .......... 21% 829.00 KB/s
850K .......... .......... .......... .......... .......... 22% 819.31 KB/s
900K .......... .......... .......... .......... .......... 24% 826.82 KB/s
950K .......... .......... .......... .......... .......... 25% 842.80 KB/s
1000K .......... .......... .......... .......... .......... 26% 832.12 KB/s
1050K .......... .......... .......... .......... .......... 27% 835.26 KB/s
1100K .......... .......... .......... .......... .......... 29% 815.60 KB/s
1150K .......... .......... .......... .......... .......... 30% 827.71 KB/s
1200K .......... .......... .......... .......... .......... 31% 842.60 KB/s
1250K .......... .......... .......... .......... .......... 32% 827.62 KB/s
1300K .......... .......... .......... .......... .......... 34% 840.59 KB/s
1350K .......... .......... .......... .......... .......... 35% 808.05 KB/s
1400K .......... .......... .......... .......... .......... 36% 815.52 KB/s
1450K .......... .......... .......... .......... .......... 38% 863.39 KB/s
1500K .......... .......... .......... .......... .......... 39% 805.44 KB/s
1550K .......... .......... .......... .......... .......... 40% 856.36 KB/s
1600K .......... .......... .......... .......... .......... 41% 806.09 KB/s
1650K .......... .......... .......... .......... .......... 43% 831.98 KB/s
1700K .......... .......... .......... .......... .......... 44% 836.02 KB/s
1750K .......... .......... .......... .......... .......... 45% 835.48 KB/s
1800K .......... .......... .......... .......... .......... 46% 827.96 KB/s
1850K .......... .......... .......... .......... .......... 48% 806.56 KB/s
1900K .......... .......... .......... .......... .......... 49% 833.28 KB/s
1950K .......... .......... .......... .......... .......... 50% 836.25 KB/s
2000K .......... .......... .......... .......... .......... 52% 831.96 KB/s
2050K .......... .......... .......... .......... .......... 53% 812.66 KB/s
2100K .......... .......... .......... .......... .......... 54% 838.98 KB/s
2150K .......... .......... .......... .......... .......... 55% 829.85 KB/s
2200K .......... .......... .......... .......... .......... 57% 839.72 KB/s
2250K .......... .......... .......... .......... .......... 58% 828.70 KB/s
2300K .......... .......... .......... .......... .......... 59% 810.30 KB/s
2350K .......... .......... .......... .......... .......... 60% 840.11 KB/s
2400K .......... .......... .......... .......... .......... 62% 832.20 KB/s
2450K .......... .......... .......... .......... .......... 63% 838.06 KB/s
2500K .......... .......... .......... .......... .......... 64% 827.62 KB/s
2550K .......... .......... .......... .......... .......... 65% 814.36 KB/s
2600K .......... .......... .......... .......... .......... 67% 821.75 KB/s
2650K .......... .......... .......... .......... .......... 68% 845.84 KB/s
2700K .......... .......... .......... .......... .......... 69% 836.54 KB/s
2750K .......... .......... .......... .......... .......... 71% 830.84 KB/s
2800K .......... .......... .......... .......... .......... 72% 810.32 KB/s
2850K .......... .......... .......... .......... .......... 73% 839.78 KB/s
2900K .......... .......... .......... .......... .......... 74% 811.63 KB/s
2950K .......... .......... .......... .......... .......... 76% 846.48 KB/s
3000K .......... .......... .......... .......... .......... 77% 823.97 KB/s
3050K .......... .......... .......... .......... .......... 78% 809.19 KB/s
3100K .......... .......... .......... .......... .......... 79% 844.22 KB/s
3150K .......... .......... .......... .......... .......... 81% 811.48 KB/s
3200K .......... .......... .......... .......... .......... 82% 854.66 KB/s
3250K .......... .......... .......... .......... .......... 83% 836.30 KB/s
3300K .......... .......... .......... .......... .......... 85% 805.03 KB/s
3350K .......... .......... .......... .......... .......... 86% 821.21 KB/s
3400K .......... .......... .......... .......... .......... 87% 848.62 KB/s
3450K .......... .......... .......... .......... .......... 88% 829.23 KB/s
3500K .......... .......... .......... .......... .......... 90% 819.16 KB/s
3550K .......... .......... .......... .......... .......... 91% 833.00 KB/s
3600K .......... .......... .......... .......... .......... 92% 821.07 KB/s
3650K .......... .......... .......... .......... .......... 93% 833.62 KB/s
3700K .......... .......... .......... .......... .......... 95% 836.22 KB/s
3750K .......... .......... .......... .......... .......... 96% 813.01 KB/s
3800K .......... .......... .......... .......... .......... 97% 832.94 KB/s
3850K .......... .......... .......... .......... .......... 98% 825.70 KB/s
3900K .......... .......... .......... .......... 100% 833.92 KB/s

11:35:39 (820.87 KB/s) - `./flashplayer10_install_linux_081108.tar.gz' saved [4035433/4035433]

Download done.
Flash Plugin installed.
*** NSPlugin Viewer *** ERROR: libnspr4.so: cannot open shared object file: No such file or directory
nspluginwrapper: no appropriate viewer found for /usr/lib/flashplugin-nonfree/libflashplayer.so
dpkg: error processing flashplugin-nonfree (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
flashplugin-nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)
charles@MSI-K8N-NEO4-PLAT-SLI:~$

crjackson
August 28th, 2008, 12:05 PM
Wow, this totally sucks. Is there anyway to undo all the changes your procedure did?

I managed to get flash working by downloading from the Adobe site and installing their v9 package. But now my browser crashes when I close a page with flash. It has NEVER done that before and I can't find a way to make it stop.

I have to do another install of ubuntu to fix this. I just got so many things working and I guess I got too cocky when I saw your guide.

I should have left it alone..... Dang... this is upsetting.

crjackson
August 28th, 2008, 12:46 PM
I did manage to fix the thing so it seems right now. I have to delete everything on my system related to flash, the reinstall the original Ubuntu packages. Finally after installing libflashsupport everything seems to be fine and no more firefox crashing.

phew!!! I won't try that again. I'll just have to wait for Ubuntu to fix the issues through the repos.

psyke83
August 28th, 2008, 01:10 PM
Okay so I followed this post (http://ubuntuforums.org/showpost.php?p=5587712&postcount=472) and now I have no flash support. I tried to reinstall the old version (no-dice), I tried to reinstall the new version (no-dice). What do I need to do here?

You need to install the 32bit version of libnspr4-0d (using getlibs). Funnily enough, if you followed that post you shouldn't have seen that error.

If the "libflashsupport" package is installed, your flash content will occasionally cut out (though firefox won't crash). Ideally this package should not be installed, but it seems that amd64 users have trouble with the lib32asound2 package, which will cause 32bit ALSA applications not to work with PulseAudio. When I have news, I'll update the post - in the meantime, "if it works, don't break it" :p.

crjackson
August 28th, 2008, 01:18 PM
You need to install the 32bit version of libnspr4-0d (using getlibs). Funnily enough, if you followed that post you shouldn't have seen that error.

I followed it to the T. getlibs told me I already had the latest version installed and skipped it. Maybe I need to make sure I have the latest version of getlibs. I installed it quite a long time ago.

I have done a full back-up of my working system, so perhaps I'll try again this weekend. I'm off to work for now. Thanks... I sure was stressing it.

I checked getlibs and it is the newest version already so I ran it again and this is the result:
charles@MSI-K8N-NEO4-PLAT-SLI:~$ getlibs -p libnss3-1d
[sudo] password for charles:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnss3-1d is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
charles@MSI-K8N-NEO4-PLAT-SLI:~$ getlibs -p libnspr4-0d
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnspr4-0d is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
charles@MSI-K8N-NEO4-PLAT-SLI:~$ getlibs -p libcurl3
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
charles@MSI-K8N-NEO4-PLAT-SLI:~$ getlibs -p libasound2-plugins
Reading package lists... Done
Building dependency tree
Reading state information... Done
libasound2-plugins is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
charles@MSI-K8N-NEO4-PLAT-SLI:~$

I don't watch a lot of flash on this particular computer so I can live with the occasionally cutting out thing. I've NEVER noticed it before but as I said, I don't watch a bunch of flash on this system. My wife does however and she hasn't complained. She complains about everything NON-Windows so it must not be too bad. Is that something that was installed by Ubuntu and we removed it with this guide, or was it working fine without it?

I'm running 32-bit btw not 64.

crjackson
August 28th, 2008, 01:36 PM
Check edited post for updated code output.

krul
August 28th, 2008, 04:32 PM
Has anyone booked any success to get switch user working and continuous sound playback?

This is the only thing what still does not work for me :(

psyke83
August 28th, 2008, 04:57 PM
Has anyone booked any success to get switch user working and continuous sound playback?

This is the only thing what still does not work for me :(

You need to set the appropriate configuration (i.e.: asoundconf set-pulseaudio) for each user account.

Beth1957
August 28th, 2008, 05:02 PM
<snip
Part A: Required Fixes (bug #198453)
Part B: Adobe Flash & PulseAudio Fix - i386 only(bug #192888 and bug #239182) <snip>
Thanks for this Ppsyke83; I'm pretty new to all this and really appreciate the fact that you explained why we were doing what we were doing at each stage.
Furthermore Firefox hasn't crashed since I rebooted! (=D>

crjackson
August 28th, 2008, 05:09 PM
Is there any change any of these pulse audio / flash problems will be officially addressed and properly fixed through normal updates for Hardy?

sym_zo
August 28th, 2008, 08:28 PM
Hello,

I followed your instructions : I now have only one libflashplayer, /usr/lib/flashplugin-nonfree/libflashplayer.so. Unfortunately, it did not solve my problem.

But there's something new ;-) : firefox is now aware of the fact that he has no flash plugin, and warns me about it ("Additional plugins are required...").

How is firefox suppose to be "linked" to libflashplayer.so ? How/where can I check that the "link" actually exists, and how/where can I check why, if the link does exist, firefox fails to load the plugin ?

Thanks for your (precious !) help ;-)


no help for me ? ;-)

shlicshlac
August 29th, 2008, 01:51 AM
Thanks psyke83. I used the second set of instructions you posted. This fixed my problem completely (as far as I can tell). Sound is great and in sync with the video.

Temüjin
August 29th, 2008, 04:21 PM
Hello,

I followed your instructions : I now have only one libflashplayer, /usr/lib/flashplugin-nonfree/libflashplayer.so. Unfortunately, it did not solve my problem.

But there's something new ;-) : firefox is now aware of the fact that he has no flash plugin, and warns me about it ("Additional plugins are required...").

How is firefox suppose to be "linked" to libflashplayer.so ? How/where can I check that the "link" actually exists, and how/where can I check why, if the link does exist, firefox fails to load the plugin ?

Thanks for your (precious !) help ;-)
If you're using 64-bit Ubuntu, see the sticky in that forum. Otherwise,
sudo ln -sf /usr/lib/flashplugin-nonfree/libflashplayer.so /usr/lib/firefox-addons/plugins/

karl3
August 29th, 2008, 07:02 PM
ok, this is strange...

i have followed the instructions (post 472), and my music (and films) sound good at last, but when i play a youtube video in firefox (or opera) there is no sound. however, if i download it (as .flv file) and play it in in totem everything is ok. everything is ok as well if i play it directly from the net via totem's youtube browser plugin %)

saracen
August 30th, 2008, 04:25 PM
Like others in this thread I followed the instructions and now do not have any flash at all. Firefox does not show the flash plugin in about: plugins. I have purged and reinstalled the package several times. The package is installed and the file is located at:saracen@study:~$ locate libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so
I also get the following output when I launch firefox from the command line:LoadPlugin: failed to initialize shared library /usr/lib/flashplugin-nonfree/libflashplayer.so [libssl3.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library /usr/lib/flashplugin-nonfree/libflashplayer.so [libssl3.so: cannot open shared object file: No such file or directory]
Any help would be much appreciated.

psyke83
August 30th, 2008, 04:32 PM
Like others in this thread I followed the instructions and now do not have any flash at all. Firefox does not show the flash plugin in about: plugins. I have purged and reinstalled the package several times. The package is installed and the file is located at:saracen@study:~$ locate libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so
I also get the following output when I launch firefox from the command line:LoadPlugin: failed to initialize shared library /usr/lib/flashplugin-nonfree/libflashplayer.so [libssl3.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library /usr/lib/flashplugin-nonfree/libflashplayer.so [libssl3.so: cannot open shared object file: No such file or directory]
Any help would be much appreciated.

Are you using the 64bit version of Ubuntu? You're missing some libraries.

Please post the output of these commands:
$ sudo updatedb
$ locate libssl3.so
$ dpkg -S libssl3.so

negativ
August 30th, 2008, 05:02 PM
NOTE: These instructions can be considered as a replacement for Step A, B and C of the main guide (http://ubuntuforums.org/showthread.php?t=789578). I don't want to deal with the equalizer (Step D) in these packages, as I'm aiming towards getting things fixed in Hardy/Intrepid, rather than introducing new features.

=D>=D>=D>

This seems to have solved the problem for me, at least so far...

Thank you for your contribution!

ubuntubrian
August 30th, 2008, 05:11 PM
Thanks for all the hard work Psyke83-you have some grit!
I'm on a TiBook PowerPc and up until I installed some kernel updates and a bunch of KDE updates I had sound working perfectly, across the board in every app. This was after upgrading to Hardy, having no sound and following the instructions on:https://wiki.ubuntu.com/PulseAudio with no luck. I deleted my .asoundrc file and logged out and in and I had the perfect sound!
After the updates-no sound except for system sounds, beeps, etc and the login sound usually works. Trying to play a file in any app fails after 1 or 2 seconds. Testing sound in sound preferences (set on autodetect for everything) gives the same result.
I followed your first fix with no change, tried the second but your PPAs don't download (PPC issue?). I deleted the .asoundrc file with no change.
Now logging out and in only sometimes produces the login sound but rebooting does.
After rebooting I can test sounds in preferences>sounds and I get sound for a few seconds and then nothing.
this is terribly frustrating as sound was perfect but for no goo reason that I can discern,
Right now I have deleted .asoundrc, reinstalled all the pulseaudio pkgs I could find and still no luck.
I've set pulseaudio and unset it as per your commands.

psyke83
August 30th, 2008, 05:23 PM
Thanks for all the hard work Psyke83-you have some grit!
I'm on a TiBook PowerPc and up until I installed some kernel updates and a bunch of KDE updates I had sound working perfectly, across the board in every app. This was after upgrading to Hardy, having no sound and following the instructions on:https://wiki.ubuntu.com/PulseAudio with no luck. I deleted my .asoundrc file and logged out and in and I had the perfect sound!
After the updates-no sound except for system sounds, beeps, etc and the login sound usually works. Trying to play a file in any app fails after 1 or 2 seconds. Testing sound in sound preferences (set on autodetect for everything) gives the same result.
I followed your first fix with no change, tried the second but your PPAs don't download (PPC issue?). I deleted the .asoundrc file with no change.
Now logging out and in only sometimes produces the login sound but rebooting does.
After rebooting I can test sounds in preferences>sounds and I get sound for a few seconds and then nothing.
this is terribly frustrating as sound was perfect but for no goo reason that I can discern,
Right now I have deleted .asoundrc, reinstalled all the pulseaudio pkgs I could find and still no luck.
I've set pulseaudio and unset it as per your commands.

To start, don't follow the instructions on the wiki page - it tells you to enable the networking options, which can cause problems, and the "libflashsupport" package is obsolete with Flash 10.

Delete your PulseAudio configuration:

$ rm -r ~/.pulse/*

Then, look at Appendix B of this guide (at the first post) and follow the instructions to post a verbose log. Also look at the instructions in that section on how to determine if applications are really using PulseAudio.

ubuntubrian
August 30th, 2008, 08:43 PM
thanks for the prompt reply!
OK, I did not follow the Wiki instructions for the latest attempts in my post.
I checked Pulse Volume control and tried to play a file in Totem, Exaile and MPlayer. Both Exaile and Totem showed up as playback streams, played for 1 second and then no audio. this is not in the list of 3 possibilities in Appendix B.
Here is the pulse verbose log:

pulseaudio -k; sleep 4; pulseaudio -vv
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.platform_snd_powermac_sound_ card_0_alsa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0" with sample spec "s16be 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0.monitor" with sample spec "s16be 2ch 44100Hz"
I: module-alsa-sink.c: Using 4 fragments of size 4408 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.platform_snd_powermac_sound_ card_0_alsa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.platform_snd_powermac_sound _card_0_alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture".
W: alsa-util.c: Cannot find fallback mixer control "Mic".
I: source.c: Created source 1 "alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0" with sample spec "s16be 2ch 44100Hz"
I: module-alsa-source.c: Using 4 fragments of size 4408 bytes.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.platform_snd_powermac_sound _card_0_alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/platform_snd_powermac_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #5; argument: "").
D: module-default-device-restore.c: Restored default sink 'alsa_output.platform_snd_powermac_sound_card_0_al sa_playback_0'.
D: core-subscribe.c: dropped redundant event.
D: module-default-device-restore.c: Restored default source 'alsa_input.platform_snd_powermac_sound_card_0_als a_capture_0'.
I: module.c: Loaded "module-default-device-restore" (index: #6; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #7; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #8; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: module-gconf.c: Loading module 'module-rtp-send' with args 'source=@DEFAULT_MONITOR@ loop=0' due to GConf configuration.
D: module-suspend-on-idle.c: Source alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0.monitor becomes busy.
I: source-output.c: Created output 0 "RTP Monitor Stream" on alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0.monitor with sample spec s16be 2ch 44100Hz and channel map front-left,front-right
D: memblockq.c: memblockq requested: maxlength=174080, tlength=174080, base=4, prebuf=1, minreq=0
D: memblockq.c: memblockq sanitized: maxlength=174080, tlength=174080, base=4, prebuf=4, minreq=4
I: module-rtp-send.c: RTP stream initialized with mtu 1280 on 224.0.0.56:46178, SSRC=0x6a9cfa0e, payload=10, initial sequence #20789
I: module-rtp-send.c: SDP-Data:
I: module-rtp-send.c: v=0
I: module-rtp-send.c: o=brianokeefe 3429131386 0 IN IP4 192.168.0.102
I: module-rtp-send.c: s=PulseAudio RTP Stream on localhost.localdomain
I: module-rtp-send.c: c=IN IP4 224.0.0.56
I: module-rtp-send.c: t=3429131386 0
I: module-rtp-send.c: a=recvonly
I: module-rtp-send.c: m=audio 46178 RTP/AVP 10
I: module-rtp-send.c: a=rtpmap:10 L16/44100/2
I: module-rtp-send.c: a=type:broadcast
I: module-rtp-send.c: EOF
I: module.c: Loaded "module-rtp-send" (index: #9; argument: "source=@DEFAULT_MONITOR@ loop=0").
D: module-gconf.c: Loading module 'module-rtp-recv' with args '' due to GConf configuration.
I: module.c: Loaded "module-rtp-recv" (index: #10; argument: "").
D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: protocol-native.c: using already loaded auth cookie.
I: protocol-native.c: using already loaded auth cookie.
I: module.c: Loaded "module-native-protocol-tcp" (index: #11; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: module.c: Loaded "module-esound-protocol-tcp" (index: #12; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-zeroconf-discover' with args '' due to GConf configuration.
I: module.c: Loaded "module-zeroconf-discover" (index: #13; argument: "").
I: module.c: Loaded "module-gconf" (index: #14; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #15; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...
D: module-rtp-recv.c: Checking for dead streams ...


this is different than what I got in a previous check but that was before I followed the short instructions you posted here:http://ubuntuforums.org/showthread.php?t=866965&page=6
That attempt gave me:
pulseaudio -k && pulseaudio -vv
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.platform_snd_powermac_sound_ card_0_alsa_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: Couldn't open PCM device front:0: Device or resource busy
D: alsa-util.c: Trying surround40:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround40:0
I: alsa-util.c: Couldn't open PCM device surround40:0: Invalid argument
D: alsa-util.c: Trying surround41:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround41:0
I: alsa-util.c: Couldn't open PCM device surround41:0: Invalid argument
D: alsa-util.c: Trying surround50:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround50:0
I: alsa-util.c: Couldn't open PCM device surround50:0: Invalid argument
D: alsa-util.c: Trying surround51:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround51:0
I: alsa-util.c: Couldn't open PCM device surround51:0: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.platform_snd_powermac_sound_ card_0_alsa_playback_0"): initialization failed.
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/platform_snd_powermac_sound_card_0_alsa_playback_0
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.platform_snd_powermac_sound _card_0_alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture".
W: alsa-util.c: Cannot find fallback mixer control "Mic".
I: source.c: Created source 0 "alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0" with sample spec "s16be 2ch 44100Hz"
I: module-alsa-source.c: Using 4 fragments of size 4408 bytes.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module.c: Loaded "module-alsa-source" (index: #0; argument: "device_id=0 source_name=alsa_input.platform_snd_powermac_sound _card_0_alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/platform_snd_powermac_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 1 modules.
I: module.c: Loaded "module-hal-detect" (index: #1; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #2; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
I: module-volume-restore.c: starting with empty ruleset.
I: module.c: Loaded "module-volume-restore" (index: #4; argument: "").
D: module-default-device-restore.c: No previous default sink setting, ignoring.
D: module-default-device-restore.c: No previous default source setting, ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #5; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #6; argument: "").
D: module-suspend-on-idle.c: Source alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #7; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: module-gconf.c: Loading module 'module-rtp-send' with args 'source=@DEFAULT_MONITOR@ loop=0' due to GConf configuration.
E: module-rtp-send.c: Source does not exist.
E: module.c: Failed to load module "module-rtp-send" (argument: "source=@DEFAULT_MONITOR@ loop=0"): initialization failed.
E: module-gconf.c: pa_module_load() failed
D: module-gconf.c: Loading module 'module-rtp-recv' with args '' due to GConf configuration.
I: module.c: Loaded "module-rtp-recv" (index: #8; argument: "").
D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: protocol-native.c: using already loaded auth cookie.
I: protocol-native.c: using already loaded auth cookie.
I: module.c: Loaded "module-native-protocol-tcp" (index: #9; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: module.c: Loaded "module-esound-protocol-tcp" (index: #10; argument: "auth-anonymous=1").
D: module-gconf.c: Loading module 'module-zeroconf-discover' with args '' due to GConf configuration.
I: module.c: Loaded "module-zeroconf-discover" (index: #11; argument: "").
I: module.c: Loaded "module-gconf" (index: #12; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #13; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
D: module-rtp-recv.c: Checking for dead streams ...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
D: module-rtp-recv.c: Checking for dead streams ...
I: client.c: Created 0 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 0 changed name from "Native client (UNIX socket client)" to "totem-audio-preview"
I: client.c: Freed 0 "totem-audio-preview"
I: protocol-native.c: connection died.
I: client.c: Created 1 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 1 changed name from "Native client (UNIX socket client)" to "totem-audio-preview"
D: sink-input.c: Assertion 'data->sink' failed at pulsecore/sink-input.c:110, function pa_sink_input_new.
I: client.c: Freed 1 "totem-audio-preview"
I: protocol-native.c: connection died.
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
D: module-rtp-recv.c: Checking for dead streams ...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
I: client.c: Created 2 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 2 changed name from "Native client (UNIX socket client)" to "totem-audio-preview"
I: client.c: Freed 2 "totem-audio-preview"
I: protocol-native.c: connection died.
I: client.c: Created 3 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 3 changed name from "Native client (UNIX socket client)" to "totem-audio-preview"
D: sink-input.c: Assertion 'data->sink' failed at pulsecore/sink-input.c:110, function pa_sink_input_new.
I: client.c: Freed 3 "totem-audio-preview"
I: protocol-native.c: connection died.
D: module-rtp-recv.c: Checking for dead streams ...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/pmu_battery_0_0, member=PropertyModified
I: main.c: Got signal SIGINT.
I: main.c: Exiting.
I: main.c: Daemon shutdown initiated.
I: module.c: Unloading "module-alsa-source" (index: #0).
D: module-rescue-streams.c: No source outputs to move away.
D: module-alsa-source.c: Thread shutting down
I: source.c: Freeing source 0 "alsa_input.platform_snd_powermac_sound_card_0_alsa _capture_0"
I: module.c: Unloaded "module-alsa-source" (index: #0).
I: module.c: Unloading "module-hal-detect" (index: #1).
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus.Local, path=/org/freedesktop/DBus/Local, member=Disconnected
I: module.c: Unloaded "module-hal-detect" (index: #1).
I: module.c: Unloading "module-esound-protocol-unix" (index: #2).
I: module.c: Unloaded "module-esound-protocol-unix" (index: #2).
I: module.c: Unloading "module-native-protocol-unix" (index: #3).
I: module.c: Unloaded "module-native-protocol-unix" (index: #3).
I: module.c: Unloading "module-volume-restore" (index: #4).
I: module.c: Unloaded "module-volume-restore" (index: #4).
I: module.c: Unloading "module-default-device-restore" (index: #5).
I: module.c: Unloaded "module-default-device-restore" (index: #5).
I: module.c: Unloading "module-rescue-streams" (index: #6).
I: module.c: Unloaded "module-rescue-streams" (index: #6).
I: module.c: Unloading "module-suspend-on-idle" (index: #7).
I: module.c: Unloaded "module-suspend-on-idle" (index: #7).
I: module.c: Unloading "module-rtp-recv" (index: #8).
I: module.c: Unloaded "module-rtp-recv" (index: #8).
I: module.c: Unloading "module-native-protocol-tcp" (index: #9).
I: module.c: Unloaded "module-native-protocol-tcp" (index: #9).
I: module.c: Unloading "module-esound-protocol-tcp" (index: #10).
I: module.c: Unloaded "module-esound-protocol-tcp" (index: #10).
I: module.c: Unloading "module-zeroconf-discover" (index: #11).
I: module.c: Unloaded "module-zeroconf-discover" (index: #11).
I: module.c: Unloading "module-gconf" (index: #12).
D: module-gconf.c: Unloading module #11
D: module-gconf.c: Unloading module #9
D: module-gconf.c: Unloading module #10
D: module-gconf.c: Unloading module #8
I: module.c: Unloaded "module-gconf" (index: #12).
I: module.c: Unloading "module-x11-publish" (index: #13).
I: module.c: Unloaded "module-x11-publish" (index: #13).
I: main.c: Daemon terminated.

that resulted in some errors as you can see.

thanks again and I love my homeland of Erin!

ubuntubrian
August 30th, 2008, 08:49 PM
BTW, immediately after posting last I hovered the cursor over a sound file on my desktop while terminal was open with the posted output. Here is what the log shows for that brief second of play:
I: client.c: Created 1 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 1 changed name from "Native client (UNIX socket client)" to "totem-audio-preview"
I: client.c: Freed 1 "totem-audio-preview"
I: protocol-native.c: connection died.
I: client.c: Created 2 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 2 changed name from "Native client (UNIX socket client)" to "totem-audio-preview"
I: module-volume-restore.c: Restoring volume for <pulsecore/protocol-native.c$totem-audio-preview>
I: module-alsa-sink.c: Trying resume...
I: module-alsa-sink.c: Resumed successfully...
D: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 becomes idle.
D: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 becomes busy.
I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.
I: resampler.c: Using resampler 'copy'
I: resampler.c: Using float32be as working format.
I: sink-input.c: Created input 0 "Playback Stream" on alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 with sample spec float32be 2ch 44100Hz and channel map front-left,front-right
D: memblock.c: Memory block too large for pool: 17640 > 16376
D: memblockq.c: memblockq requested: maxlength=141120, tlength=70560, base=8, prebuf=67032, minreq=3528
D: memblockq.c: memblockq sanitized: maxlength=141120, tlength=70560, base=8, prebuf=67032, minreq=3528
I: module-alsa-sink.c: Starting playback.
D: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 becomes idle.
D: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 becomes idle.
I: sink-input.c: Freeing output 0 "Playback Stream"
I: client.c: Freed 2 "totem-audio-preview"
I: protocol-native.c: connection died.
I: module-suspend-on-idle.c: Sink alsa_output.platform_snd_powermac_sound_card_0_als a_playback_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
D: module-rtp-recv.c: Checking for dead streams ..

Perhaps this is helpful?

p.i.m.p
August 31st, 2008, 01:52 AM
Thank you so much! This fixed the annoying flash bug in my Ubuntu. I was almost ready to throw my laptop away in frustration

sym_zo
August 31st, 2008, 07:08 AM
Are you using the 64bit version of Ubuntu? You're missing some libraries.

Please post the output of these commands:
$ sudo updatedb
$ locate libssl3.so
$ dpkg -S libssl3.so

Ok, I actually have the same libssl3.so problem as saracen. (and I have a 32bit install)

$ locate libssl3.so
/usr/lib/libssl3.so.0d
/usr/lib/libssl3.so.1d
/usr/lib/firefox/libssl3.so
/usr/lib/kompozer/libssl3.so
/usr/lib/thunderbird/libssl3.so


$ dpkg -S libssl3.so
libnss3-0d: /usr/lib/libssl3.so.0d
libnss3-1d: /usr/lib/libssl3.so.1d
firefox-2: /usr/lib/firefox/libssl3.so
thunderbird: /usr/lib/thunderbird/libssl3.so
kompozer: /usr/lib/kompozer/libssl3.so


Now, the weird part is that this libssl3.so is part of firefox-2 package...

Would it do any good if I removed firefox-2 ?

psyke83
August 31st, 2008, 09:38 AM
Ok, I actually have the same libssl3.so problem as saracen. (and I have a 32bit install)

$ locate libssl3.so
/usr/lib/libssl3.so.0d
/usr/lib/libssl3.so.1d
/usr/lib/firefox/libssl3.so
/usr/lib/kompozer/libssl3.so
/usr/lib/thunderbird/libssl3.so


$ dpkg -S libssl3.so
libnss3-0d: /usr/lib/libssl3.so.0d
libnss3-1d: /usr/lib/libssl3.so.1d
firefox-2: /usr/lib/firefox/libssl3.so
thunderbird: /usr/lib/thunderbird/libssl3.so
kompozer: /usr/lib/kompozer/libssl3.so


Now, the weird part is that this libssl3.so is part of firefox-2 package...

Would it do any good if I removed firefox-2 ?

Yes, it's a symlink problem. You need to remove the firefox-2 package and reinstall the libnss3-1d package. This is how it should be:

conn@dimension:~$ dpkg -S libssl3
libnss3-1d: /usr/lib/libssl3.so.1d
libnss3-1d: /usr/lib/libssl3.so
conn@dimension:~$ locate libssl3.so
/usr/lib/libssl3.so
/usr/lib/libssl3.so.1d
conn@dimension:~$ ls -l /usr/lib/libssl3.so*
lrwxrwxrwx 1 root root 13 2008-08-31 14:42 /usr/lib/libssl3.so -> libssl3.so.1d
-rw-r--r-- 1 root root 191428 2008-08-12 16:51 /usr/lib/libssl3.so.1d

rockin_goliath
August 31st, 2008, 01:11 PM
Does anyone know if these fixes will actually make it into Intrepid?

ubuntubrian
August 31st, 2008, 08:05 PM
So right now sound has returned-go figure! I suspended my laptop and upon waking the touchpad was working but no sound. I decided to check volume control-all OK. I checked alsamixer, strangely only the master channel appeared though in volume control I have many channels.
I checked pulseaudio and it reported "connection refused".
I went back into sound preferences and checked enable esd. Pulse then connected and I tested sound in preferences and all the tests created sound that didn't cut out, though it popped a bit.
The final test was an .ogg file on my desktop that played fine.
My ~/.asoundrc file is intact.
So it seems as if things are back tonormal-sort of. I noticed this after I first upgraded to Hardy. It's as if the software settles in and starts working better.
BTW, in all my other efforts pulseaudio was connected, esd enabled, .asoundrc in place, etc. Go figure!

ubuntubrian
August 31st, 2008, 08:08 PM
So right now sound has returned-go figure! I suspended my laptop and upon waking the touchpad was working but no sound. I decided to check volume control-all OK. I checked alsamixer, strangely only the master channel appeared though in volume control I have many channels.
I checked pulseaudio and it reported "connection refused".
I went back into sound preferences and checked enable esd. Pulse then connected and I tested sound in preferences and all the tests created sound that didn't cut out, though it popped a bit.
The final test was an .ogg file on my desktop that played fine.
My ~/.asoundrc file is intact.
So it seems as if things are back tonormal-sort of. I noticed this after I first upgraded to Hardy. It's as if the software settles in and starts working better.
BTW, in all my other efforts pulseaudio was connected, esd enabled, .asoundrc in place, etc. Go figure!
Oh, I did this too, building and installing new alsamodules, and maybe it was the fix?
http://ubuntuforums.org/showthread.php?t=738275

d4v1dv00
September 1st, 2008, 01:39 AM
However after i done this my sound system only works under OSS and my new flash 10RC is broken!

UPDATED: I found out that flash 10RC broken cause by the latest pulseaudio package, in order to retain flash 10RC i dropped pulseaudio and revert back to esound.

jaklumen
September 1st, 2008, 06:02 AM
Can you clarify something for me, please? When you say "everything else will not play audio", do you mean that everything else will not play audio only when Audacious is running?

I'm quite lost around here, hence my incredibly late reply.

To clarify: even with your latest fixes (15/08/08), I cannot get *any* sound output unless all playback options in Sound Preferences are set to OSS, and *not* Autodetect or PulseAudio.

I'm using an Audigy 2 SE card and onboard Gigabyte motherboard sound (ALi 5455, uses the RealTek Audio97 driver).

sym_zo
September 1st, 2008, 02:04 PM
Yes, it's a symlink problem. You need to remove the firefox-2 package and reinstall the libnss3-1d package. This is how it should be:

conn@dimension:~$ dpkg -S libssl3
libnss3-1d: /usr/lib/libssl3.so.1d
libnss3-1d: /usr/lib/libssl3.so
conn@dimension:~$ locate libssl3.so
/usr/lib/libssl3.so
/usr/lib/libssl3.so.1d
conn@dimension:~$ ls -l /usr/lib/libssl3.so*
lrwxrwxrwx 1 root root 13 2008-08-31 14:42 /usr/lib/libssl3.so -> libssl3.so.1d
-rw-r--r-- 1 root root 191428 2008-08-12 16:51 /usr/lib/libssl3.so.1d



It worked! The package was broken so I had to make the symlinks myself. Additionally, I had to symlink /usr/lib/libnss3.so -> libnss3.so.1d

Thank you VERY MUCH for the help. I now have flash with sound and no crash. Yooupee :-)

manlypain
September 2nd, 2008, 05:37 PM
If you followed post #472:

To disable PulseAudio:
$ asoundconf unset-pulseaudio
$ pulseaudio -k




Does this make pulse audio shut off permanently? I mean even after a reboot or is it just off for that login.

Orfintain
September 3rd, 2008, 02:31 AM
I finally got around to setting up my PPA, and I have uploaded the newest release candidate of Flash 10, as well as ALSA & PulseAudio packages backported from Intrepid (with added tweaks and fixes from the guide included). I invite everyone to thoroughly test these packages!

NOTE: These instructions can be considered as a replacement for Step A, B and C of the main guide (http://ubuntuforums.org/showthread.php?t=789578). I don't want to deal with the equalizer (Step D) in these packages, as I'm aiming towards getting things fixed in Hardy/Intrepid, rather than introducing new features.

1a. 64bit/amd64 users only: Please see the following thread and install GetLibs (http://ubuntuforums.org/showthread.php?t=474790).

When you have GetLibs installed, install the necessary libraries as follows:
$ getlibs -p libnss3-1d
$ getlibs -p libnspr4-0d
$ getlibs -p libcurl3
$ getlibs -p libasound2-plugins

1b. 32bit/i386 users only: Remove the obsolete nspluginwrapper package:
$ sudo apt-get remove nspluginwrapper

2. Remove obsolete packages and configuration files:
$ sudo apt-get remove libflashsupport
$ sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf

3. Ensure you have the necessary packages installed:
$ sudo apt-get install padevchooser libao-pulse libasound2-plugins libsdl1.2debian-pulseaudio

4. Add my PPA to your sources.list:$ gksudo gedit /etc/apt/sources.list

Add the following lines to the end, and save:
# PulseAudio Fixes - http://ubuntuforums.org/showthread.php?p=5587712
deb http://ppa.launchpad.net/psyke83/ubuntu hardy main
deb-src http://ppa.launchpad.net/psyke83/ubuntu hardy main

5. Update your repository lists, then upgrade your system (answer yes to install packages that cannot be validated):
$ sudo apt-get update
$ sudo apt-get upgrade

6. Set PulseAudio as the default ALSA device and enable the correct driver for libao applications:
$ asoundconf set-pulseaudio
$ echo "default_driver=pulse" >~/.libao

7. Go to System/Preferences/Sound. Ensure all the "Sound Playback" entries are set to their default setting of "Autodetect", otherwise you may experience difficulties.

After logging out and back in, everything should work correctly! These packages will install PulseAudio complete with tweaks to reduce stuttering/CPU usage, and Flash 10 (release candidate). Finally, Flash & PulseAudio work correctly without crashes!

Any feedback on the packages would be appreciated (it's my first attempt, so there could be issues). Thanks.

Changelog
15/08/08 - support added for 64bit users, please test!
17/08/08 - updated instructions to ensure necessary packages are installed.

Flash 9 is working better now (got bad for a bit after 10 was released (i think)) thanks

zelrikriando
September 4th, 2008, 11:00 PM
Update : no more sound on youtube/rythmbox/pidgin... vlc is still working

I think an update messed it up

Anyone has an idea.?

demios
September 5th, 2008, 08:17 PM
The packages differ from the main guide as I appled the tweaks to the system-wide configuration in /etc/pulse. Therefore you can either edit the files in /etc/pulse/, or make a copy of the files to ~/.pulse/ , then begin editing.

Ok, so I fiddled with the numbers for a bit within a 2-13 range, with no significant change. I'm testing in Ardour and Hydrogen, and there is still a stutter. I had copied the daemon.conf file into ~/.pulse because I couldn't edit it in /etc/pulse

I'm probably doing something wrong though -- where should I start troubleshooting?

olavjunior
September 7th, 2008, 07:57 AM
Tying to use ekiga or skype gives me very low recording volume on mic, although the volume control is set to max. Can this be because alsa is set to low? I can't seem to find the old volume-control in systray. Is it gone due to these changes?

EDIT: Installed gnome-alsamixer, and was able to adjust the alsa recording-volume. So now I guess it's kinda better, but still, I would like to be able to tweak it even louder

WRStone
September 8th, 2008, 03:54 AM
After logging out and back in, everything should work correctly! These packages will install PulseAudio complete with tweaks to reduce stuttering/CPU usage, and Flash 10 (release candidate). Finally, Flash & PulseAudio work correctly without crashes!

One note, here:

The Flash 10 RC in your repository has a bug that won't allow YouTube videos to play in high quality. It will, however, play them in standard quality. The behavior is mentioned here:

http://blogs.adobe.com/penguin.swf/2008/08/10rc1.html

Specifically:

Youtube "High Quality" videos display "We're sorry, this video is no longer available" for all high quality videos. Clicking the "watch in standard quality" link will play the standard quality video.

This is the first version of the Flash player I've seen do this.

[ I checked this out and was able to reproduce it. Thing is, it also happens on other platforms. I think the high quality video simply is no longer available. -Mike M. ]

I initially thought the same, but I downgraded back to 9r48 and all the videos (that previously had the problem) will now play in high quality.

I can confirm this behavior. With your fixes and Flash 9, HQ videos will play, but without sound. Using the Flash 10 RC from your repo, sound is fine, but HQ is unavailable.

Obviously, this must be an Adobe thing, so there isn't much you can do about it, but if there's some work-around that anyone's found, it would be nice.

Awesome job, by the way. I hope it soon becomes standard with the distro.

Bill Stone

Kevanx
September 9th, 2008, 10:59 AM
Psyke83 - thank you so much for this incredible effort. Whatever they're paying you, it's not enough ;-)

The fix worked fine with me, running 64-bit, in the end. The skype suggestion worked fine, and I didn't even need to apply the stuttering fix.

At first, the install worked perfectly, except installing libnss3-1d, which got a strange error message. As a result of this (I think), I had the issue seen in post #474 (http://ubuntuforums.org/showpost.php?p=5588594&postcount=474), and so I tried going back through the updated guide and undoing each step (I hadn't seen the removal instructions in the first post). Then I went back through the guide, with no problems whatsoever.

One weird thing - for some inexplicable reason, my settings for the "front" value in the audio panel spontaneously lowered itself after a reboot. This led to very low speaker levels, which other users have complained about. Because most of the suggestions I found were to adjust alsamixer MASTER, or PCM levels to fix this issue (which obviously weren't the problem), I didn't notice it, and was pulling my hair out about what had gone wrong with the fix. Hopefully that's a solution for someone else as well.

psyke83
September 10th, 2008, 10:58 PM
Tying to use ekiga or skype gives me very low recording volume on mic, although the volume control is set to max. Can this be because alsa is set to low? I can't seem to find the old volume-control in systray. Is it gone due to these changes?

EDIT: Installed gnome-alsamixer, and was able to adjust the alsa recording-volume. So now I guess it's kinda better, but still, I would like to be able to tweak it even louder

You need to look at the mixer settings for ALSA *and* PulseAudio (i.e. gnome-volume-control/alsamixer *and* pavucontrol). Also, you may need to set "mic boost" via the ALSA mixer settings.

Bernard_ivo
September 11th, 2008, 06:52 AM
Hello psyke83,
I did have problems playing amarok and getting sound on Skype at the same time. I did part A of the guide and some other problems occurred. I can't get any sound on Skype and it freezes - now I can select pulse for ringing and and Sound out, and I tried all possibilities for Sound In:
HDA Intel (hw:Intel,0)
HDA Intel (plughw:Intel,0)
HDA Intel (hw:intel,1)
HDA Intel (plughw:intel,1)
pulse
equalized
eqalizer

When I try Skype test call it plays short (not full sound) Then displays Problem with audio capture and then Skype hangs so I have to kill it from the System Control. I tried with all Soind In possibilities, even reinstalling Skype. Any suggestions?

My system:
Ubuntu 8.04 Hardy
Kernel 2.6.24.19

IBM T61
Skype 2.0.0.72
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080718 Ubuntu/8.04 (hardy) Firefox/2.0.0.16

psyke83
September 11th, 2008, 06:55 AM
When I try Skype test call it plays short (not full sound) Then displays Problem with audio capture and then Skype hangs so I have to kill it from the System Control. I tried with all Soind In possibilities, even reinstalling Skype. Any suggestions?

Hardy's version of alsa-plugins do not work correctly with Skype. You'll need to test the packages in my PPA (linked at the beginning of post #1).

Bernard_ivo
September 11th, 2008, 07:55 AM
Thanks,
Finally it worked. However Sound in Skype is scattered (stuttered) now. Should I do Step C in your previous post. When I used to have sound before doing Step A I had better sound in Skype. However currently it mixer is working, but the sound in Skype is stuttered.

Cheers
Ivo

thedaylights
September 11th, 2008, 10:16 AM
After installing your packages using the updated PPA, things worked well for most audio playback. Except that Skype gives me an error message when I make or accept a call "Problem with audio playback" - and there is no sound. In sound preferences, I've set all Sound Playback to autodetect. I set microphone to PulseAudio.

Bernard_ivo
September 11th, 2008, 11:49 AM
Hi,
You may have to to this from http://ubuntuforums.org/showthread.php?t=789578

Appendix A: General Tips
Certain applications will not work correctly even with these fixes, but there are workarounds available:

1. Skype (available in the Medibuntu repository): some special configuration is required. Open Skype's Options, then go to Sound Devices. You need to set "Sound Out" and "Ringing" to the "pulse" device, and set "Sound In" to the hardware definition of your microphone. For example, my laptop's microphone is defined as "plughw:I82801DBICH4,0". Due to a bug in Skype's ALSA support, you must also follow Part C of this guide to prevent stuttering.

Cheers

ubuntubrian
September 11th, 2008, 12:10 PM
I tried using my Plantronics USB headset yesterday and nothing worked. No input or output. Before getting pulseaudio to work (and remember that I had NO sound after upgrading to Hardy) and running Dapper, my headset showed up in the driver options in Preferences>Sound but it is no longer there. It doesn't show up in Pulseaudio settings either.
I ran the HardInfo from the System profiler when I had the headset plugged in and it shows up:

Input Devices
Macintosh mouse button emulation
ADB keyboard
ADB Powerbook buttons
ADB mouse
PMU
PowerMac Beep
Logitech USB-PS/2 Optical Mouse
Plantronics Plantronics Headset

Any ideas on how to get my headset recognized?

Also, I get an error:
Your audio capture settings are incorrect. Please correct them in the multimedia settings

when I try to run sound capture.I can get the capture to work for a few seconds and then it freezes, regardless of the audio type I select.
I use to be able to record with my headset also (practicing speeches, etc.)

Thanks!

Paco758
September 12th, 2008, 07:54 AM
Thanks for the info. I had been fiddling with this stuff for a long time and running in circles. J

raulih
September 13th, 2008, 11:35 AM
This didn't work for me. I would like to revert back my ALSA soundcard as a default output (Terratec EWS88MT). I have music players (Rhytmbox, Amarok etc.) working, but no sound from games at all.

I have tried

asoundconf unset-pulseaudio

and

asoundconf set-default-card EWS88MT

The first line possibly gave sounds partially back to EWS88MT. Latter didn't help.

psyke83
September 13th, 2008, 12:00 PM
This didn't work for me. I would like to revert back my ALSA soundcard as a default output (Terratec EWS88MT). I have music players (Rhytmbox, Amarok etc.) working, but no sound from games at all.

I have tried

asoundconf unset-pulseaudio

and

asoundconf set-default-card EWS88MT

The first line possibly gave sounds partially back to EWS88MT. Latter didn't help.

You're not giving enough information for me to realistically help.

If you followed the "manual" steps, the guide has an appendix detailing exactly how to revert changes.

If you used my PPA, you can manually downgrade all the PulseAudio packages to Hardy's version, then follow the same steps as in Appendix D (ignoring errors about missing backup files).

By the way, the situation you describe (media players working, games not working) is the default behaviour of a default Hardy installation, so don't expect everything to work properly after reverting changes.

raulih
September 13th, 2008, 04:57 PM
You're not giving enough information for me to realistically help.

If you followed the "manual" steps, the guide has an appendix detailing exactly how to revert changes.

If you used my PPA, you can manually downgrade all the PulseAudio packages to Hardy's version, then follow the same steps as in Appendix D (ignoring errors about missing backup files).

By the way, the situation you describe (media players working, games not working) is the default behaviour of a default Hardy installation, so don't expect everything to work properly after reverting changes.

Thanks, I already reverted other packages, but this line was needed

sudo apt-get install flashplugin-nonfree/hardy libsdl1.2debian-alsa

and then again

asoundconf set-default-card EWS88MT

MrSheffield
September 14th, 2008, 04:09 PM
Hello,

thanks for your hard work! I am testing your current packages. The sound works fine when using Rhythmbox or Flash.

I have a problem when trying to listen to both. If I first play a flash movie and then start a music file in rhythmbox, rhythmbox won't play it and pulseaudio says:

E: module-alsa-sink.c: Error opening PCM device front:0: Device or resource busy

If I play a song in rhythmbox and then start a flash movie, it stops after 2 seconds - and firefox crashes after closing this tab...
Playing several flash movies simultaneously seems to work, though.

This wouldn't be a big problem, since I'm seldomly listening to several audio sources simultaneously ;) The problem is that both programs block the audio channel even if the player is paused. So I have to close rhythmbox / the flash tab in firefox to listen to the other program.

Do I have to set some preferences or is this a general problem/bug?

WRStone
September 15th, 2008, 09:42 PM
One note, here:

The Flash 10 RC in your repository has a bug that won't allow YouTube videos to play in high quality. It will, however, play them in standard quality.

This evening's update to 10.0.12.10ubuntu-ppa1 resolved this problem. All is well again on YouTube and I can get the most out of HotForWords' videos. :D

Bill Stone

shane19174
September 16th, 2008, 02:48 AM
Hi, thanks for your efforts here and on the corresponding Intrepid thread. I'm looking forward to solving my audio problems with one of these guides, but before I try (and screw everything up...), maybe you can tell me which to follow. I'm running Hardy (32 bit), but I was having lots of system freezes so updated the kernel to the current Ibex version (2.6.27-3). This solved the freezes, but introduced some other problems (as described here: http://ubuntuforums.org/showthread.php?t=920729). Perhaps the most serious problem concerns audio, and I think your guide might solve it.

But should I follow the Hardy guide (because I'm running Hardy) or the Intrepid guide (because I'm using Intrepid's kernel)?

Any help would be greatly appreciated,
Shane

juanmanuelagueda
September 16th, 2008, 03:50 AM
Hi! first of all, great work! Thanks!

I have a couple of little problem after following this how-to:

First, when I press the volume up or volume down keys from my keyboard, I see the gnome OSD as always, but the volume is not changed at all! If I use padevchooser, I'm able to change volume globally and per application (nice!). Any idea to solve this problem?. Multimedia keys are very handy sometimes!

And second: when I play movie clips with vlc the sound from time to timestutters. It hapends using pulseaudio and alsa plugin, but this doesn´t hapend with mplayer.

Thanks in advance!

AaronMT
September 16th, 2008, 10:37 PM
Hi All,

Recently,

Pidgin now crashes when audio is played.

If I try to change my sound preferences it locks up.

How can I resolve?

Thanks in advance,

Running : Pidgin 2.5.1

AaronMT
September 16th, 2008, 10:41 PM
Verbose pulseaudio output

I: sink-input.c: Freeing output 0 "Playback Stream"
I: client.c: Freed 0 "Pidgin"
I: protocol-native.c: connection died.
I: module-suspend-on-idle.c: Sink alsa_output.pci_1002_4383_sound_card_0_alsa_playba ck_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...

shane19174
September 17th, 2008, 03:33 AM
This guide has helped me to _almost_ solve my problem, but...

To get sound working in all programs, I have to disable "software sound mixing (ESD)" under System -> Preferences -> Sound. The side effect is that system sounds no longer work (login, select check box, error messages, etc.).

Can anyone help me have my cake and eat it too?

Shane

shane19174
September 17th, 2008, 04:54 AM
My problems are solved! The last steps were provided by markbuntu's guide here (http://ubuntuforums.org/showthread.php?t=843012). After following his instructions, I got system sounds and programs with audio. The last holdouts (like the aforementioned Gridwars 2) regain sound by starting them with "padsp" (no quotes) appended before the launch name.

If you're still having problems, do check out markbuntu's tutorial/checklist (after following psyke83's great guide).

Shane

pejobe
September 17th, 2008, 05:24 AM
I use 64bit and followed guide from 140808:
Results:

C. The application fails to play audio and does not list an entry in PulseAudio Volume Control.

-Sound Preferences crash when running test unable to log out properly afterwards. Need to force quit.
-Firefox crash or go down to a very slow mode when visiting audio and video sites...
- Do not get any Pulse Audio under Applications/Sound&Video
-Rhythmbox crash...

verbose autput from
$ pulseaudio -k; sleep 4; pulseaudio -vv

~$ pulseaudio -k; sleep 4; pulseaudio -vv
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
E: shm.c: Invalid shared memory segment size
E: shm.c: Invalid shared memory segment size
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_playback_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_8086_284b_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 4 fragments of size 4352 bytes.
I: alsa-util.c: ALSA device lacks independant volume controls for each channel, falling back to software volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_8086_284b_sound_card_0_a lsa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_8086_284b_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_8086_284b_sound_card_0_alsa_capture _0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 4 fragments of size 4352 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_8086_284b_sound_card_0_ alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_284b_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #5; argument: "").
D: module-default-device-restore.c: Restored default sink 'alsa_output.pci_8086_284b_sound_card_0_alsa_playb ack_0'.
D: module-default-device-restore.c: No previous default source setting, ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #6; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #7; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_8086_284b_sound_card_0_alsa_capture _0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #8; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #9; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #10; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source alsa_input.pci_8086_284b_sound_card_0_alsa_capture _0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_284b_sound_card_0_alsa_playba ck_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0, member=PropertyModified

morfeasrev
September 17th, 2008, 08:45 AM
Hey there.
I have two sound cards on my system (an onboard and a soundblaster audigy LS).
Before following this guide (oh yes I followed and got impressed) I was using ALSA...
At the time I used ALSA, my system used to forget the default sound card so I
sudo gedit /etc/modprobe.d/alsa-base
and then just added to the bottom of the file
options snd_ca0106 index=0
options snd_hda_intel index=1
That solved my problem back then.

After some months the last post of this guide popped up and I tried it (because pavucontrol is way too cool and I wanted to play UrbanTerror which uses pulseaudio).
So for now I am with a little problem.
Sometimes, after I login (sound plays normally at the login screen), I do not get sound. I open pavucontrol and there is only one sound card, the onboard.
For now I solve my problem by restarting pulseaudio by executing
pulseaudio -k
pulseaudio -D
or by restarting Ubuntu.
After this my sound card is back there in the pavucontrol waiting for me to re-default it.

I know it sounds a little complicated but I will ask: Any ideas???

AaronMT
September 17th, 2008, 09:19 AM
I dont understand why to follow this new guide posted, Firefox crashes when any Flash content is played.


?

morfeasrev
September 17th, 2008, 09:23 AM
not mine. I think the guide is good althought I didn't delete the alsa and pulseaudio files. Have you enabled the repo? and Have you removed the libflashsupport?

AaronMT
September 17th, 2008, 09:37 AM
Yes, libflashsupport is uninstalled.

I am following the new guide. As well, pidgin crashes when any sounds are played, preferences are set at Automatic sound.

morfeasrev
September 17th, 2008, 09:39 AM
In preferences I prefer using ALSA. try running gstreamer in a terminal

AaronMT
September 17th, 2008, 09:44 AM
Yes, libflashsupport is uninstalled.

I am following the new guide. As well, pidgin crashes when any sounds are played, preferences are set at Automatic sound.

loudlikeamouse
September 17th, 2008, 11:22 AM
I used this guide, and everything was hunky dory. Then a new flashplugin-nonfree (v 10) was released, I upgraded, and things got a little buggy. Another v10 was updated, I upgraded again (thinking it would get better), and flash stopped working.

I downgraded back to v 9, and everything works again, so I'm locking the version there. Any idea why the new flashplugin breaks the fix? And whether there's a way to keep up with the updates and still have it work?

loudlikeamouse
September 17th, 2008, 11:26 AM
Actually, hold the phone -- the video works, but audio is completely silent. Instead of not having either.

Any thoughts?

psyke83
September 17th, 2008, 11:36 AM
Hi, thanks for your efforts here and on the corresponding Intrepid thread. I'm looking forward to solving my audio problems with one of these guides, but before I try (and screw everything up...), maybe you can tell me which to follow. I'm running Hardy (32 bit), but I was having lots of system freezes so updated the kernel to the current Ibex version (2.6.27-3). This solved the freezes, but introduced some other problems (as described here: http://ubuntuforums.org/showthread.php?t=920729). Perhaps the most serious problem concerns audio, and I think your guide might solve it.

But should I follow the Hardy guide (because I'm running Hardy) or the Intrepid guide (because I'm using Intrepid's kernel)?

Any help would be greatly appreciated,
Shane

Sorry, but I can't possibly support that configuration. The kernel contains ALSA drivers that may depends on the newer ALSA userland libraries. You should either use the Hardy kernel or the entire Intrepid release. Perhaps wait until Intrepid beta for the latter.

psyke83
September 17th, 2008, 11:37 AM
Actually, hold the phone -- the video works, but audio is completely silent. Instead of not having either.

Any thoughts?

Flash 9 is not compatible with PulseAudio, unless libflashsupport is installed. Also, libflashsupport introduces instability.

crjackson
September 18th, 2008, 03:30 PM
I'm looking for a quick fix here instead of reading hundreds of posts (I looked and didn't see exactly what I was looking for).

I installed pulse audio using this guide and it broke my sound all the way. I fiddled around for a while and got it working again, but I don't know what i did.

I accidentally clicked on a pulse audio icon today and it must have changed something. Now I have no sound at all, and I can't seem to figure out the fix.

Is there a way that I can completely remove pulse audio (or at least to the default install level) and restore my sound to installation defaults (which always works well).

I'm thinking about doing a fresh install of 8.04.1 again from scratch but I'd rather avoid that if I can fix sound otherwise.

Please help...

Thanks

danieljuh
September 20th, 2008, 01:35 PM
had some issues with my intelhda microphone. So i couldnt use skype at all.
(Strange robotic sound)
I changed .pulse/daemon.conf to this:

high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
#default-fragments = 8
#default-fragment-size-msec = 5
#resample-method = speex-float-3
resample-method = src-sinc-best-quality

And now it works fine, so i just leave this here.

Still skype settings:
Sound In: HDA Intel (hw:Intel,0)
Sound Out: pulse
Ringing: pulse

MrSheffield
September 21st, 2008, 01:38 PM
Hi,

as I have written above, I had problems with playing several sound sources simultaneously. After disabling "software sound mixing (ESD)", this seems to work again - without killing one of the programs.

Unfortunately, Flash still sometimes crashes (after playing for some minutes) and kills the whole Firefox process. This is so frustrating, after spending way too much hours on trying to get it to work...

psyke83
September 21st, 2008, 02:08 PM
I'm looking for a quick fix here instead of reading hundreds of posts (I looked and didn't see exactly what I was looking for).

I installed pulse audio using this guide and it broke my sound all the way. I fiddled around for a while and got it working again, but I don't know what i did.

I accidentally clicked on a pulse audio icon today and it must have changed something. Now I have no sound at all, and I can't seem to figure out the fix.

Is there a way that I can completely remove pulse audio (or at least to the default install level) and restore my sound to installation defaults (which always works well).

I'm thinking about doing a fresh install of 8.04.1 again from scratch but I'd rather avoid that if I can fix sound otherwise.

Please help...

Thanks

If you think it's difficult to read hundreds of posts, how do you think I feel about repeating the same information hundreds of times? ;)

Look at the original guide at the first post, Appendix A & B. It tells you exactly how you can help me help you.

psyke83
September 21st, 2008, 02:09 PM
had some issues with my intelhda microphone. So i couldnt use skype at all.
(Strange robotic sound)
I changed .pulse/daemon.conf to this:

high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
#default-fragments = 8
#default-fragment-size-msec = 5
#resample-method = speex-float-3
resample-method = src-sinc-best-quality

And now it works fine, so i just leave this here.

Still skype settings:
Sound In: HDA Intel (hw:Intel,0)
Sound Out: pulse
Ringing: pulse

Glad you got it working, though I would have expected to hear stuttering from that configuration.

psyke83
September 21st, 2008, 02:10 PM
Hi,

as I have written above, I had problems with playing several sound sources simultaneously. After disabling "software sound mixing (ESD)", this seems to work again - without killing one of the programs.

Unfortunately, Flash still sometimes crashes (after playing for some minutes) and kills the whole Firefox process. This is so frustrating, after spending way too much hours on trying to get it to work...

Even if you skipped the "original" guide in favour of my packages, the troubleshooting tips in Appendix A & B will help a lot. I can't help until you give the requested information.

crjackson
September 21st, 2008, 03:46 PM
If you think it's difficult to read hundreds of posts, how do you think I feel about repeating the same information hundreds of times? ;)

Look at the original guide at the first post, Appendix A & B. It tells you exactly how you can help me help you.

Okay, I understand where you are coming from. I won't bother you again. :)

psyke83
September 21st, 2008, 06:27 PM
Okay, I understand where you are coming from. I won't bother you again. :)

Well, I didn't mean it like that :). I was directing you to the Appendices in order to know what troubleshooting information I'd need to help you.

sou_agua
September 22nd, 2008, 02:08 AM
Sorry I pm'd you before reading the rest of the posts and links.

Thank you for this howto.

Culito
September 23rd, 2008, 12:25 AM
http://ubuntuforums.org/showpost.php?p=5587712&postcount=472

I followed the above guide and it fixed my flash sound /stability problems. I have firefox 3 and flash 10. I get a few crashes here and there with flash content, but overall, it's 100% better.

However.....
My broadband internet is now dialup slow. Coincidence? The slowdown started happening right around the exact time I did these fixes!
If it isn't one thing...

Weird.

-C

taithson
September 23rd, 2008, 12:39 PM
I finally got around to setting up my PPA, and I have uploaded the newest release candidate of Flash 10, as well as ALSA & PulseAudio packages backported from Intrepid (with added tweaks and fixes from the guide included). I invite everyone to thoroughly test these packages!

NOTE: These instructions can be considered as a replacement for Step A, B and C of the main guide (http://ubuntuforums.org/showthread.php?t=789578). I don't want to deal with the equalizer (Step D) in these packages, as I'm aiming towards getting things fixed in Hardy/Intrepid, rather than introducing new features.

1a. 64bit/amd64 users only: Please see the following thread and install GetLibs (http://ubuntuforums.org/showthread.php?t=474790).

When you have GetLibs installed, install the necessary libraries as follows:
$ getlibs -p libnss3-1d
$ getlibs -p libnspr4-0d
$ getlibs -p libcurl3
$ getlibs -p libasound2-plugins

1b. 32bit/i386 users only: Remove the obsolete nspluginwrapper package:
$ sudo apt-get remove nspluginwrapper

2. Remove obsolete packages and configuration files:
$ sudo apt-get remove libflashsupport
$ sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf

3. Ensure you have the necessary packages installed:
$ sudo apt-get install padevchooser libao-pulse libasound2-plugins libsdl1.2debian-pulseaudio

4. Add my PPA to your sources.list:$ gksudo gedit /etc/apt/sources.list

Add the following lines to the end, and save:
# PulseAudio Fixes - http://ubuntuforums.org/showthread.php?p=5587712
deb http://ppa.launchpad.net/psyke83/ubuntu hardy main
deb-src http://ppa.launchpad.net/psyke83/ubuntu hardy main

5. Update your repository lists, then upgrade your system (answer yes to install packages that cannot be validated):
$ sudo apt-get update
$ sudo apt-get upgrade

6. Set PulseAudio as the default ALSA device and enable the correct driver for libao applications:
$ asoundconf set-pulseaudio
$ echo "default_driver=pulse" >~/.libao

7. Go to System/Preferences/Sound. Ensure all the "Sound Playback" entries are set to their default setting of "Autodetect", otherwise you may experience difficulties.

After logging out and back in, everything should work correctly! These packages will install PulseAudio complete with tweaks to reduce stuttering/CPU usage, and Flash 10 (release candidate). Finally, Flash & PulseAudio work correctly without crashes!

Any feedback on the packages would be appreciated (it's my first attempt, so there could be issues). Thanks.

Problems?
The original guide (http://ubuntuforums.org/showthread.php?t=789578) has important information to aid troubleshooting. Look at Appendix A for application-specific advice, and Appendix B for troubleshooting tips.

I have three requests:
1. Don't contact me via PM for help with PulseAudio; reply in the public thread instead.
2. Learn to use the "Search this Thread" function.
3. Don't expect help unless you've followed the troubleshooting steps of Appendix B and given the requested debug information.


Changelog
15/08/08 - support added for 64bit users, please test!
17/08/08 - updated instructions to ensure necessary packages are installed.
21/09/08 - added "Problems" section.

Great Job!! works like a charm.

chiefofthejojos
September 23rd, 2008, 03:45 PM
Thanks you very much for your time psyke83. I am having a bit of trouble. It's really hard for me to play any sound now.
Firefox +flash crashes and a stream does not show up in the device chooser
Totem freezes at startup and time doesn't progress passed 0:00 and a stream does not show up in the device chooser
madplay plays once or twice (I guess until another program screws stuff up) and a stream does not show up in the device chooser
The only thing that always seems to work is Wine which I have setup to use ESD and a stream shows up correctly in the pulse audio device chooser.
I ran "pulseaudio -k; sleep 4; pulseaudio -vv" and attempted to play an mp3 with totem and here is the output.
E: main.c: Failed to kill daemon.
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
W: pid.c: Stale PID file, overwriting.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27de_sound_card_0_alsa_playback_4
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27de_sound_card_0_alsa_capture_3
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27de_sound_card_0_alsa_capture_2
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27de_sound_card_0_alsa_capture_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_8086_27de_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 880 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_8086_27de_sound_card_0_a lsa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_8086_27de_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_8086_27de_sound_card_0_alsa_capture _0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 880 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_8086_27de_sound_card_0_ alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27de_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #5; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #6; argument: "").
D: module-default-device-restore.c: No previous default sink setting, ignoring.
D: module-default-device-restore.c: Restored default source 'alsa_input.pci_8086_27de_sound_card_0_alsa_captur e_0'.
I: module.c: Loaded "module-default-device-restore" (index: #7; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #8; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_8086_27de_sound_card_0_alsa_capture _0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #9; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #10; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source alsa_input.pci_8086_27de_sound_card_0_alsa_capture _0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
I: client.c: Created 0 "EsounD client (UNIX socket client)"
I: client.c: Created 1 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 1 changed name from "Native client (UNIX socket client)" to "Totem Movie Player"
I: client.c: Freed 1 "Totem Movie Player"
I: protocol-native.c: connection died.
I: client.c: Created 2 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 2 changed name from "Native client (UNIX socket client)" to "Totem Movie Player"
I: module-volume-restore.c: Restoring sink for <pulsecore/protocol-native.c$Totem Movie Player>
I: module-volume-restore.c: Restoring volume for <pulsecore/protocol-native.c$Totem Movie Player>
I: module-alsa-sink.c: Trying resume...
I: module-alsa-sink.c: Resumed successfully...
I: module-alsa-sink.c: Starting playback.
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 becomes busy.
I: resampler.c: Using resampler 'speex-float-1'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 1.
I: sink-input.c: Created input 0 "Playback Stream" on alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 with sample spec s32le 2ch 11025Hz and channel map front-left,front-right
D: memblockq.c: memblockq requested: maxlength=35200, tlength=17600, base=8, prebuf=16720, minreq=880
D: memblockq.c: memblockq sanitized: maxlength=35200, tlength=17600, base=8, prebuf=16720, minreq=880
E: shm.c: Invalid shared memory segment size
W: pstream.c: Failed to import memory block.
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 becomes idle.
I: sink-input.c: Freeing output 0 "Playback Stream"
I: client.c: Freed 2 "Totem Movie Player"
I: protocol-native.c: connection died.
I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27de_sound_card_0_alsa_playba ck_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
D: protocol-esound.c: read(): EOF
I: client.c: Freed 0 "EsounD client (UNIX socket client)"

These two lines were highlighted in gnome-terminal:
E: shm.c: Invalid shared memory segment size
W: pstream.c: Failed to import memory block.

Thank you for any help you can give.

Nyoro
September 24th, 2008, 01:37 PM
Hello, first of all thanks to psyke for doing all this work trying to help us fix our Ubuntu audio.

I have been trying to fix my audio on my thinkpad t61 for a while now. Most programs now work, thank god, but I still have problems using Skype (which means that I have to reboot to Windows to use it.. urrgh).

Some details:

Everything works, except that people can't hear me talk
I have checked that I can record audio using the microphone with sound recorder
I have installed the packages from psyke's PPA, and followed the instructions in the related post in this thread
Earlier, I had tried getting things to work using the original instructions in this thread
I have experimented a lot with the settings in the skype settings and in the System->Administration->Sound panel (basically tried most permutations)
Current Skype settings are Sound in: HDA Intel (hw:Intel,0), Sound out: Pulse audio, Ringing: Pulse Audio.
Audio preferences are set to Pulse Audio for everything except sound capture which is set for ALSA (again I have tried them all).


Can you help me make this work? Thanks.

psyke83
September 24th, 2008, 02:30 PM
Hello, first of all thanks to psyke for doing all this work trying to help us fix our Ubuntu audio.

I have been trying to fix my audio on my thinkpad t61 for a while now. Most programs now work, thank god, but I still have problems using Skype (which means that I have to reboot to Windows to use it.. urrgh).

Some details:

Everything works, except that people can't hear me talk
I have checked that I can record audio using the microphone with sound recorder
I have installed the packages from psyke's PPA, and followed the instructions in the related post in this thread
Earlier, I had tried getting things to work using the original instructions in this thread
I have experimented a lot with the settings in the skype settings and in the System->Administration->Sound panel (basically tried most permutations)
Current Skype settings are Sound in: HDA Intel (hw:Intel,0), Sound out: Pulse audio, Ringing: Pulse Audio.
Audio preferences are set to Pulse Audio for everything except sound capture which is set for ALSA (again I have tried them all).


Can you help me make this work? Thanks.

It seems your configuration is ok, so here's some tips.

1. Ensure audio preferences are set to Autodetect. If PulseAudio works correctly this is not a major issue, but it's better to leave it at this setting nevertheless.
2. I'm not sure you're selecting the right device for Skype. Add the Skype contact "test123" to your list and perform some tests, each time using a different device for "Sound in", until you find the one that's really your microphone.
3. Your microphone may be muted or set to a very low level. Check the levels and enable the microphone boost, if possible. Use the Gnome Volume Control applet, or modify the settings via alsamixer:
$ alsamixer -Dhw
4. Disable pulseaudio and test Skype:
$ mv ~/.asoundrc ~/.asoundrc.disabled && pkill pulseaudio

If Skype doesn't work correctly when PulseAudio is not running, then perhaps you're suffering from a networking issue.

psyke83
September 24th, 2008, 02:48 PM
Thanks you very much for your time psyke83. I am having a bit of trouble. It's really hard for me to play any sound now.
Firefox +flash crashes and a stream does not show up in the device chooser
Totem freezes at startup and time doesn't progress passed 0:00 and a stream does not show up in the device chooser
madplay plays once or twice (I guess until another program screws stuff up) and a stream does not show up in the device chooser
The only thing that always seems to work is Wine which I have setup to use ESD and a stream shows up correctly in the pulse audio device chooser.
I ran "pulseaudio -k; sleep 4; pulseaudio -vv" and attempted to play an mp3 with totem and here is the output.


It seems that PulseAudio initializes correctly, but when a client connects it does not play correctly. I'm not sure what you should next attempt, as your issue may need escalation upstream.

If you just want to get sound working on your system, you can do the following:
1. Disable the PA ALSA plugins:
$ rm ~/.asoundrc*
2. In System/Preferences/Sound, set all Playback options to ALSA.

There are no major changes in the packages in my PPA, but you may also want to consider reverting packages to defaults.

Nyoro
September 24th, 2008, 03:45 PM
Hey Psyke, thanks for your response.

Lets see,

All audio prefs are set to autodetect, except capture which is set to ALSA.

I have already tried echo123 with all available sound in options in skype.

I checked the ALSA mixer. It looks ok. The microphone (internal mic) is set to full and so is internal mic boost. These settings work with audio recorder, so I guess they should be ok for Skype too?

I tried disabling pulseaudio like you suggested, and that worked. I could hear myself on echo123 using HDA Intel (hw:Intel,0) as input device.

After that I enabled pulseaudio again (re-renaming .asoundrc and running pulse audio). I ran pulseaudio in a console and got the following warnings. I wonder if they are relevant?

W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0

unc0nn3ct3d
September 24th, 2008, 04:24 PM
I finally got around to setting up my PPA

You have singlehandedly fixed the last qualm I had with ubuntu.. I can't express how grateful I am for you.. Not only do I have ZERO sound issues anymore but flash plays beautifully fullscreen. Point me to the donate page please!

chiefofthejojos
September 24th, 2008, 04:40 PM
If you just want to get sound working on your system, you can do the following:
1. Disable the PA ALSA plugins:
$ rm ~/.asoundrc*2. In System/Preferences/Sound, set all Playback options to ALSA.

Thanks. That was very easy to revert. I think I will just wait until ubuntu comes configured this way by default.

Zaff
September 26th, 2008, 02:41 AM
Hi,
I have the following problems : I can hear scratches and some sort of static when using sound and sound disappears after hibernation.
Nos I followed the guide but it seems it only made the scratching worse. Hibernation seems to be another issue but if anyone knows how to fix it I would be very grateful...
Anyway, how can I make the scratching go away ?
Please help I'm pulling my hair over this.

bartman
September 26th, 2008, 03:05 AM
psyke83, thank you very much for the "cleaner", updated instructions. Now my sound is much more stable when dealing with flash.

I haven't run into any problems so far (two weeks of use on two separate computers).

You wrote that these fixes will be available in Intrepid by default, right? Does that mean that after upgrading we should delete your PPA repositories from the local sources.list ?

celiapgt
September 27th, 2008, 07:21 PM
Thanks, dear! You are very brilliant! Thanks!

psyke83
September 27th, 2008, 07:27 PM
psyke83, thank you very much for the "cleaner", updated instructions. Now my sound is much more stable when dealing with flash.

I haven't run into any problems so far (two weeks of use on two separate computers).

You wrote that these fixes will be available in Intrepid by default, right? Does that mean that after upgrading we should delete your PPA repositories from the local sources.list ?

When you upgrade to Intrepid, you can safely leave or remove my PPA - there won't be any conflicts.

There have been updates to PulseAudio (and ALSA) in Intrepid that fix many of these problems automatically, though some small issues remain. Hopefully everything will be ready in time for release.

pasrichaz
September 28th, 2008, 08:45 AM
Hi,
Very good job psyke83, thank you very much.

oliver69
September 28th, 2008, 07:30 PM
T H A N K Y O U , psyke83 !

I tried playing simultaneously:
audacious, xine, two(!) Firefox windows with YouTube and an SDL-game (freedroid)
...and no more crashes or freezez - GREAT!!! :guitar:

live long and ubuntu!

S.A.A
September 29th, 2008, 08:45 AM
Hello; your guide was working just fine for me, but now i've a problem, it's not working any more, here is the output of

$ pulseaudio -k; sleep 4; pulseaudio -vv

E: main.c: Failed to kill daemon.
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
W: main.c: RLIMIT_RTPRIO failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: module-alsa-sink.c: Successfully opened device equalized.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL equalized
I: alsa-util.c: Unable to attach to mixer equalized: No such file or directory
I: alsa-util.c: Unable to attach to mixer hw:(null): No such device
I: sink.c: Created sink 0 "alsa_output.equalized" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.equalized.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 880 bytes.
D: module-alsa-sink.c: Thread starting up
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=equalized").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_playback_2
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_capture_2
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_playback_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_13f6_111_sound_card_0_al sa_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: Couldn't open PCM device front:0: Device or resource busy
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: PCM device surround40:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: PCM device surround41:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: PCM device surround50:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: PCM device surround51:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_13f6_111_sound_card_0_al sa_playback_0"): initialization failed.
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_playback_0
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_13f6_111_sound_card_0_a lsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture".
I: alsa-util.c: Using mixer control "Mic".
I: source.c: Created source 1 "alsa_input.pci_13f6_111_sound_card_0_alsa_capture_ 0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 880 bytes.
I: alsa-util.c: ALSA device lacks separate volumes control for channel 'front-right', falling back to software volume control.
D: module-alsa-source.c: Thread starting up
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_13f6_111_sound_card_0_a lsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_midi_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_13f6_111_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 1 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': failure
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
E: module-volume-restore.c: parse failure in /home/sobhy/.pulse/volume-restore.table:4, stopping parsing
E: module.c: Failed to load module "module-volume-restore" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.
I: module.c: Unloading "module-alsa-sink" (index: #0).
D: module-alsa-sink.c: Thread shutting down
I: sink.c: Freeing sink 0 "alsa_output.equalized"
I: source.c: Freeing source 0 "alsa_output.equalized.monitor"
I: module.c: Unloaded "module-alsa-sink" (index: #0).
I: module.c: Unloading "module-alsa-source" (index: #1).
D: module-alsa-source.c: Thread shutting down
I: source.c: Freeing source 1 "alsa_input.pci_13f6_111_sound_card_0_alsa_capture_ 0"
I: module.c: Unloaded "module-alsa-source" (index: #1).
I: module.c: Unloading "module-hal-detect" (index: #2).
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus.Local, path=/org/freedesktop/DBus/Local, member=Disconnected
I: module.c: Unloaded "module-hal-detect" (index: #2).
I: module.c: Unloading "module-native-protocol-unix" (index: #3).
I: module.c: Unloaded "module-native-protocol-unix" (index: #3).
I: main.c: Daemon terminated.

yotam
September 30th, 2008, 09:25 AM
7. Go to System/Preferences/Sound. Ensure all the "Sound Playback" entries are set to their default setting of "Autodetect", otherwise you may experience difficulties.


How should the step be done in Xubuntu?

psyke83
September 30th, 2008, 10:40 AM
How should the step be done in Xubuntu?

This guide is not intended for Xubuntu, as it doesn't use PulseAudio.

finite9
October 2nd, 2008, 05:30 AM
Is pulse audio support in intrepid better, i.e. "fixed" so that it can be used out of the box, or do I still need to apply this guide?

psyke83
October 2nd, 2008, 09:51 AM
Is pulse audio support in intrepid better, i.e. "fixed" so that it can be used out of the box, or do I still need to apply this guide?

Yes, it's (almost) fixed. At the moment, the ALSA library detect if PulseAudio is running, and applies the appropriate configuration if it's detected. However, not everything is finished: 64 bit users may have problems with certain 32 bit applications, including Flash.

MrDelish
October 3rd, 2008, 01:54 AM
Excellent. This worked wonderfully for me on 64-bit Hardy, as I was having serious issues getting Cinelerra to work with playback. The only snag I have is that the audio output is mono during playback as well as in rendered videos... every other program I've tried so far works properly with stereo. Anyone have ideas on where to start with this issue? I wasn't able to find anything on it in this thread or anywhere else, for that matter.

azteca_04
October 3rd, 2008, 02:19 AM
Hy psyke83, thanks very much for this guide it really help me a lot, it was driving me crazy no audio on youtube thanks alot, been looking at these issue for a long time, thanks a lot.

psyke83
October 3rd, 2008, 10:48 AM
Excellent. This worked wonderfully for me on 64-bit Hardy, as I was having serious issues getting Cinelerra to work with playback. The only snag I have is that the audio output is mono during playback as well as in rendered videos... every other program I've tried so far works properly with stereo. Anyone have ideas on where to start with this issue? I wasn't able to find anything on it in this thread or anywhere else, for that matter.

Which application is causing mono playback? While it's running, check the PulseAudio Volume Control to see information. Right-click on entry for this application on the Playback tab (while it's playing audio), and choose "Move stream...". Try any alternatives available and see if it helps.

MrDelish
October 3rd, 2008, 12:19 PM
Which application is causing mono playback? While it's running, check the PulseAudio Volume Control to see information. Right-click on entry for this application on the Playback tab (while it's playing audio), and choose "Move stream...". Try any alternatives available and see if it helps.

Cinelerra is the application I'm referring to.

So I played a video, opened up the volume control for PulseAudio, but found this message: "No Streams Available." Adjusting the volume in the Output Devices tab did affect how loud the video was, though.

jondecker76
October 3rd, 2008, 05:07 PM
I tried the new linked instructions, but it didn't get me anywhere.

First off, I'm using an MAudio Delta 1010. From what I remember, pulseaudio has problems detecting this card.

After going through all the steps, here is what happens:
1) If I go to System->Preferences->Sound - no matter what I select, if I hit "Test" to test sound output, i get the following erro (and no sound):
audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=chat: Failed to connect stream: Invalid argument

Here is the output from pulseaudio -k; sleep 4; pulseaudio -vv

jondecker76@studio-desktop:~$ pulseaudio -k; sleep 4; pulseaudio -vv
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: PCM device front:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: PCM device surround40:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: PCM device surround41:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: PCM device surround50:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: PCM device surround51:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
I: module-alsa-sink.c: Successfully opened device hw:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Master".
W: alsa-util.c: Cannot find fallback mixer control "PCM".
D: sink.c: Assertion 'map && pa_channel_map_valid(map)' failed at pulsecore/sink.c:78, function pa_sink_new.
E: module-alsa-sink.c: Failed to create sink object
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_a lsa_playback_0"): initialization failed.
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_playback_0
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_1412_1712_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: PCM device front:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: PCM device surround40:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: PCM device surround41:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: PCM device surround50:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: PCM device surround51:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 12.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
I: module-alsa-source.c: Successfully opened device hw:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture".
W: alsa-util.c: Cannot find fallback mixer control "Mic".
D: source.c: Assertion 'map && pa_channel_map_valid(map)' failed at pulsecore/source.c:69, function pa_source_new.
E: module-alsa-source.c: Failed to create source object
E: module.c: Failed to load module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1412_1712_sound_card_0_ alsa_capture_0"): initialization failed.
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_capture_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_midi_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 0 modules.
I: module.c: Loaded "module-hal-detect" (index: #0; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #1; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #3; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #4; argument: "").
D: module-default-device-restore.c: No previous default sink setting, ignoring.
D: module-default-device-restore.c: No previous default source setting, ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #5; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #6; argument: "").
I: module.c: Loaded "module-suspend-on-idle" (index: #7; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #8; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired





any ideas? I miss using Ardour and other studio software.. Every since 0804, my sound has been murdered.

thanks for any help

morfeasrev
October 4th, 2008, 02:09 AM
I think you should use gstreamer-properties instead of System->Preferences->Sound->Test(s)

psyke83
October 4th, 2008, 08:06 AM
Hey there.
I have two sound cards on my system (an onboard and a soundblaster audigy LS).
Before following this guide (oh yes I followed and got impressed) I was using ALSA...
At the time I used ALSA, my system used to forget the default sound card so I
sudo gedit /etc/modprobe.d/alsa-base
and then just added to the bottom of the file
options snd_ca0106 index=0
options snd_hda_intel index=1
That solved my problem back then.

After some months the last post of this guide popped up and I tried it (because pavucontrol is way too cool and I wanted to play UrbanTerror which uses pulseaudio).
So for now I am with a little problem.
Sometimes, after I login (sound plays normally at the login screen), I do not get sound. I open pavucontrol and there is only one sound card, the onboard.
For now I solve my problem by restarting pulseaudio by executing
pulseaudio -k
pulseaudio -D
or by restarting Ubuntu.
After this my sound card is back there in the pavucontrol waiting for me to re-default it.

I know it sounds a little complicated but I will ask: Any ideas???

The method you used previously was exploiting the module index so that your preferred card would have priority - this only works for ALSA's default dmix interface. PulseAudio doesn't respect these settings.

Maybe it's better if you blacklist the unused sound card (snd_ca0106) via /etc/modprobe.d/blacklist?

ilp68
October 7th, 2008, 05:13 AM
Thanks pskye83, worked like a charm.
Thank you a whole bunch!

psyke83
October 7th, 2008, 11:00 AM
I tried the new linked instructions, but it didn't get me anywhere.

First off, I'm using an MAudio Delta 1010. From what I remember, pulseaudio has problems detecting this card.

The card is detected but not initialized correctly.

From your output:


E: module-alsa-sink.c: Failed to create sink object
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_a lsa_playback_0"): initialization failed.


Do you have any software installed that may access the sound card before PulseAudio? For example, MPD. If so, try removing them.

The same advice applies when initializing PulseAudio manually - do not keep any programs running that access the sound card, otherwise PulseAudio will not initialize correctly.

rousselm
October 8th, 2008, 08:13 PM
Hello Psyke83,

First thanks for this how to... I did everything as suggested in your second howto post. I restarted my computer but now I have the following problems:
1) Skype doesn't want to call out even for test call (saying "problem with audio playback") when I put "sound out" and "ringing" on "pulse" so I have to put it back on "HDA Intel (hw:Intel,0)" for the 3 of them.
2) When I managed to do a test call, the sound coming from my mic is full of white noise
3) When I start PulseAudio Device Chooser" and try to go to "volume control" the window open but I get in the same time an error message saying "connection failed: connection refused" and when I click "close" on this error message it closes the window that just opened
4) When I go to "sound preference" and try to test the mic, I get another error message saying "gconfaudiosrc ! audioconvert ! audioresample ! gconfaudiosink profile=chat: Could not open audio device for recording.". 5) In the sound preferences, the sound capture is still on ALSA as "Autodetect" doesn't appears.

The output from "$ pulseaudio -k; sleep 4; pulseaudio -vv" gives me (after ages!):

E: main.c: Failed to kill daemon.
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27d8_sound_card_0_alsa_capture_4
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_8086_27d8_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: ALSA device lacks independant volume controls for each channel, falling back to software volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_8086_27d8_sound_card_0_a lsa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_8086_27d8_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...

I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_8086_27d8_sound_card_0_alsa_capture _0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_8086_27d8_sound_card_0_ alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27d8_sound_card_0_alsa_hw_specific_1
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27d8_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_27d8_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': failure
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #4; argument: "").
I: module-volume-restore.c: starting with empty ruleset.
I: module.c: Loaded "module-volume-restore" (index: #5; argument: "").
D: module-default-device-restore.c: No previous default sink setting, ignoring.
D: module-default-device-restore.c: No previous default source setting, ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #6; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #7; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_8086_27d8_sound_card_0_alsa_capture _0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #8; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #9; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_input.pci_8086_27d8_sound_card_0_alsa_capture _0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0.monitor idle for too long, suspending ...
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1, member=PropertyModified
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device, path=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1, member=PropertyModified


Can someone help me on that?

CHeers!

Marie

bastafidli
October 9th, 2008, 02:05 AM
Hello,

thanks a lot for this guide. It helped a lot. I had to do some adjustments in order to get my sound recorder and skype (installed as package skype) working with microphone on my usb webcam. I had to do

1. System -> Preferences -> Sound
Everything is set to Autodetect except Sound Capture which I had to set to ALSA

2. Modify .asoundrc as follows
# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
#</home/miro/.asoundrc.asoundconf>

pcm.!default {
type asym
playback.pcm {
type pulse
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}


As you can see I have disabled .asoundrc.asoundconf since if enabled Skype wouldn't played at all. Then I had to add playback.pcm because without it Skype wouldn't play at all. I had to also add capture.pcm since without it neither Sound Recorder nor Skype would record from the webcam microphone. Skype -> Options -> Sound devices is all set to Default device.

Hope this helps somebody as this guide helped me.

HATRED
October 10th, 2008, 04:44 AM
i tried everything in the guide but my sound is still stuterring...

ram130
October 14th, 2008, 02:47 PM
make sure u guys fix these problems in the next release of ubuntu!!!!! plzzz

sjk44
October 14th, 2008, 06:21 PM
Solved - bought inexpensive sound card and it works.

I am a complete noobie on Linux and Ubuntu, so please accept my gratitude for your very complete guide to getting Pulse Audio up and running.

Unfortunately so far my problems persist. My sound system works when playing content from the web (e.g. a web radio station). But, when playing music from Rythmbox or using Skype, there is no sound. Skype says there is a problem with the audio playback. From time to time there is some scratchy noise coming from my speakers, but no output from applications other than the radio stations to which I listen. The verbose output you requested is:

stanleyk@shuttle:~$ pulseaudio -k; sleep 4; pulseaudio -vv
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_774_sound_card_0_alsa_capture_2
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_774_sound_card_0_alsa_playback_1
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_774_sound_card_0_alsa_capture_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_10de_774_sound_card_0_al sa_playback_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: sink.c: Created sink 0 "alsa_output.pci_10de_774_sound_card_0_alsa_playbac k_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_10de_774_sound_card_0_alsa_playbac k_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: ALSA device lacks independant volume controls for each channel, falling back to software volume control.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module-alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_10de_774_sound_card_0_al sa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_10de_774_sound_card_0_a lsa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 1 "alsa_input.pci_10de_774_sound_card_0_alsa_capture_ 0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 896 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_10de_774_sound_card_0_a lsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_774_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_774_sound_card_0_alsa_control__1
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=1 source_name=alsa_input.usb_device_46d_8ad_noserial _if1_sound_card_0_alsa_capture_0'
D: alsa-util.c: Trying front:1...
I: alsa-util.c: PCM device front:1 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround40:1...
I: alsa-util.c: PCM device surround40:1 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround41:1...
I: alsa-util.c: PCM device surround41:1 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround50:1...
I: alsa-util.c: PCM device surround50:1 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround51:1...
I: alsa-util.c: PCM device surround51:1 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround71:1...
I: alsa-util.c: PCM device surround71:1 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying hw:1 as last resort...
W: alsa-util.c: Device hw:1 doesn't support 44100 Hz, changed to 16000 Hz.
W: alsa-util.c: Device hw:1 doesn't support 2 channels, changed to 1.
I: module-alsa-source.c: Successfully opened device hw:1.
I: module-alsa-source.c: Successfully enabled mmap() mode.
I: alsa-util.c: Successfully attached to mixer 'hw:1'
I: alsa-util.c: Cannot find mixer control "Capture".
I: alsa-util.c: Using mixer control "Mic".
I: source.c: Created source 2 "alsa_input.usb_device_46d_8ad_noserial_if1_sound_c ard_0_alsa_capture_0" with sample spec "s16le 1ch 16000Hz"
I: module-alsa-source.c: Using 8 fragments of size 440 bytes.
I: alsa-util.c: All 1 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+27
I: module.c: Loaded "module-alsa-source" (index: #2; argument: "device_id=1 source_name=alsa_input.usb_device_46d_8ad_noserial _if1_sound_card_0_alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/usb_device_46d_8ad_noserial_if1_sound_card_0_alsa_ control__1
I: module-hal-detect.c: Loaded 3 modules.
I: module.c: Loaded "module-hal-detect" (index: #3; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #4; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #5; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #6; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #7; argument: "").
D: module-default-device-restore.c: No previous default sink setting, ignoring.
D: module-default-device-restore.c: Restored default source 'alsa_input.pci_10de_774_sound_card_0_alsa_capture _0'.
I: module.c: Loaded "module-default-device-restore" (index: #8; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #9; argument: "").
D: module-suspend-on-idle.c: Sink alsa_output.pci_10de_774_sound_card_0_alsa_playbac k_0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_10de_774_sound_card_0_alsa_playbac k_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_10de_774_sound_card_0_alsa_capture_ 0 becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.usb_device_46d_8ad_noserial_if1_sound_c ard_0_alsa_capture_0 becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #10; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #11; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Sink alsa_output.pci_10de_774_sound_card_0_alsa_playbac k_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_input.usb_device_46d_8ad_noserial_if1_sound_c ard_0_alsa_capture_0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_input.pci_10de_774_sound_card_0_alsa_capture_ 0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Source alsa_output.pci_10de_774_sound_card_0_alsa_playbac k_0.monitor idle for too long, suspending ...

Thank you in advance for taking the time to read this note.

Stan Krasnow

loudlikeamouse
October 15th, 2008, 07:18 AM
Hello,

I have used the guide on this page with good results in order to get flash working with Firefox+PulseAudio. The last time I tried, however, I still couldn't get some of the flash to work, so I upgraded to Flash 10 and everything worked just fine.

However, since then, I've had a problem with audio capture. Whenever I try and record audio in Skype, SoundRecorder, or Audacity, it says that it is recording, but it records nothing but silence--regardless of whether I try using my external mic or my internal mic. I've tried toggling with a lot of the preferences to make sure that it's all running through PulseAudio or ALSA (I also tried JACK with poor results). Whenever I change the settings away from what they are right now, Skype, Audacity, and SoundRecorder agree that there is a problem with the audio; they bring up an error message. But with the way I have my settings now, where it records nothing but silence, it acts as though I have a working mic.

I've checked the volume control; nothing is muted, I can't find any user-controls that would be blocking the sound.

Thank you in advance for your assistance! Let me know if you need any more info to understand the problem. I'm pretty user-interface savvy, but I'm bad for understanding code.

manlypain
October 19th, 2008, 10:24 PM
Have you decided to add the newly released Flash 10 into your PPA? I only ask because i did not see it up to the full non-beta version yet.

PS thanks for all the help.

psyke83
October 19th, 2008, 10:57 PM
Have you decided to add the newly released Flash 10 into your PPA? I only ask because i did not see it up to the full non-beta version yet.

PS thanks for all the help.

I don't have an active Hardy installation to test at the moment, but I intend to upload the latest flash and nspluginwrapper to my ppa soon.

psyke83
October 20th, 2008, 02:36 AM
Ok, I backported nspluginwrapper* 1.1.2 and Flash 10 final from Intrepid. Let me know if there are any problems.

*If you have not done so already, you may need to install some 32-bit libraries via getlibs. You can find more information at the usual location (http://ubuntuforums.org/showpost.php?p=5587712&postcount=472).

franzman21
October 20th, 2008, 11:58 AM
Hi,
i went through the HowTo step-by-step and even got mixing working.
However after the restart, no more mixing and when I try to enter "VolumeControl" in the Pulse-applet it says "Connection refused".

Here the output:
E: main.c: Failed to kill daemon.
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_6a_sound_card_0_alsa_playback_2
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_6a_sound_card_0_alsa_capture_1
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_10de_6a_sound_card_0_als a_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: Couldn't open PCM device front:0: Device or resource busy
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: Couldn't open PCM device surround40:0: Device or resource busy
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: Couldn't open PCM device surround41:0: Device or resource busy
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: Couldn't open PCM device surround50:0: Device or resource busy
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: Couldn't open PCM device surround51:0: Device or resource busy
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_10de_6a_sound_card_0_als a_playback_0"): initialization failed.
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_6a_sound_card_0_alsa_playback_0
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_10de_6a_sound_card_0_al sa_capture_0'
D: alsa-util.c: Trying front:0...
I: module-alsa-source.c: Successfully opened device front:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: source.c: Created source 0 "alsa_input.pci_10de_6a_sound_card_0_alsa_capture_0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 880 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
I: module.c: Loaded "module-alsa-source" (index: #0; argument: "device_id=0 source_name=alsa_input.pci_10de_6a_sound_card_0_al sa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_6a_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 1 modules.
I: module.c: Loaded "module-hal-detect" (index: #1; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #2; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: module-gconf.c: Loading module 'module-combine' with args '' due to GConf configuration.
I: sink.c: Created sink 0 "combined" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 1 "combined.monitor" with sample spec "s16le 2ch 44100Hz"
D: module-combine.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
I: module.c: Loaded "module-combine" (index: #4; argument: "").
I: module.c: Loaded "module-gconf" (index: #5; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #6; argument: "").
D: module-default-device-restore.c: No previous default sink setting, ignoring.
D: module-default-device-restore.c: No previous default source setting, ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #7; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #8; argument: "").
D: module-suspend-on-idle.c: Sink combined becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_10de_6a_sound_card_0_alsa_capture_0 becomes idle.
D: module-suspend-on-idle.c: Source combined.monitor becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #9; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #10; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source combined.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Source alsa_input.pci_10de_6a_sound_card_0_alsa_capture_0 idle for too long, suspending ...
I: module-alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Sink combined idle for too long, suspending ...
I: module-combine.c: Device suspended...


edit:
i just noticed that when i have a musicfile running and open a flashvideo, the flash wont play (running but w/o sound) and when i then end totem, the flashvideo crashes firefox and i hear the first second of the sound of the video repeating endlessly...

psyke83
October 20th, 2008, 05:43 PM
Hi,
i went through the HowTo step-by-step and even got mixing working.
However after the restart, no more mixing and when I try to enter "VolumeControl" in the Pulse-applet it says "Connection refused".

<snip>

edit:
i just noticed that when i have a musicfile running and open a flashvideo, the flash wont play (running but w/o sound) and when i then end totem, the flashvideo crashes firefox and i hear the first second of the sound of the video repeating endlessly...

Your problem is that the sound card is in use while PulseAudio is initializing. You need to ensure that you aren't running applications that may steal access in the background (e.g. MPD).

franzman21
October 21st, 2008, 01:32 PM
Your problem is that the sound card is in use while PulseAudio is initializing. You need to ensure that you aren't running applications that may steal access in the background (e.g. MPD).

You mean while the system is starting up??
I wouldn't know what else could use my soundcard and I'm not using MPD.

Oceanwatcher
October 24th, 2008, 01:54 PM
My setup:

Linux Mint 5 (Elyssa)
RME Hammerfall connected with optical out to a Yamaha 03D audio mixer
The Yamaha is set to 44.1 KHz sync and in the system mixer, the RME is set to get the sync from ADAT1.

I am very glad found this thread as it give me genuine hope to fix my audio problems.

My motherboard has onboard audio that I eventually disabled. I wanted to get my RME Hammerfall to work.

The audio has been on and off the whole time on this pc. Sometimes, for no apparent reason, it works for a little while. And then it is gone.

The one thing that seems to work all the time is the sound when the login screen shows. After that, everything is silent. Maybe the playing of that sound blocks everything else...

So I first followed your instructions in this thread. To the point. Copy and paste. No luck. Then I went to the new post and followed that one. To the point. No luck there either.

So now I am at the troubleshooting.

After following your first line of action in the original thread, I did a quick troubleshooting. And got one option that you do not have in your list :-)

When trying to test the sound in Pidgin, there was an item showing in the PA mixer. But no sound.

When I open the PA Volume Control now, it shows No Streams available under the Playback tab. And nothing shows up when I try to play a test in Pidgin.

I would appreciate if anyone here would consider giving me a couple of tips on how to move forward. Here is what I want to have:

Playback from any application simultaneously. I would like to hear music through Rythmbox and get the warning beeps abd sounds from Pidgin and Skype at the same time.

I would like to be able to take sound coming in on one of the channels on the RME and use that in Skype. I have good microphones that I can connect to the Yamaha mixer and I would love to use this for Skype.

Regards,

Oceanwatcher

If I try to test sound in the Sound preferences I get an error message:

audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Could not open audio device for playback.

Here is the output of the command in the troubleshooting:

svein@Aristoteles ~ $ pulseaudio -k; sleep 4; pulseaudio -vv
I: main.c: We're in the group 'pulse-rt', allowing real-time and high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_10ee_3fc4_sound_card_0_a lsa_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: PCM device front:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround40:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround40:0
I: alsa-util.c: Couldn't open PCM device surround40:0: Invalid argument
D: alsa-util.c: Trying surround41:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround41:0
I: alsa-util.c: Couldn't open PCM device surround41:0: Invalid argument
D: alsa-util.c: Trying surround50:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround50:0
I: alsa-util.c: Couldn't open PCM device surround50:0: Invalid argument
D: alsa-util.c: Trying surround51:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround51:0
I: alsa-util.c: Couldn't open PCM device surround51:0: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
I: module-alsa-sink.c: Successfully opened device hw:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
W: alsa-util.c: Unable to determine current swparams: Operation not permitted
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Master".
W: alsa-util.c: Cannot find fallback mixer control "PCM".
I: sink.c: Created sink 0 "alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 0 "alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0.monitor" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-sink.c: Using 8 fragments of size 880 bytes.
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
W: module-alsa-sink.c: Got POLLERR from ALSA
W: module-alsa-sink.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): Input/output error
I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_10ee_3fc4_sound_card_0_a lsa_playback_0").
D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_10ee_3fc4_sound_card_0_ alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: PCM device front:0 refused our hw parameters: Invalid argument
D: alsa-util.c: Trying surround40:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround40:0
I: alsa-util.c: Couldn't open PCM device surround40:0: Invalid argument
D: alsa-util.c: Trying surround41:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround41:0
I: alsa-util.c: Couldn't open PCM device surround41:0: Invalid argument
D: alsa-util.c: Trying surround50:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround50:0
I: alsa-util.c: Couldn't open PCM device surround50:0: Invalid argument
D: alsa-util.c: Trying surround51:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround51:0
I: alsa-util.c: Couldn't open PCM device surround51:0: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
I: module-alsa-source.c: Successfully opened device hw:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
W: alsa-util.c: Unable to determine current swparams: Operation not permitted
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture".
W: alsa-util.c: Cannot find fallback mixer control "Mic".
I: source.c: Created source 1 "alsa_input.pci_10ee_3fc4_sound_card_0_alsa_capture _0" with sample spec "s16le 2ch 44100Hz"
I: module-alsa-source.c: Using 8 fragments of size 880 bytes.
D: module-alsa-source.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
W: module-alsa-source.c: Got POLLERR from ALSA
W: module-alsa-source.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): Input/output error
I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_10ee_3fc4_sound_card_0_ alsa_capture_0").
D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10ee_3fc4_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 2 modules.
I: module.c: Loaded "module-hal-detect" (index: #2; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: module-gconf.c: Loading module 'module-combine' with args '' due to GConf configuration.
I: sink.c: Created sink 1 "combined" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 2 "combined.monitor" with sample spec "s16le 2ch 44100Hz"
D: memblockq.c: memblockq requested: maxlength=174080, tlength=174080, base=4, prebuf=1, minreq=0
D: memblockq.c: memblockq sanitized: maxlength=174080, tlength=174080, base=4, prebuf=4, minreq=4
I: resampler.c: Using resampler 'trivial'
I: resampler.c: Using s16le as working format.
I: sink-input.c: Created input 0 "Simultaneous output on ALSA PCM on hw:0 (RME Digi9652 (Rev 1.5)) via DMA" on alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0 with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: module-combine.c: Master sink is now 'alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playb ack_0'
D: module-combine.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+27
I: module.c: Loaded "module-combine" (index: #5; argument: "").
D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args '' due to GConf configuration.
E: socket-server.c: socket(PF_INET6): Address family not supported by protocol
I: protocol-native.c: using already loaded auth cookie.
I: module.c: Loaded "module-native-protocol-tcp" (index: #6; argument: "").
D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args '' due to GConf configuration.
E: socket-server.c: socket(PF_INET6): Address family not supported by protocol
I: module.c: Loaded "module-esound-protocol-tcp" (index: #7; argument: "").
D: module-gconf.c: Loading module 'module-zeroconf-discover' with args '' due to GConf configuration.
I: module.c: Loaded "module-zeroconf-discover" (index: #8; argument: "").
I: module.c: Loaded "module-gconf" (index: #9; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #10; argument: "").
D: module-default-device-restore.c: Restored default sink 'alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playb ack_0'.
D: core-subscribe.c: dropped redundant event.
D: module-default-device-restore.c: Restored default source 'combined.monitor'.
I: module.c: Loaded "module-default-device-restore" (index: #11; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #12; argument: "").
D: module-suspend-on-idle.c: Sink combined becomes idle.
D: module-suspend-on-idle.c: Source alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0.monitor becomes idle.
D: module-suspend-on-idle.c: Source alsa_input.pci_10ee_3fc4_sound_card_0_alsa_capture _0 becomes idle.
D: module-suspend-on-idle.c: Source combined.monitor becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #13; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #14; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module.c: Unloading "module-alsa-source" (index: #1).
D: module-rescue-streams.c: No source outputs to move away.
D: module-alsa-source.c: Thread shutting down
I: source.c: Freeing source 1 "alsa_input.pci_10ee_3fc4_sound_card_0_alsa_capture _0"
I: module.c: Unloaded "module-alsa-source" (index: #1).
I: module.c: Unloading "module-alsa-sink" (index: #0).
I: module-combine.c: Unconfiguring sink: alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0
I: module-combine.c: No master selected, lacking suitable outputs.
D: module-suspend-on-idle.c: Sink alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0 becomes idle.
D: module-suspend-on-idle.c: Sink alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0 becomes idle.
I: sink-input.c: Freeing output 0 "Simultaneous output on ALSA PCM on hw:0 (RME Digi9652 (Rev 1.5)) via DMA"
D: module-rescue-streams.c: No sink inputs to move away.
D: module-rescue-streams.c: No source outputs to move away.
D: module-alsa-sink.c: Thread shutting down
I: sink.c: Freeing sink 0 "alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0"
I: source.c: Freeing source 0 "alsa_output.pci_10ee_3fc4_sound_card_0_alsa_playba ck_0.monitor"
I: module.c: Unloaded "module-alsa-sink" (index: #0).
I: module-suspend-on-idle.c: Source combined.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink combined idle for too long, suspending ...
I: module-combine.c: Device suspended...

Oceanwatcher
October 24th, 2008, 06:41 PM
An update: Before I tried your suggestions here, at least Flash played. No sound, but it worked. Now, if I try a webpage that uses Flash - a videoplayer in Youtube, a game etc. Firefox crashes. Totally clean quit. No message.

I am a bit frustrated now...

psyke83
October 24th, 2008, 07:10 PM
An update: Before I tried your suggestions here, at least Flash played. No sound, but it worked. Now, if I try a webpage that uses Flash - a videoplayer in Youtube, a game etc. Firefox crashes. Totally clean quit. No message.

I am a bit frustrated now...

There are multiple issues that you could be suffering from.

Firstly, this guide wasn't intended for Linux Mint. I don't know how far the 5.0 release deviates from the stock Hardy install, whether PulseAudio is used in Mint, or indeed whether it's used at all.

From the debug output you posted earlier, it appears that you enabled some of the "advanced" networking options, and indicates you didn't follow post #472 (http://ubuntuforums.org/showpost.php?p=5587712&postcount=472) post fully (or else you configured the networking options later). Furthermore, your log indicates that a sink was created successfully, though I can't tell if it chose the sound device you desire to be the default.

Here is my recommendation:
1. Ignore the steps on post #1, as they are obsoleted by post #472.
2. Follow post #472 again to the letter (yes, do it all again. You need to delete your current ~/.pulse/* configuration at the very least).
3. Do not configure or customize PulseAudio any further.
4. After a reboot, open some content in Totem and allow it to play in the background.

While Totem is playing content (with audio), try the following diagnostic steps:

a) Ensure none of the volume controls are muted in ALSA or PulseAudio. In the case of PulseAudio, the volume controls for the master PulseAudio device and per-client are selectable in the PulseAudio Volume Control applet (in the Output Devices and Playback tabs, respectively).

In the case of ALSA, use either the GNOME Volume Control (ensuring the correct physical hardware ALSA device is selected), or:
$ alsamixer -Dhw

b) Open the PulseAudio Volume Control, Playback tab. Right-click on the Totem entry, choose "Move Stream..." and try all possible options given.

Oceanwatcher
October 25th, 2008, 11:04 AM
First of all, thank you very much for the reply. You have no idea how much that means. I have been struggling with audio for a long time now.

Mint had some PulseAudio stuff already installed, but I added some tools and also tried my best to do some configuring before I found your descriptions. So some of the problems I am facing might come from earlier setup. However, I already followed your instructions in post #472 to the letter - actually, I just went step by step and did copy/paste... But I will gladly do it again :-)

There is only one hardware on the computer that Linux should be able to see, the RME Hammerfall. And this was the first pro audio card that had driver support under Linux as far as I know.

I hope it is ok that I use Rythmbox instead of Totem for playing audio. I would like to avoid installing yet another audioplayer.

Firstly, this guide wasn't intended for Linux Mint. I don't know how far the 5.0 release deviates from the stock Hardy install, whether PulseAudio is used in Mint, or indeed whether it's used at all.

I have posted a question regarding sound in the Mint forum, but it is still unanswered. Seems like nobody knows too much about it. Seems to be "You have to try yourself and whatever works is fine". This is something that will definitely hinder the spread of Linux in normal homes. Soundsetup has to be bulletproof. At least to the same degree as in Windows (is this cursing in a forum like this? :-) )

From the debug output you posted earlier, it appears that you enabled some of the "advanced" networking options, and indicates you didn't follow post #472 (http://ubuntuforums.org/showpost.php?p=5587712&postcount=472) post fully (or else you configured the networking options later). Furthermore, your log indicates that a sink was created successfully, though I can't tell if it chose the sound device you desire to be the default.

Again - this could be from my first attempts to get it fixed - before I found your posts about it.

Here is my recommendation:
1. Ignore the steps on post #1, as they are obsoleted by post #472.
2. Follow post #472 again to the letter (yes, do it all again. You need to delete your current ~/.pulse/* configuration at the very least).
3. Do not configure or customize PulseAudio any further.
4. After a reboot, open some content in Totem and allow it to play in the background.

Going for it now

In the case of ALSA, use either the GNOME Volume Control (ensuring the correct physical hardware ALSA device is selected), or:
$ alsamixer -Dhw

Is there a utility that is bulletproof in setting up ALS correct? Something that allows me to see the hardware and choose it?

Oceanwatcher
October 25th, 2008, 11:38 AM
2. Follow post #472 again to the letter (yes, do it all again. You need to delete your current ~/.pulse/* configuration at the very least)

I removed the content of the .pulse folder manually. This is what I got running the command in your post:

svein@Aristoteles ~ $ sudo rm ~/.pulse/* ~/.asoundrc* /etc/asound.conf
rm: cannot remove `/home/svein/.pulse/*': No such file or directory
rm: cannot remove `/etc/asound.conf': No such file or directory

.pulse do exist
/etc/asound.conf do not exist

And when trying to set PA as default, I got this:


svein@Aristoteles ~ $ asoundconf set-pulseaudio
Traceback (most recent call last):
File "/usr/bin/asoundconf", line 440, in <module>
exit_code(set_pulseaudio())
File "/usr/bin/asoundconf", line 366, in set_pulseaudio
return set('pcm.!default', '{ type pulse }') and \
File "/usr/bin/asoundconf", line 300, in set
sds_transition()
File "/usr/bin/asoundconf", line 130, in sds_transition
lines = open(asoundrc_file).readlines()
IOError: [Errno 21] Is a directory

Maybe this explains some of the problems?

Oceanwatcher
October 25th, 2008, 11:41 AM
Quick additional info:

I found the command to check the kernel version. I am running

2.6.24-16-generic

Is this ok?

Oceanwatcher
October 25th, 2008, 11:49 AM
Another quick update:

I found the info page for my soundcard in the ALSA site:

http://www.alsa-project.org/main/index.php/Matrix:Module-rme9652

svein@Aristoteles ~ $ modinfo soundcore
filename: /lib/modules/2.6.24-16-generic/kernel/sound/soundcore.ko
alias: char-major-14-*
license: GPL
author: Alan Cox
description: Core sound module
srcversion: 548AA54AF08207316C104F8
depends:
vermagic: 2.6.24-16-generic SMP mod_unload 586

Oceanwatcher
October 25th, 2008, 04:03 PM
Some other info from my system:

svein@Aristoteles ~ $ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] System Controller (rev 11)
00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] AGP Bridge
00:07.0 ISA bridge: Advanced Micro Devices [AMD] AMD-768 [Opus] ISA (rev 04)
00:07.1 IDE interface: Advanced Micro Devices [AMD] AMD-768 [Opus] IDE (rev 04)
00:07.3 Bridge: Advanced Micro Devices [AMD] AMD-768 [Opus] ACPI (rev 03)
00:09.0 Multimedia audio controller: Xilinx Corporation RME Digi9652 (Hammerfall) (rev 03)
00:10.0 PCI bridge: Advanced Micro Devices [AMD] AMD-768 [Opus] PCI (rev 04)
01:05.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP (rev 01)
02:05.0 FireWire (IEEE 1394): NEC Corporation IEEE 1394 Host Controller (rev 01)
02:06.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)
02:08.0 USB Controller: NEC Corporation USB (rev 43)
02:08.1 USB Controller: NEC Corporation USB (rev 43)
02:08.2 USB Controller: NEC Corporation USB 2.0 (rev 04)

The content of /etc/modprobe.d/alsa-base

# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; : ; }
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && { /sbin/modprobe --quiet snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer && { /sbin/modprobe --quiet snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq && { /sbin/modprobe --quiet snd-seq-midi ; /sbin/modprobe --quiet snd-seq-oss ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe -Qb snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe -Qb snd-seq ; }

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe -Qb saa7134-alsa ; : ; }

# Load snd-seq for devices that don't have hardware midi;
# Ubuntu #26283, #43682, #56005; works around Ubuntu #34831 for
# non-Creative Labs PCI hardware
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe -Qb snd-seq ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-usx2y index=-2
options snd-usb-caiaq index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388

I am trying to find out how to force the RME card to be index 0.

psyke83
October 25th, 2008, 04:39 PM
svein@Aristoteles ~ $ asoundconf set-pulseaudio
Traceback (most recent call last):
File "/usr/bin/asoundconf", line 440, in <module>
exit_code(set_pulseaudio())
File "/usr/bin/asoundconf", line 366, in set_pulseaudio
return set('pcm.!default', '{ type pulse }') and \
File "/usr/bin/asoundconf", line 300, in set
sds_transition()
File "/usr/bin/asoundconf", line 130, in sds_transition
lines = open(asoundrc_file).readlines()
IOError: [Errno 21] Is a directory

Maybe this explains some of the problems?

Yes, quite possibly. As I said, I have no idea the difference between Mint and Ubuntu. Please post the output of your ~/.asoundrc file.

In your final post, you mention your effort to make the RME card take index 0. Unfortunately, that won't help your problem at all, as PulseAudio completely ignores the ALSA module indexes.