Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] no sound with pulseaudio "Canek Peláez Valdés" <caneko@×××××.com>