Gentoo Archives: gentoo-user

From: Spidey / Claudio <spideybr@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] no sound with pulseaudio
Date: Thu, 29 Sep 2011 03:25:24
Message-Id: CAGo3WepaV=iH0K_PMmrH4XSYZ8Y=fTrCm3oND4NFce-4BH7eiA@mail.gmail.com
In Reply to: Re: [gentoo-user] no sound with pulseaudio by "Canek Peláez Valdés"
1 pavucontrol is your friend. It lets you configure your sound devices
2 current profile, and also set the fallback (default) sink.
3
4 Claudio Roberto França Pereira (a.k.a. Spidey)
5 hardMOB - HTForum - @spideybr
6 Engenharia de Computação - UFES 2006/1
7
8
9
10 On Wed, Sep 28, 2011 at 21:58, Canek Peláez Valdés <caneko@×××××.com> wrote:
11 > I think I see the problem: the sound is getting through the digital output,
12 > not the analog one (near the end of pactl output). You need to set the
13 > analog output: pactl man page will tell you how (sorry, left the laptop at
14 > the office and I'm writing this on my phone). It's also possible to do it
15 > with gnome-sound-settings, in the hardware tab (if I remember correctly).
16 >
17 > Good luck.
18 >
19 > El 28/09/2011 20:27, "Tamer Higazi" <th982a@××××××××××.com> escribió:
20 >> Am 29.09.2011 01:27, schrieb Canek Peláez Valdés:
21 >>> On Wed, Sep 28, 2011 at 7:08 PM, Tamer Higazi <th982a@××××××××××.com>
22 >>> wrote:
23 >>>> Am 29.09.2011 00:03, schrieb Canek Peláez Valdés:
24 >>>>> On Wed, Sep 28, 2011 at 5:49 PM, Tamer Higazi <th982a@××××××××××.com>
25 >>>>> wrote:
26 >>>>>> Am 28.09.2011 23:28, schrieb Canek Peláez Valdés:
27 >>>>>>> On Wed, Sep 28, 2011 at 5:24 PM, Tamer Higazi <th982a@××××××××××.com>
28 >>>>>>> wrote:
29 >>>>>>>> Hi!
30 >>>>>>>> I have configured pulseaudio according
31 >>>>>>>>
32 >>>>>>>> http://en.gentoo-wiki.com/wiki/PulseAudio
33 >>>>>>>>
34 >>>>>>>>
35 >>>>>>>> but I simply have no sound.
36 >>>>>>>>
37 >>>>>>>> The pulseaudio playback volume meter shows me signal, and that the
38 >>>>>>>> bars
39 >>>>>>>> are jumping if I playback a music track.
40 >>>>>>>>
41 >>>>>>>> alsa-plugins (with pulseaudio USE flag)
42 >>>>>>>> gst-plugins-pulse
43 >>>>>>>>
44 >>>>>>>> are installed. But I don't know what is being blocked, that I have
45 >>>>>>>> no
46 >>>>>>>> sound output at my headphones.
47 >>>>>>>>
48 >>>>>>>> PS: the headphones are ok.
49 >>>>>>>>
50 >>>>>>>> Any suggestions?
51 >>>>>>>
52 >>>>>>> What music player are you using? Did you set or modify ~/.asoundrc?
53 >>>>>>
54 >>>>>> ~/.asoundrc doesn't exist.
55 >>>>>>
56 >>>>>> I have /etc/asound.conf with these entries:
57 >>>>>>
58 >>>>>>
59 >>>>>> pcm.pulse {
60 >>>>>> type pulse
61 >>>>>> }
62 >>>>>>
63 >>>>>> ctl.pulse {
64 >>>>>> type pulse
65 >>>>>> }
66 >>>>>>
67 >>>>>> for all alsa applications to be redirected to pulse!
68 >>>>>
69 >>>>> Mmmh. It's not exactly like that: If you use pcm.pulse and ctl.pulse,
70 >>>>> then you need to specify pulse as the virtual ALSA device. If you want
71 >>>>> "all alsa applications to be redirected to pulse", you need:
72 >>>>>
73 >>>>> pcm.!default {
74 >>>>> type pulse
75 >>>>> }
76 >>>>>
77 >>>>> ctl.!default {
78 >>>>> type pulse
79 >>>>> }
80 >>>>>
81 >>>>>> The players Rhythmbox, xine all with pulseaudio default output
82 >>>>>> plugins.
83 >>>>>
84 >>>>> That should work. Did you check in sound settings that pulse is indeed
85 >>>>> the desired output
86 >>>>>
87 >>>>>>> What Desktop do you use?
88 >>>>>>
89 >>>>>> Gnome, latest 2.x version
90 >>>>>>
91 >>>>>> Is the pulseaudio daemon running?
92 >>>>>>
93 >>>>>> Yes!
94 >>>>>>
95 >>>>>> tamer@office ~ $ pstree -pu | grep puls
96 >>>>>>
97 >>>>>>
98 >>>>>> |-pulseaudio(22833,tamer)-+-gconf-helper(22840)---{gconf-helper}(22841)
99 >>>>>> | |-{pulseaudio}(22839)
100 >>>>>> | `-{pulseaudio}(22842)
101 >>>>>
102 >>>>> Looks OK.
103 >>>>>
104 >>>>>> I have added all config files in "/etc/pulse/"
105 >>>>>
106 >>>>> I wouldn't touch the files on /etc/pulse. I recommend first trying to
107 >>>>> make it work with the files included with pulseaudio (backup
108 >>>>> /etc/pulse, move the dir out of /etc and emerge again pulseaudio)
109 >>>>> before trying anything else. Supposedly, pulseaudio should "just
110 >>>>> works". Since the first time I installed it I have never touched the
111 >>>>> files in /etc/pulse, except to change the log-level of the daemon.
112 >>>>>
113 >>>> As requested, I moved the pulse folder somewhere else and remerged
114 >>>> pulseaudio as well moved /etc/asound.conf somewhere else as well.
115 >>>>
116 >>>> No sound!
117 >>>
118 >>> Weird.
119 >>>
120 >>>>> I'm on GNOME 3, so things are a little different, and I don't remember
121 >>>>> exactly the dialogs, but instead of the Gentoo wiki page, I would
122 >>>>> follow this:
123 >>>>>
124 >>>>> http://www.pulseaudio.org/wiki/PerfectSetup
125 >>>>>
126 >>>>> And more specifically:
127 >>>>>
128 >>>>> http://www.pulseaudio.org/wiki/PerfectSetup#GNOME
129 >>>>>
130 >>>>> and
131 >>>>>
132 >>>>> http://www.pulseaudio.org/wiki/PerfectSetup#GStreamerApplications
133 >>>>>
134 >>>>> Also, in really weird cases, the ALSA device gets its volume muted:
135 >>>>> You can try to remove (back up first) /etc/asound.conf, and run (as
136 >>>>> root)
137 >>>>>
138 >>>>> alsamixer -V all
139 >>>>
140 >>>> I did, and fired all the bars up. nothing! really nothing!
141 >>>
142 >>> Really weird.
143 >>>
144 >>>>> and trying to unmute and turn up the volume on everything. When you
145 >>>>> hear something with any player, return the asound.conf to /etc and try
146 >>>>> again.
147 >>>>>
148 >>>>> Regards.
149 >>>>
150 >>>> I have the dumb feeling that one process is blocking the output, I hear
151 >>>> in my headphones the white noise of my system, which wouldn't be there
152 >>>> if the soundcard hadn't been initialised.
153 >>>
154 >>> It's more simple than that: if you see the bars movind in the mixer
155 >>> application, some sound should be made.
156 >>>
157 >>>> Is there a way to find out which applications might make use of the
158 >>>> soundcard right now?!
159 >>>
160 >>> Probably with strace or a similar tool; however, let me see first if
161 >>> I'm understanding the problem. This is a laptop?
162 >>
163 >> A usual tower machine! Core2 DUO, nothing's special!
164 >>
165 >> If so, the sound
166 >>> works without headphones? The internal speakers work?
167 >>
168 >> with the headphones all the time....
169 >>
170 >> There are no internal speakers (not a notebook)
171 >>>
172 >>> Also, can you please post the output of "pactl list"?
173 >> Yes of course, here it is:
174 >>
175 >> http://pastebin.com/raw.php?i=wDgy3x64
176 >>>
177 >>> Regards.
178 >>
179 >> thanks
180 >>
181 >>
182 >> Tamer
183 >>
184 >

Replies

Subject Author
Re: [gentoo-user] no sound with pulseaudio Spidey / Claudio <spideybr@×××××.com>