Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Gnome without PulseAudio?
Date: Wed, 11 Apr 2012 04:05:41
Message-Id: CADPrc80eVFGgZZHstg0qy3xaQx4fgrMiqTE-104Von4Xo7QOfw@mail.gmail.com
In Reply to: Re: [gentoo-user] Gnome without PulseAudio? by Alex Schuster
1 On Tue, Apr 10, 2012 at 10:12 PM, Alex Schuster <wonko@×××××××××.org> wrote:
2 > Canek Peláez Valdés writes:
3 >
4 >> On Tue, Apr 10, 2012 at 9:28 PM, Alex Schuster <wonko@×××××××××.org> wrote:
5 >
6 >>> Recently, PulseAudio got installed. Seems like gnome-settings-daemon
7 >>> version 3 no longer has the pulseaudio use flag, so it wants pulseaudio,
8 >>> which needs alsa-plugins built with the pulseaudio use flag. I wouldn't
9 >>> mind using PulseAudio, but ist starts automatically when I play movies,
10 >>> and I get no sound output in mplayer or VLC. And there are weird side
11 >>> effects, sometimes playback stops, I have to make it run again by
12 >>> skipping back and forward. Sometimes videos play much faster than normal.
13 >>
14 >> Is MPlayer using PulseAudio? Maybe if it did, the problem would go
15 >> away; I have this in my ~/.mplayer/config:
16 >>
17 >> ao=pulse
18 >> For sure, VLC has an option to use PA by default also.
19 >
20 > Oh, I think it does, but there was no sound output. Sorry for not
21 > mentioning this. I had to switch manually to another sound device, HDA
22 > ATI something, I cannot look now because I am not near my desktop PC.
23 >
24 > If it would just work, then I could make my players use it if they don't
25 > already. But what about old applications like Quake3, will they still work?
26
27 Of course. I have been using PulseAudio since it became stable in
28 Gentoo (circa October 2010); in my experience, making everything sound
29 related going through PulseAudio makes everything work. Most modern
30 applications support directly PulseAudio; for the old ones that don't,
31 you can make all ALSA sound go through PulseAudio like this:
32
33 # cat /etc/asound.conf
34 pcm.!default {
35 type pulse
36 }
37
38 ctl.!default {
39 type pulse
40 }
41
42 (If you want it for all users; for your user only, use $HOME/.asoundrc).
43
44 >
45 >>> So I would like to get rid of it. Is this possible? I don't really use
46 >>> Gnome, but I like to have it to see how it develops. And I wouldn't like
47 >>> to remove it just because of a sound problem.
48 >>
49 >> GNOME 3 depends (strongly, I think) on PulseAudio; you don't say which
50 >> version of GNOME are you using, but in GNOME 2 PA was optional.
51 >
52 > GNOME 3. I don't use it, but I wanted to look a little into its desktop
53 > philosophy.
54
55 But do you use gnome-session? If you are not using gnome-session, I
56 don't think you can see that much of its desktop philosophy.
57
58 >>> Maybe the PulseAudio problem is the same as I had with ALSA, I have two
59 >>> internal cards, and I had to tell ALSA not to prefer the SPDIF one.
60 >>> Maybe I have to do the same with PulseAudio, but I do not know how.
61 >>
62 >> Try media-sound/pavucontrol; you can select which card the sounds goes
63 >> through, and which output to use (HDMI, for example).
64 >
65 > Thanks, I just installed it. It shows the HDMI device on top, and only
66 > this on has the green checkbox enabled. Maybe simply activating the
67 > analog port will make it run. I'll see this in a week days when I'm back
68 > at my PC.
69 >
70 >>> And
71 >>> the weird playback effects are spooky, I'd prefer to keep things as they
72 >>> are, at the moment I'm happy with plain ALSA.
73 >>
74 >> I don't think it is possible to uninstall completely PA in GNOME 3; I
75 >> remember it was possible in GNOME 2.
76 >
77 > It got installed when I emerged GNOME 3, but until end of march
78 > alsa-plugins was not installed. Then pulseaudio went from 1.1-r1 to
79 > 1.99.2, since then it needs the alsa-plugins package, and my trouble
80 > started.
81
82 Mmmh? I have the latest GNOME 3.2, and I'm still using
83 media-sound/pulseaudio-1.1-r1. Perhaps you used autounmask? I would
84 try to go back to 1.1-r1; it's stable, after all, and GNOME doesn't
85 need the bleeding edge on PulseAudio.
86
87 >>> And what is starting the pulseaudio process? I can kill it, but it comes
88 >>> back the next time I run mplayer. Is there a way to just disable it?
89 >>
90 >> If I recall correctly, the GNOME session manager will keep starting PA
91 >> if the daemon dies.
92 >
93 > Maybe I had a GNOME session running in parallel? I don't think so, but
94 > I'm not sure.
95
96 If you are trying to use any GNOME core technology (like GNOME Shell),
97 it will for sure start automatically gnome-session, I think. Some
98 applications can run without it, but many will try to connect to some
99 desktop session, and maybe some will actually start it. GNOME session
100 then will keep starting PulseAudio.
101
102 I don't understand how do you not use GNOME 3, but you want to see its
103 desktop philosophy. Do you run KDE or XFCE, and try to run the shell
104 on top of that?
105
106 Regards.
107 --
108 Canek Peláez Valdés
109 Posgrado en Ciencia e Ingeniería de la Computación
110 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] Gnome without PulseAudio? Alecks Gates <alecks.g@×××××.com>
Re: [gentoo-user] Gnome without PulseAudio? Alex Schuster <wonko@×××××××××.org>