Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pulseaudio...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 1:59 am    Post subject: Pulseaudio... Reply with quote

Hi!!

(I'm very new to the Gentoo world and it's really difficult for me to manage with all these configuration "tweaks"...)

The issue... I installed:
1. pulseaudio (emerge pulseaudio paprefs pavucontrol padevchooser pavumeter),
2. gst-plugins-pulse
3. gpasswd -a USER pulse
4. gpasswd -a USER pulse-access
5. created .asoundrc file with these line :

pcm.!default {
type pulse
}

ctl.!default {
type pulse
}

6. eselect esd list; eselect esd set 1

However, my system is still muted. When you start "System > Preferences > Sound", there is a dialogue message "Waiting for sound system to respond" and it stays there with no actual response from the sound system.

Maybe it's already clear but i just want to specify that Gnome 2.26 (from "stable") is in use. In the beginning of the installation I installed only gnome-light. So I think that maybe there is something else I have to install in order to make the "pulse" work for me, right?

Any ideas, folks?


Kind regards,
Miro Hadzhiev
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Dec 22, 2009 9:31 am    Post subject: Reply with quote

As Gnome is aimed at an user daemon,
neither 'pulse' nor pulse-access should be required (in Gnome 2.26, neither should be esd).

Let's start with trivial things:
1. 'emerge -1pv pulseaudio' to see your useflags
2. check if the deamon is running, if it's not, while
in X, 'start-pulseaudio-x11' should work fine
3. check your syslog
4. if daemon is starting then quitting without any obvious reason,
start in in a terminal with verbose output ('pulseaudio -vvvv', IIRC)
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 9:52 am    Post subject: Reply with quote

Thanks, VoidMage.

Here is the information:

1.
media-sound/pulseaudio-0.9.19 USE="X alsa asyncns avahi bluetooth caps dbus glib gnome hal ipv6 tcpd udev -doc -jack -libsamplerate -lirc (-oss) -test"

I used these flags after installing 'pulseaudio' without any flags and it was not working again. I found these flags here - http://duckzland.ismywebsite.com/about/pulseaudio-and-gentoo/ .

2.
"miro@Xtigyro ~ $ start-pulseaudio-x11
E: main.c: Daemon startup failed."

...
"miro@Xtigyro ~ $ pulseaudio -vvvv
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: core-util.c: Failed to acquire high-priority scheduling: No such file or directory
I: main.c: This is PulseAudio 0.9.19
D: main.c: Compilation host: x86_64-pc-linux-gnu
D: main.c: Compilation CFLAGS: -march=core2 -O2 -pipe -Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: main.c: Running on host: Linux x86_64 2.6.31-gentoo-r6 #3 SMP Tue Dec 22 01:39:08 EET 2009
D: main.c: Found 2 CPUs.
I: main.c: Page size is 4096 bytes
D: main.c: Compiled with Valgrind support: no
D: main.c: Running in valgrind mode: no
D: main.c: Optimized build: yes
D: main.c: All asserts enabled.
I: main.c: Machine ID is f4e2794435335921e3d5b8dd4b2fda92.
I: main.c: Using runtime directory /home/miro/.pulse/f4e2794435335921e3d5b8dd4b2fda92-runtime.
I: main.c: Using state directory /home/miro/.pulse.
I: main.c: Using modules directory /usr/lib64/pulse-0.9.19/modules.
I: main.c: Running in system mode: no
E: pid.c: Daemon already running.
E: main.c: pa_pid_file_create() failed."

Here you are! Now what? :D
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Dec 22, 2009 10:46 am    Post subject: Reply with quote

Could you install pavucontrol ?
It has some annoying deps, but it's quite convenient.
Short of that, look at alsamixer (both pulse control and your card)
to see if anything's muted and on pacmd outputs.
Just to make sure, you're NOT using that initscript (you really shouldn't be) ?
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 10:58 am    Post subject: Reply with quote

'pavucontrol' is already installed.

'alsamixer' is not installed. I think that actually 'alsa' is not installed also. Should I install it?

'pacmd':
" Xtigyro miro # pacmd
No PulseAudio daemon running, or not running as session daemon. "

Which initscript? I guess you mean "/etc/init.d/pulseaudio"? No, I do not! (:

I also use this linking:
" ln -sf /usr/bin/esdcompat /usr/bin/esd "

Thanks again! I hope that we will resolve this annoying issue because I really like Gentoo (I was SUSE user, then Ubuntu,... Debian, then Arch Linux and now I'm here... (((: )
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Dec 22, 2009 1:11 pm    Post subject: Reply with quote

Something smells fishy here.
What cards are listed in /proc/asound ?
Are alsa-libs and alsa-utils installed ?
Is alsasound started in boot runlevel ?

Also, pulseaudio daemon seems to be both started and not:
pacmd should not fail. Do you see anything interesting in pavucontrol
(especially in the last tab (devices)) ?
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 1:38 pm    Post subject: Reply with quote

Xtigyro miro # ls /proc/asound
" Intel card0 cards devices hwdep oss pcm seq timers version "


* media-libs/alsa-lib
Latest version available: 1.0.20-r1
Latest version installed: 1.0.20-r1
* media-sound/alsa-utils
Latest version available: 1.0.20-r5
Latest version installed: [ Not Installed ]

I'll install it right now.

Nope. I didn't remember assigning 'alsasound' to start at boot time. It is not automatically assigned, isn't it?


Pulseaudio volume control says: "Connection failed: Connection refused".
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 1:55 pm    Post subject: Reply with quote

VoidMage, THANKS, MAN!!

After installing alsa-utils, unmuting the sound through 'alsamixer' as root (it returns an error if it is started as a normal user, I don't know why...) and then 'alsactl store' as root again... the sound system now works!

I really appreciate your help, thanks again.

However, I don't understand why alsa is not installed as a dependency of 'pulseaudio'...
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Tue Dec 22, 2009 2:01 pm    Post subject: Reply with quote

Your user is not in audio group.
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 2:56 pm    Post subject: Reply with quote

It, of course, is.

/etc/group
" audio::18:miro,pulse "

The error is as follows:

miro@Xtigyro ~ $ alsamixer
ALSA lib pulse.c:272:(pulse_connect) PulseAudio: Unable to connect: Connection refused


alsamixer: function snd_ctl_open failed for default: Connection refused

However, there is obviously a problem with the permissions. Jaglover, maybe you are right to some extent.
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 3:57 pm    Post subject: Reply with quote

I think that 'alsa' is in use now, not 'pulseaudio'. That's why there is sound. :D.......... .......

Maybe Gentoo Linux is not for me, there is toooooo much tweaking. I've spent so far much more time tweaking and "make it work" than actually using the system.
Back to top
View user's profile Send private message
Xtigyro
n00b
n00b


Joined: 22 Dec 2009
Posts: 8

PostPosted: Tue Dec 22, 2009 4:07 pm    Post subject: Reply with quote

Xtigyro wrote:
I think that 'alsa' is in use now, not 'pulseaudio'. That's why there is sound. :D.......... .......

Maybe Gentoo Linux is not for me, there is toooooo much tweaking. I've spent so far much more time tweaking and "make it work" than actually using the system.

The general idea or a.k.a. the ideology of Gentoo Linux is EXCELLENT but there should be more precise 'wiki'-s and 'how-to'-s. And I believe that it is a very good idea to bring to new (as "amateur" in Gentoo Linux) users some "defaults" concerning the "USE" flags, "CFLAGS", cpu architecture, kernel compilation, etc....... ... . if I want a GNOME-based OS installed, for example. I'm talking about a whole complete guide "how to build my Gentoo GNOME system for general mainstream DESKTOP use".

In other words, there should be (ACCORDING TO ME, of course) a 'wiki' how to compile a kernel and what "CFLAGS" to use on an Intel Core 2 Duo 64-bit CPU, for example, and so on and so on (meaning "defaults for every detail").

I DO NOT want to offend anybody. I appreciate your help and the high quality of the Gentoo Community! (:


Kind regards,
Miro Hadzhiev
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Dec 22, 2009 5:46 pm    Post subject: Reply with quote

Just a minor detail: did you relogin since adding your user to audio group ?
As for alsa, alsa-lib is a dep of pulseaudio (optional, but on a standard system obvious).
alsa-utils are covered by alsa guide.
Does anything get into syslog ?
You may try to kill currently running daemon ('pulseaudio -k')
and run with '-vvvv' to see why it fails to connect.
Back to top
View user's profile Send private message
01allein
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2009
Posts: 127
Location: AUSTRALIA

PostPosted: Tue Dec 22, 2009 11:02 pm    Post subject: Reply with quote

USE="alsa gstreamer". Do not use pulseaudio It has always given me problems.

Did you install alsa-utils to get alsaconf && alsamixer?
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Wed Dec 23, 2009 4:35 pm    Post subject: Reply with quote

Xtigyro wrote:
Xtigyro wrote:
I think that 'alsa' is in use now, not 'pulseaudio'. That's why there is sound. :D.......... .......

Maybe Gentoo Linux is not for me, there is toooooo much tweaking. I've spent so far much more time tweaking and "make it work" than actually using the system.

The general idea or a.k.a. the ideology of Gentoo Linux is EXCELLENT but there should be more precise 'wiki'-s and 'how-to'-s. And I believe that it is a very good idea to bring to new (as "amateur" in Gentoo Linux) users some "defaults" concerning the "USE" flags, "CFLAGS", cpu architecture, kernel compilation, etc....... ... . if I want a GNOME-based OS installed, for example. I'm talking about a whole complete guide "how to build my Gentoo GNOME system for general mainstream DESKTOP use".

In other words, there should be (ACCORDING TO ME, of course) a 'wiki' how to compile a kernel and what "CFLAGS" to use on an Intel Core 2 Duo 64-bit CPU, for example, and so on and so on (meaning "defaults for every detail").

I DO NOT want to offend anybody. I appreciate your help and the high quality of the Gentoo Community! (:


Kind regards,
Miro Hadzhiev


The documentation you are requesting is already online and crystal clear to my opinion.

Installing Gentoo : http://www.gentoo.org/doc/en/handbook/
Installing X : http://www.gentoo.org/doc/en/xorg-config.xml
Installing GNOME : http://www.gentoo.org/doc/en/gnome-config.xml

There are also guides for KDE, XFCE and many others, just search for "Gentoo (OS)" with Google.

In terms of USE flags, this is what profiles are for. Read here : http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6 (Section "Choosing the right profile")
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Fri Dec 25, 2009 12:34 am    Post subject: Reply with quote

Pulseaudio is utter trash. Alsa just works. Just roll with it.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Dec 25, 2009 12:41 am    Post subject: Reply with quote

pigeon768 wrote:
Pulseaudio is utter trash. Alsa just works. Just roll with it.

Thank you very much for your FUD contribution.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Sun Dec 27, 2009 1:44 am    Post subject: Reply with quote

I want to experience Pulseaudio with Wine and my other applications on AMD64. I followed these guides :

http://en.gentoo-wiki.com/wiki/PulseAudio
http://www.pulseaudio.org/wiki/PerfectSetup

Results..

Code:
xavier@xavier-pc ~ $ pulseaudio
E: module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
E: module.c: Failed to load  module "module-console-kit" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.



-vvvv output http://pastebin.com/m1006ad19

/etc/group:
pulse-access:x:1014:xavier
pulse:x:1015:xavier


Code:
[ebuild   R   ] media-sound/pulseaudio-0.9.21-r50  USE="X alsa asyncns avahi bluetooth caps dbus glib gnome hal jack tcpd udev -doc -ipv6 -libsamplerate -lirc (-oss) -test" 0 kB


Anyone could tell me what's wrong and how I could fix it? If you need any extra output, please ask.

Thanks!
Back to top
View user's profile Send private message
pizzach
Apprentice
Apprentice


Joined: 28 Aug 2006
Posts: 195

PostPosted: Sun Dec 27, 2009 7:00 am    Post subject: Reply with quote

daseinhorn wrote:
The documentation you are requesting is already online and crystal clear to my opinion.

Installing Gentoo : http://www.gentoo.org/doc/en/handbook/
Installing X : http://www.gentoo.org/doc/en/xorg-config.xml
Installing GNOME : http://www.gentoo.org/doc/en/gnome-config.xml

There are also guides for KDE, XFCE and many others, just search for "Gentoo (OS)" with Google.


Any clue if there is eventually going to be a pulseaudio guide in the gentoo handbook. It is involved enough that one would be very handy. The only one I see on google is from the unofficial gentoo wiki.

http://en.gentoo-wiki.com/wiki/PulseAudio

It works but it is nice having official documentation, too. Alsa support has gotten a bit shoddy since pulseaudio came about. I don't know if it is because of a change of focus from the up stream devs or what. But I still generally don't trust pulse and don't find the features that exciting. I just hope the dang daemon becomes more stable before I am forced to try installing it for a special app that I just have to have in the future.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Mon Dec 28, 2009 4:44 am    Post subject: Reply with quote

Quote:
I want to experience Pulseaudio with Wine


If you frequent the wine mailing list / forum the general consensus is not to use pulseaudio with wine. They even step users through the painful process of removing pulse from distributions that force its use.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Dec 28, 2009 11:42 am    Post subject: Reply with quote

drescherjm wrote:
Quote:
I want to experience Pulseaudio with Wine


If you frequent the wine mailing list / forum the general consensus is not to use pulseaudio with wine. They even step users through the painful process of removing pulse from distributions that force its use.


While probably not complete FUD, my personal experience says, that pulseaudio works
fine with wine, at least for non-performance critical games.
Though I've got a rather old hardware - intel8x0 only.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Mon Dec 28, 2009 5:54 pm    Post subject: Reply with quote

VoidMage wrote:
drescherjm wrote:
Quote:
I want to experience Pulseaudio with Wine


If you frequent the wine mailing list / forum the general consensus is not to use pulseaudio with wine. They even step users through the painful process of removing pulse from distributions that force its use.


While probably not complete FUD, my personal experience says, that pulseaudio works
fine with wine, at least for non-performance critical games.
Though I've got a rather old hardware - intel8x0 only.


I use the winepulse backend by Art Taylor : http://art.ified.ca/?page_id=40 . It works well under 32-bit Linux, but under 64-bit we couldn't use it because the x86-emul packages didn't included pulseaudio librairies. Now that this has been addressed (https://bugs.gentoo.org/show_bug.cgi?id=186820), I have compiled Wine with the backend. I just need to get the sound server working.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Dec 29, 2009 4:39 am    Post subject: Reply with quote

I fixed my pulseaudio issues by running these commands:

Code:
chgrp messagebus /usr/libexec/dbus-daemon-launch-helper
chmod 4710 /usr/libexec/dbus-daemon-launch-helper


Now pulseaudio works like a charm, even with Wine :D.
http://img.photobucket.com/albums/v190/daseinhorn/winepulse.png
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Dec 29, 2009 10:24 am    Post subject: Reply with quote

Strange, AFAIKCT that's how that file should be in the first place.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Dec 29, 2009 1:50 pm    Post subject: Reply with quote

VoidMage wrote:
pigeon768 wrote:
Pulseaudio is utter trash. Alsa just works. Just roll with it.

Thank you very much for your FUD contribution.


++

:roll:

it has had problems in the past with bad latency, etc.

I've re-migrated to it and it seems to work fine so far


I'm however not running a "standard" kernel so that might be the "solution": zen-kernel with BFS

it's in-tree (portage-tree) so give it a try
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

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