Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] alsa: missing default device
Date: Wed, 24 Sep 2014 02:33:10
Message-Id: 20140924023255.GA4658@waltdnes.org
In Reply to: Re: [gentoo-user] alsa: missing default device by Frank Steinmetzger
1 On Tue, Sep 23, 2014 at 02:59:17PM +0200, Frank Steinmetzger wrote
2 > On Mon, Sep 22, 2014 at 07:22:12PM -0400, Walter Dnes wrote:
3 > > On Mon, Sep 22, 2014 at 05:49:10PM +0200, Frank Steinmetzger wrote
4 > >
5 > > > * I toggled those settings and rebuilt, but the result is still the same.
6 > >
7 > > You may have to configure your sound card setup manually. It's not as
8 > > scarey as it sounds. First question; what's the output of the command...
9 > >
10 > >
11 > > cat /proc/asound/cards
12 >
13 > Here you go, plus the contents of a few others and the tree of that dir.
14
15 First an elementary question. Please don't treat this as an insult.
16 Do you have the "alsasound" service running? I have an openrc machine.
17 I don't know the equivalant systemd commands. As a regular user, execute
18
19 /sbin/rc-update show
20
21 ...and alsasound should show up near the top. If it doesn't, that's
22 probably your problem. In that case use su or sudo for root privileges
23 and execute the following 2 commands as root...
24
25 rc-update add alsasound boot
26 /etc/init.d/alsasound start
27
28 The first command will cause alsasound to run at every bootup; the
29 second command is just for this time only, so you don't have to reboot.
30 Try playing sound again.
31
32 #######################################################################
33
34 If that doesn't work for you, "Plan B" is to create a .asoundrc file
35 in your home directory. It will over-ride /usr/share/alsa/alsa.conf and
36 you won't need root permissions to edit it. If you want the PCH
37 (analog?) to be the default, enter the following 3 lines in ~/.asoundrc
38
39 defaults.ctl.card 0
40 defaults.pcm.card 0
41 defaults.pcm.device 0
42
43 If you want the HDMI as your default, enter in ~/.asoundrc
44
45 defaults.ctl.card 1
46 defaults.pcm.card 1
47 defaults.pcm.device 1
48
49 --
50 Walter Dnes <waltdnes@××××××××.org>
51 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] alsa: missing default device Frank Steinmetzger <Warp_7@×××.de>