1 |
Am 29.04.2013 11:43, schrieb covici@××××××××××.com: |
2 |
> Kevin Thompson <phlux@×××××.net> wrote: |
3 |
> |
4 |
>> On Mon, Apr 29, 2013 at 04:43:46AM -0400, covici@××××××××××.com wrote: |
5 |
>>> Canek Peláez Valdés <caneko@×××××.com> wrote: |
6 |
>>> |
7 |
>>>> On Mon, Apr 29, 2013 at 12:35 AM, <covici@××××××××××.com> wrote: |
8 |
>>>>> Canek Peláez Valdés <caneko@×××××.com> wrote: |
9 |
>>>>> |
10 |
>>>>>> On Sun, Apr 28, 2013 at 11:57 PM, <covici@××××××××××.com> wrote: |
11 |
>>>>>>> Canek Peláez Valdés <caneko@×××××.com> wrote: |
12 |
>>>>>>> |
13 |
>>>>>>>> On Sun, Apr 28, 2013 at 11:08 PM, <covici@××××××××××.com> wrote: |
14 |
>>>>>>>>> Canek Peláez Valdés <caneko@×××××.com> wrote: |
15 |
>>>>>>>>> |
16 |
>>>>>>>>>> On Sun, Apr 28, 2013 at 10:07 PM, <covici@××××××××××.com> wrote: |
17 |
>>>>>>>>>>> Canek Peláez Valdés <caneko@×××××.com> wrote: |
18 |
>>>>>>>>>>> |
19 |
>>>>>>>>>>>> On Sun, Apr 28, 2013 at 7:56 PM, <covici@××××××××××.com> wrote: |
20 |
>>>>>>>>>>>>> Hi. I have not used pulseaudio at all, but with gnome 3.8 I guess it |
21 |
>>>>>>>>>>>>> must be there, but when I try to play a sound using either mplayer from |
22 |
>>>>>>>>>>>>> the console which works fine withalsa, or even aplay, I get no sound |
23 |
>>>>>>>>>>>>> unless I change the /etc/pulse/client.conf to spawn=no . |
24 |
>>>>>>>>>>>> |
25 |
>>>>>>>>>>>> Unless you have a very specific setup, you should not need to touch |
26 |
>>>>>>>>>>>> the files under /etc/pulse. Also, are you trying to run the |
27 |
>>>>>>>>>>>> system-wide PulseAudio service? Because that's basically wrong: |
28 |
>>>>>>>>>>>> |
29 |
>>>>>>>>>>>> http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide |
30 |
>>>>>>>>>>>> |
31 |
>>>>>>>>>>>>> Anyway to fix this? |
32 |
>>>>>>>>>>>> |
33 |
>>>>>>>>>>>> If you are running PA as a normal user (as you should), then perhaps |
34 |
>>>>>>>>>>>> the per-application volume for MPlayer is muted. While playing |
35 |
>>>>>>>>>>>> something with MPlayer, go to Settings -> Sound, then select the |
36 |
>>>>>>>>>>>> Applications tab, and there should be a volume slider for all the |
37 |
>>>>>>>>>>>> applications using audio. Just adjust as necessary. |
38 |
>>>>>>>>>>> |
39 |
>>>>>>>>>>> I got no sound when pa was run as a user. I am running these apps from |
40 |
>>>>>>>>>>> the console -- apps such as aplay or anything which uses alsa. So I |
41 |
>>>>>>>>>>> can't adjust any volumes under gnome, etc. |
42 |
>>>>>>>>>> |
43 |
>>>>>>>>>> Also, from the console you can use pactl. To play a sample sound there, do: |
44 |
>>>>>>>>>> |
45 |
>>>>>>>>>> pactl play-sample 0 |
46 |
>>>>>>>>>> pactl play-sample 1 |
47 |
>>>>>>>>>> |
48 |
>>>>>>>>>> It should work. You can also set the volume from here: |
49 |
>>>>>>>>>> |
50 |
>>>>>>>>>> pactl set-sink-volume 0 "100%" |
51 |
>>>>>>>>>> |
52 |
>>>>>>>>>> 0 is usually the "master" volume. |
53 |
>>>>>>>>>> |
54 |
>>>>>>>>>> Check out man pactl. |
55 |
>>>>>>>>> |
56 |
>>>>>>>>> Well, in either system or user mode, root can play sound whereas a |
57 |
>>>>>>>>> regular user gets silent, but without pulseaudio -- spawn=no, then a |
58 |
>>>>>>>>> regular user can play sound. Does this give a clue? |
59 |
>>>>>>>> |
60 |
>>>>>>>> Not really; as I said, the PA documentation clearly says that if you |
61 |
>>>>>>>> use system mode "You are on your own. You need to know you way around, |
62 |
>>>>>>>> be able to write init scripts, dbus policies, to fix up device |
63 |
>>>>>>>> permissions, and unix users, you need to pass around security cookies |
64 |
>>>>>>>> and more." |
65 |
>>>>>>>> |
66 |
>>>>>>>> I haven't ever used system-wide PA. |
67 |
>>>>>>>> |
68 |
>>>>>>>> I think of the following; try to delete both /root/.pulse and |
69 |
>>>>>>>> $HOME/.pulse, and rebooting (probably a logout/login should suffice, |
70 |
>>>>>>>> but you never know). |
71 |
>>>>>>>> |
72 |
>>>>>>>> Another thing: if you installed PA since GNOME 3.8 needs it, why are |
73 |
>>>>>>>> you using it without GNOME? If you use GNOME, the session manager will |
74 |
>>>>>>>> automatically start PA as a user for you, and everything should work. |
75 |
>>>>>>>> If you are not running GNOME, why do you run PA? If you are at the |
76 |
>>>>>>>> console without X running, just don't use PA. Use mplayer -ao alsa or |
77 |
>>>>>>>> whatever. |
78 |
>>>>>>>> |
79 |
>>>>>>>> Or do you want to run several audio apps in the console? |
80 |
>>>>>>> |
81 |
>>>>>>> I want to run apps from the console, but to start gnome when I need it. |
82 |
>>>>>> |
83 |
>>>>>> Then do that. When you start GNOME, it will start PA automatically: |
84 |
>>>>>> you don't need to do anything. Don't try to start PA yourself; it's |
85 |
>>>>>> DBus activated. |
86 |
>>>>>> |
87 |
>>>>>> |
88 |
>>>>>>> I am running pa as a user and things are still not working, except for |
89 |
>>>>>>> the root user who can play sounds. |
90 |
>>>>>> |
91 |
>>>>>> I repeat: you don't need to run PA. GNOME will start it for you. |
92 |
>>>>> |
93 |
>>>>> But will that workif I have spawn=no in my /etc/pulse/client.conf which |
94 |
>>>>> I have to have for regular apps to work from theconsole? Or is there |
95 |
>>>>> some other way to make this happen? |
96 |
>>>> |
97 |
>>>> I don't understand the question. If you don't run PA by yourself, then |
98 |
>>>> it will be started only when using GNOME. And if you are using GNOME, |
99 |
>>>> you can use the nice sound settings dialog to get your sound. |
100 |
>>>> |
101 |
>>>> If you don't start GNOME, then PA will not be started. If you don't |
102 |
>>>> have sound in your console even without PA running, then is for some |
103 |
>>>> issue completely unrelated to PA. |
104 |
>>>> |
105 |
>>>> PA should not be started if you only log in through the console. |
106 |
>>>> Unless you are still running it system-wide, which is basically |
107 |
>>>> unsupported. |
108 |
>>> |
109 |
>>> OK, we will see what happens, so I have set spawn=no which should work |
110 |
>>> to prevent pa except in gnome, so hopefully that should work. |
111 |
>>> |
112 |
>>> Thanks for clarifying this for me. |
113 |
>>> |
114 |
>>> |
115 |
>>> -- |
116 |
>>> Your life is like a penny. You're going to lose it. The question is: |
117 |
>>> How do |
118 |
>>> you spend it? |
119 |
>>> |
120 |
>>> John Covici |
121 |
>>> covici@××××××××××.com |
122 |
>>> |
123 |
>> |
124 |
>> I had the same issue here when installing pulseaudio. I don't use GNOME, |
125 |
>> so that does take part of the equation away. The problem was solved by |
126 |
>> changing permissions to /dev/snd and it's containing files. After |
127 |
>> chmodding /dev/snd/* to 666, I was able to play sounds as a normal user. |
128 |
>> In the Gentoo guide, it mentions this, and it also mentions taking your |
129 |
>> user out of the audio group if you're currently in it. Please see |
130 |
>> http://wiki.gentoo.org/wiki/PulseAudio#Root_can_play_sound.2C_other_users_cannot |
131 |
>> for more detailed information. |
132 |
> |
133 |
> Thanks for your response, but here is my /dev/snd directory, so its a |
134 |
> mystery to me. I am, however in the audio group, I wonder if that makes |
135 |
> a difference. |
136 |
> total 0 |
137 |
> drwxr-xrwx 3 freeswitch apache 280 Apr 27 15:53 ./ |
138 |
> drwxr-xr-x 17 root root 4980 Apr 28 22:58 ../ |
139 |
> drwxr-xrwx 2 freeswitch apache 60 Apr 27 15:53 by-path/ |
140 |
> crw-rw-rw-+ 1 freeswitch apache 116, 10 Apr 27 15:53 controlC0 |
141 |
> crw-rw-rw-+ 1 freeswitch apache 116, 2 Apr 27 15:53 hwC0D0 |
142 |
> crw-rw-rw-+ 1 freeswitch apache 116, 3 Apr 27 15:53 midiC0D0 |
143 |
> crw-rw-rw-+ 1 freeswitch apache 116, 9 Apr 27 15:53 pcmC0D0c |
144 |
> crw-rw-rw-+ 1 freeswitch apache 116, 8 Apr 29 00:15 pcmC0D0p |
145 |
> crw-rw-rw-+ 1 freeswitch apache 116, 7 Apr 27 15:53 pcmC0D1c |
146 |
> crw-rw-rw-+ 1 freeswitch apache 116, 6 Apr 27 15:53 pcmC0D2c |
147 |
> crw-rw-rw-+ 1 freeswitch apache 116, 5 Apr 27 15:53 pcmC0D2p |
148 |
> crw-rw-rw-+ 1 freeswitch apache 116, 4 Apr 27 15:53 pcmC0D3p |
149 |
> crw-rw-rw-+ 1 freeswitch apache 116, 1 Apr 27 15:53 seq |
150 |
> crw-rw-rw-+ 1 freeswitch apache 116, 33 Apr 27 15:53 timer |
151 |
> |
152 |
> I run freeswitch, so this is why I have the users this way. |
153 |
> |
154 |
|
155 |
Those devices in there should be owned by root:audio |
156 |
|
157 |
$ ls -al /dev/snd/ |
158 |
total 0 |
159 |
drwxr-xr-x 3 root root 260 Apr 28 20:07 . |
160 |
drwxr-xr-x 17 root root 4100 Apr 29 12:50 .. |
161 |
drwxr-xr-x 2 root root 60 Apr 28 20:07 by-path |
162 |
crw-rw----+ 1 root audio 116, 10 Apr 28 20:07 controlC0 |
163 |
crw-rw----+ 1 root audio 116, 2 Apr 28 20:07 hwC0D0 |
164 |
crw-rw----+ 1 root audio 116, 3 Apr 28 20:07 midiC0D0 |
165 |
crw-rw----+ 1 root audio 116, 9 Apr 28 20:24 pcmC0D0c |
166 |
crw-rw----+ 1 root audio 116, 8 Apr 29 12:51 pcmC0D0p |
167 |
crw-rw----+ 1 root audio 116, 7 Apr 28 20:07 pcmC0D1c |
168 |
crw-rw----+ 1 root audio 116, 6 Apr 28 20:07 pcmC0D2c |
169 |
crw-rw----+ 1 root audio 116, 5 Apr 28 20:11 pcmC0D2p |
170 |
crw-rw----+ 1 root audio 116, 4 Apr 28 20:07 pcmC0D3p |
171 |
crw-rw----+ 1 root audio 116, 33 Apr 28 20:07 timer |