Gentoo Archives: gentoo-user

From: Francisco Ares <frares@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] tip ou pulseaudio
Date: Thu, 08 Jan 2015 08:25:33
Message-Id: CAHH9eM6coKrRMfaHo-VGUDa2jG73Y009sf2+QCJBSaV4J6WvJw@mail.gmail.com
In Reply to: Re: [gentoo-user] tip ou pulseaudio by "Canek Peláez Valdés"
1 2015-01-07 15:55 GMT-02:00 Canek Peláez Valdés <caneko@×××××.com>:
2
3 > On Wed, Jan 7, 2015 at 4:51 AM, Jacques Montier <jmontier@×××××.com>
4 > wrote:
5 > >
6 > > Hello,
7 > >
8 > > I had the same problem some months ago.
9 > > Adding the line
10 > > set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo
11 > analog-output-lineout
12 > > to /etc/pulse/default.pa solved the problem.
13 >
14 > Please don't top-post.
15 >
16 > That card (pci-0000_00_1b.0) is specific only on your system. It will
17 > probably don't help Francisco.
18 >
19 > To see the card name, do:
20 >
21 > pactl list cards
22 >
23 > To set the default output and input (it's listed in the above command), use
24 >
25 > pactl set-card-profile CARD PROFILE
26 >
27 > You can edit /etc/pulse/default.pa, but it's not really necessary. The
28 > configuration gets stored in $HOME/.pulse, for example:
29 >
30 > cat $HOME/.pulse/$(cat /etc/machine-id)-default-sink
31 >
32 > will show you the default sink.
33 >
34 > Regards.
35 > --
36 > Canek Peláez Valdés
37 > Profesor de asignatura, Facultad de Ciencias
38 > Universidad Nacional Autónoma de México
39 >
40
41
42 Thanks, Canek,
43
44 As you have predicted, the setttings from Jacques didn't work for me, but
45 you both provided a good starting point.
46
47 Nowadays as a regular user, pulseaudio comes up with all digital outputs,
48 and no analog ones. I have to login as root in a TTY console (no X, plain
49 old text mode) and issue a command like this:
50
51 pulseaudio -D --system
52
53 Then I am able to log in as a normal user and use Xorg (KDE) with sound
54 enabled and working as expected.
55
56 I have learned a few "pactl" commands, and checked the correct syntax for
57 my card, the correct profile and port from this
58
59 If I set up "/etc/pulse/default.pa" with these values and simply star
60 pulseaudio as root, it doesn't complain about the configuration (I have had
61 a few complaints for some tipos). Then, after killing this instance and
62 logging as a regular user, all available audio outputs on KDE are marked
63 either with a warning sign or an error sign, and no sound comes up.
64
65 But, again, you both gave me what I asked, a tip. Now I think I can go on
66 with the docs and a few more trial-and-error tests.
67
68 Thanks a lot!
69 Francisco