Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] no sound with pulseaudio
Date: Wed, 28 Sep 2011 23:28:17
Message-Id: CADPrc82tw=XW0_J6CxftFA6c7bS2ba=c8jpMBTne+dDDtQtnzA@mail.gmail.com
In Reply to: Re: [gentoo-user] no sound with pulseaudio by Tamer Higazi
1 On Wed, Sep 28, 2011 at 7:08 PM, Tamer Higazi <th982a@××××××××××.com> wrote:
2 > Am 29.09.2011 00:03, schrieb Canek Peláez Valdés:
3 >> On Wed, Sep 28, 2011 at 5:49 PM, Tamer Higazi <th982a@××××××××××.com> wrote:
4 >>> Am 28.09.2011 23:28, schrieb Canek Peláez Valdés:
5 >>>> On Wed, Sep 28, 2011 at 5:24 PM, Tamer Higazi <th982a@××××××××××.com> wrote:
6 >>>>> Hi!
7 >>>>> I have configured pulseaudio according
8 >>>>>
9 >>>>> http://en.gentoo-wiki.com/wiki/PulseAudio
10 >>>>>
11 >>>>>
12 >>>>> but I simply have no sound.
13 >>>>>
14 >>>>> The pulseaudio playback volume meter shows me signal, and that the bars
15 >>>>> are jumping if I playback a music track.
16 >>>>>
17 >>>>> alsa-plugins (with pulseaudio USE flag)
18 >>>>> gst-plugins-pulse
19 >>>>>
20 >>>>> are installed. But I don't know what is being blocked, that I have no
21 >>>>> sound output at my headphones.
22 >>>>>
23 >>>>> PS: the headphones are ok.
24 >>>>>
25 >>>>> Any suggestions?
26 >>>>
27 >>>> What music player are you using? Did you set or modify ~/.asoundrc?
28 >>>
29 >>> ~/.asoundrc doesn't exist.
30 >>>
31 >>> I have /etc/asound.conf with these entries:
32 >>>
33 >>>
34 >>> pcm.pulse {
35 >>>    type pulse
36 >>> }
37 >>>
38 >>> ctl.pulse {
39 >>>    type pulse
40 >>> }
41 >>>
42 >>> for all alsa applications to be redirected to pulse!
43 >>
44 >> Mmmh. It's not exactly like that: If you use pcm.pulse and ctl.pulse,
45 >> then you need to specify pulse as the virtual ALSA device. If you want
46 >> "all alsa applications to be redirected to pulse", you need:
47 >>
48 >> pcm.!default {
49 >>     type pulse
50 >> }
51 >>
52 >> ctl.!default {
53 >>     type pulse
54 >> }
55 >>
56 >>> The players Rhythmbox, xine all with pulseaudio default output plugins.
57 >>
58 >> That should work. Did you check in sound settings that pulse is indeed
59 >> the desired output
60 >>
61 >>>> What Desktop do you use?
62 >>>
63 >>> Gnome, latest 2.x version
64 >>>
65 >>>  Is the pulseaudio daemon running?
66 >>>
67 >>> Yes!
68 >>>
69 >>> tamer@office ~ $ pstree -pu | grep puls
70 >>>
71 >>> |-pulseaudio(22833,tamer)-+-gconf-helper(22840)---{gconf-helper}(22841)
72 >>>        |                         |-{pulseaudio}(22839)
73 >>>        |                         `-{pulseaudio}(22842)
74 >>
75 >> Looks OK.
76 >>
77 >>> I have added all config files in "/etc/pulse/"
78 >>
79 >> I wouldn't touch the files on /etc/pulse. I recommend first trying to
80 >> make it work with the files included with pulseaudio (backup
81 >> /etc/pulse, move the dir out of /etc and emerge again pulseaudio)
82 >> before trying anything else. Supposedly, pulseaudio should "just
83 >> works". Since the first time I installed it I have never touched the
84 >> files in /etc/pulse, except to change the log-level of the daemon.
85 >>
86 > As requested, I moved the pulse folder somewhere else and remerged
87 > pulseaudio as well moved /etc/asound.conf somewhere else as well.
88 >
89 > No sound!
90
91 Weird.
92
93 >> I'm on GNOME 3, so things are a little different, and I don't remember
94 >> exactly the dialogs, but instead of the Gentoo wiki page, I would
95 >> follow this:
96 >>
97 >> http://www.pulseaudio.org/wiki/PerfectSetup
98 >>
99 >> And more specifically:
100 >>
101 >> http://www.pulseaudio.org/wiki/PerfectSetup#GNOME
102 >>
103 >> and
104 >>
105 >> http://www.pulseaudio.org/wiki/PerfectSetup#GStreamerApplications
106 >>
107 >> Also, in really weird cases, the ALSA device gets its volume muted:
108 >> You can try to remove (back up first) /etc/asound.conf, and run (as
109 >> root)
110 >>
111 >> alsamixer -V all
112 >
113 > I did, and fired all the bars up. nothing! really nothing!
114
115 Really weird.
116
117 >> and trying to unmute and turn up the volume on everything. When you
118 >> hear something with any player, return the asound.conf to /etc and try
119 >> again.
120 >>
121 >> Regards.
122 >
123 > I have the dumb feeling that one process is blocking the output, I hear
124 > in my headphones the white noise of my system, which wouldn't be there
125 > if the soundcard hadn't been initialised.
126
127 It's more simple than that: if you see the bars movind in the mixer
128 application, some sound should be made.
129
130 > Is there a way to find out which applications might make use of the
131 > soundcard right now?!
132
133 Probably with strace or a similar tool; however, let me see first if
134 I'm understanding the problem. This is a laptop? If so, the sound
135 works without headphones? The internal speakers work?
136
137 Also, can you please post the output of "pactl list"?
138
139 Regards.
140 --
141 Canek Peláez Valdés
142 Posgrado en Ciencia e Ingeniería de la Computación
143 Universidad Nacional Autónoma de México

Replies

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