Gentoo Archives: gentoo-user

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