1 |
Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
|
3 |
> On Sun, Apr 28, 2013 at 11:57 PM, <covici@××××××××××.com> wrote: |
4 |
> > Canek Peláez Valdés <caneko@×××××.com> wrote: |
5 |
> > |
6 |
> >> On Sun, Apr 28, 2013 at 11:08 PM, <covici@××××××××××.com> wrote: |
7 |
> >> > Canek Peláez Valdés <caneko@×××××.com> wrote: |
8 |
> >> > |
9 |
> >> >> On Sun, Apr 28, 2013 at 10:07 PM, <covici@××××××××××.com> wrote: |
10 |
> >> >> > Canek Peláez Valdés <caneko@×××××.com> wrote: |
11 |
> >> >> > |
12 |
> >> >> >> On Sun, Apr 28, 2013 at 7:56 PM, <covici@××××××××××.com> wrote: |
13 |
> >> >> >> > Hi. I have not used pulseaudio at all, but with gnome 3.8 I guess it |
14 |
> >> >> >> > must be there, but when I try to play a sound using either mplayer from |
15 |
> >> >> >> > the console which works fine withalsa, or even aplay, I get no sound |
16 |
> >> >> >> > unless I change the /etc/pulse/client.conf to spawn=no . |
17 |
> >> >> >> |
18 |
> >> >> >> Unless you have a very specific setup, you should not need to touch |
19 |
> >> >> >> the files under /etc/pulse. Also, are you trying to run the |
20 |
> >> >> >> system-wide PulseAudio service? Because that's basically wrong: |
21 |
> >> >> >> |
22 |
> >> >> >> http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide |
23 |
> >> >> >> |
24 |
> >> >> >> > Anyway to fix this? |
25 |
> >> >> >> |
26 |
> >> >> >> If you are running PA as a normal user (as you should), then perhaps |
27 |
> >> >> >> the per-application volume for MPlayer is muted. While playing |
28 |
> >> >> >> something with MPlayer, go to Settings -> Sound, then select the |
29 |
> >> >> >> Applications tab, and there should be a volume slider for all the |
30 |
> >> >> >> applications using audio. Just adjust as necessary. |
31 |
> >> >> > |
32 |
> >> >> > I got no sound when pa was run as a user. I am running these apps from |
33 |
> >> >> > the console -- apps such as aplay or anything which uses alsa. So I |
34 |
> >> >> > can't adjust any volumes under gnome, etc. |
35 |
> >> >> |
36 |
> >> >> Also, from the console you can use pactl. To play a sample sound there, do: |
37 |
> >> >> |
38 |
> >> >> pactl play-sample 0 |
39 |
> >> >> pactl play-sample 1 |
40 |
> >> >> |
41 |
> >> >> It should work. You can also set the volume from here: |
42 |
> >> >> |
43 |
> >> >> pactl set-sink-volume 0 "100%" |
44 |
> >> >> |
45 |
> >> >> 0 is usually the "master" volume. |
46 |
> >> >> |
47 |
> >> >> Check out man pactl. |
48 |
> >> > |
49 |
> >> > Well, in either system or user mode, root can play sound whereas a |
50 |
> >> > regular user gets silent, but without pulseaudio -- spawn=no, then a |
51 |
> >> > regular user can play sound. Does this give a clue? |
52 |
> >> |
53 |
> >> Not really; as I said, the PA documentation clearly says that if you |
54 |
> >> use system mode "You are on your own. You need to know you way around, |
55 |
> >> be able to write init scripts, dbus policies, to fix up device |
56 |
> >> permissions, and unix users, you need to pass around security cookies |
57 |
> >> and more." |
58 |
> >> |
59 |
> >> I haven't ever used system-wide PA. |
60 |
> >> |
61 |
> >> I think of the following; try to delete both /root/.pulse and |
62 |
> >> $HOME/.pulse, and rebooting (probably a logout/login should suffice, |
63 |
> >> but you never know). |
64 |
> >> |
65 |
> >> Another thing: if you installed PA since GNOME 3.8 needs it, why are |
66 |
> >> you using it without GNOME? If you use GNOME, the session manager will |
67 |
> >> automatically start PA as a user for you, and everything should work. |
68 |
> >> If you are not running GNOME, why do you run PA? If you are at the |
69 |
> >> console without X running, just don't use PA. Use mplayer -ao alsa or |
70 |
> >> whatever. |
71 |
> >> |
72 |
> >> Or do you want to run several audio apps in the console? |
73 |
> > |
74 |
> > I want to run apps from the console, but to start gnome when I need it. |
75 |
> |
76 |
> Then do that. When you start GNOME, it will start PA automatically: |
77 |
> you don't need to do anything. Don't try to start PA yourself; it's |
78 |
> DBus activated. |
79 |
> |
80 |
> |
81 |
> > I am running pa as a user and things are still not working, except for |
82 |
> > the root user who can play sounds. |
83 |
> |
84 |
> I repeat: you don't need to run PA. GNOME will start it for you. |
85 |
|
86 |
But will that workif I have spawn=no in my /etc/pulse/client.conf which |
87 |
I have to have for regular apps to work from theconsole? Or is there |
88 |
some other way to make this happen? |
89 |
|
90 |
|
91 |
|
92 |
-- |
93 |
Your life is like a penny. You're going to lose it. The question is: |
94 |
How do |
95 |
you spend it? |
96 |
|
97 |
John Covici |
98 |
covici@××××××××××.com |