Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound using OpenRC with systemd -- Fixed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Sep 11, 2014 2:47 pm    Post subject: No sound using OpenRC with systemd -- Fixed Reply with quote

In trying to get sound which worked a day ago to work again. I have a use flag for systemd. lspci -v shows for audio
Quote:
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 8469
Flags: bus master, fast devsel, latency 0, IRQ 68
Memory at fa900000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
and
Quote:
01:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at fa080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Kernel driver in use: snd_hda_intel

snd_hda_intel is enables as a module in my kernel.

I think there is supposed to be a link from /dev/fd to /proc/self/fd, but it isn't there. If I "ln -sv /proc/self/fd /dev/fd", that doesn't seem to help (or hurt). I'm wondering if the problem as to do with udev.
If I run aplay it acts like it is putting out sound, but there is no sound. It says "ALSA <-> PulseAudio PCM I/O Plugin".
alsamixer shows 1 vertical bar only and it is not muted. If is use F6 to select my Intel card, it says "This sound device does not have any controls.".

lsmod does not list anything connected with sound. Any thoughts appreciated. Thanks,
Fred


Last edited by Fred Krogh on Sat Sep 13, 2014 12:04 am; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Sep 11, 2014 6:44 pm    Post subject: Reply with quote

The basics here would be: 'ls -l /dev/snd/', 'getfacl /dev/snd/*'' and 'amixer' (both on default device and on the card).
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Sep 11, 2014 7:08 pm    Post subject: Reply with quote

Not sure what to do with information below which I'm hoping is sufficiently related to what you suggested.
Quote:
# ls -l /dev/snd/
total 0
crw------- 1 root root 116, 2 Sep 11 08:23 controlC0
crw------- 1 root root 116, 3 Sep 11 08:23 controlC1
crw------- 1 root root 116, 4 Sep 11 08:23 controlC2
crw------- 1 root root 116, 5 Sep 11 08:23 pcmC2D0c
crw------- 1 root root 116, 1 Sep 11 08:23 seq
crw------- 1 root root 116, 33 Sep 11 08:23 timer
Quote:
# getfacl /dev/snd/*
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/controlC0
# owner: root
# group: root
user::rw-
group::---
other::---

# file: dev/snd/controlC1
# owner: root
# group: root
user::rw-
group::---
other::---

# file: dev/snd/controlC2
# owner: root
# group: root
user::rw-
group::---
other::---

# file: dev/snd/pcmC2D0c
# owner: root
# group: root
user::rw-
group::---
other::---

# file: dev/snd/seq
# owner: root
# group: root
user::rw-
group::---
other::---

# file: dev/snd/timer
# owner: root
# group: root
user::rw-
group::---
other::---


Quote:
# amixer info
Card default 'pulse'/'PulseAudio'
Mixer name : 'PulseAudio'
Components : ''
Controls : 4
Simple ctrls : 2

# amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0

# amixer scontents
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 0 [0%] [on]
Front Right: Capture 0 [0%] [on]


I should note that these command return nothing with "-c 0" or "-c 1", and with "-c 2" return stuff about the microphone.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Sep 11, 2014 9:38 pm    Post subject: Reply with quote

Perhaps there is something to be learned form this in dmesg.
Quote:
[ 0.582127] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 0.582365] usbcore: registered new interface driver snd-usb-audio
[ 0.582595] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 0.582831] snd_hda_intel 0000:00:1b.0: irq 68 for MSI/MSI-X

And then later in dmesg
Quote:
[ 0.586544] No soundcards found.
[ 0.591392] sound hdaudioC0D0: No codec parser is available
[ 0.610800] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 0.779142] sound hdaudioC1D0: No codec parser is available
[ 0.779582] sound hdaudioC1D1: No codec parser is available
[ 0.780055] sound hdaudioC1D2: No codec parser is available
[ 0.780419] sound hdaudioC1D3: No codec parser is available
Unfortunately I don't know what to make of this.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Sep 11, 2014 9:47 pm    Post subject: Reply with quote

A bit more -- in /proc/interrupts I have
Quote:
17: 96 0 0 0 0 0 0 0 IO-APIC-fasteoi snd_hda_intel
68: 101 0 0 0 0 0 0 0 PCI-MSI-edge snd_hda_intel
Columns after the first are for CPU0 ... CPU7. My question is should there be two interrupts for snd_hda_intel?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Sep 12, 2014 2:00 am    Post subject: Reply with quote

About that output - are you running stuff as root ?
Also, what's the content of /proc/asound/cards ?
As for amixer, I was interested in the full output - just 'amixer' for default + with card number for each card.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 2:48 am    Post subject: Reply with quote

pulseaudio and pulse/gconf-he are not run as root.
hd-audio1 and he-audio0 are running as root. I''m not clear on what else to check.
Quote:
# cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xfa900000 irq 68
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfa080000 irq 17
2 [C525 ]: USB-Audio - HD Webcam C525
HD Webcam C525 at usb-0000:00:1d.0-1.2, high speed

If I understand what you requested for amixer this is it.
Quote:
# amixer -c 0
# amixer -c 1
# amixer -c 2
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined
Capture channels: Mono
Limits: Capture 0 - 16
Mono: Capture 13 [81%] [25.50dB] [on]
Many thanks for looking into this.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 3:29 am    Post subject: Reply with quote

The no codec parser is available error usually mean that you didn't compile the Intel HD driver with support for your codec chip, if you don't know which one it is compile them all and then look in dmesg output to see if it gives you an indication of which one it is when it's loaded. (It may be the realtek. The error could also be that you're missing the HDMI port codec in which case you could ignore it if you dont have or are not using the HDMI port).

Another thing to try is install pavucontrol and check that the device is not muted there. Every now and then mine will mute itself after a reboot, I still haven't figured out why. When that happens aplay will act like it's playing but no audio just like you described.

If none of that helps try booting with the nox option making sure that the pulseaudio daemon is not set to start on boot, then run speaker-test. If you get any sound then at least you know the problem is with pulseaudio.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 5:01 am    Post subject: Reply with quote

I have always had the codes compiled as modules. snd_hda_intel I have had as a module and compiled into the kernel. When compiled as modules lsmod shows no sound stuff, but it is there after modprobe snd_hda_intel. I now have all of these compiled into the kernel (which I think is not the preferred way to do things, but just trying something different). Still no sound. I've always had pavucontrol installed, and things are definitely not muted. I overlooked running speaker-test. I was trying aplay with nox and it wanted pulseaudio to run. I'll give that a try after posting this.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 5:07 am    Post subject: Reply with quote

Just tried speaker-test with no x. Pulseaudio was not running, and evidently my speaker-test won't run without having pulse audio. Time for bed for me now.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 6:26 am    Post subject: Reply with quote

Fred Krogh wrote:
Just tried speaker-test with no x. Pulseaudio was not running, and evidently my speaker-test won't run without having pulse audio. Time for bed for me now.


It sounds to me like you're missing something on the ALSA drivers. Once you start pulseaudio it takes over the alsa devices and installs it's alsa plugin as an alsa device (even if you kill pulseaudio it's alsa plugin stays installed). Before you start pulse aplay and speaker-test will talk directly to the device so if it's giving you an error something's wrong with ALSA.

What kernel version are you running? If it's 3.12.x or earlier when compiling as modules you should have at least 2 modules loaded (snd_hda_intel and snd_hda_codec) and the codecs you select when building are part of the snd_hda_module. On 3.14.x and later you should at leat 4 because the driver is more modularized and the codecs get their own modules, for me it is: snd_hda_intel, snd_hda_controller, snd_hda_codec, snd_hda_codec_generic, snd_hda_codec_realtek, and snd_hda_codec_hdmi. The last two are for my "analog" codec (realtek). If you don't have an HDMI port then you don't need the HDMI codec but you do need one of the analog codecs, that's why I suggested you build all the codecs in the driver (check all Build XXXX codec support under Intel HD Audio). I also have snd_pcm but I think that's pulseaudio's alsa plugin.

If you already did that then I would suggest you boot with nox, then load them all manually with modprobe (they should get loaded automatically by udev, the fact that they didn't also hints that somethings wrong with the driver) and then try speaker-test again before starting X or pulseaudio.

Another possibility if you got a dual codec card like me is that it's playing to the wrong port (each port is seen as a separate card) but I don't think that's the case because sound-test wouldn't give you an error if you run it before starting pulseaudio.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 2:00 pm    Post subject: Reply with quote

This all started after trying kernel 3.16.2. Using it there was no network. As usual in these situations, I just went back to an earlier kernel, and still no network. Back to 3.16.2, and I changed config_r8169 (my network card) to compile into the kernel, instead of being a module. Comparing my .config files evidently config_mii had a similar change, but I don't think I changed it as I can't even find the option using make xconfig.

Sometime ago I tried systemd and lots of stuff didn't work. But I still have systemd in my system. I've tried to get rid of it, but there seem to be so many dependencies that I gave up on it. I could try booting with it again, and that might fix this problem, but even if it did, I fear it would create others. I'm very confused about udev. I believe that systemd is supposed to do much of what udev does. Udev does not install for me as it conflicts with systemd, although there is a virtual udev.

I finally found a way to run speaker-test without using pulseaudio. That was done using an earlier kernel, and gave no sound.

Note that all my sound modules are now compiled into the kernel. The dual codec idea is interesting. How would I determine if my card has this, and if so what would I do about it. I have listed the details from lspci above.

Concerning missing something for alsa, I have the following as reported by equery l *alsa*
Quote:
[IP-] [ ] dev-python/pyalsa-1.0.26-r1:0
[IP-] [ ] media-libs/alsa-lib-1.0.28:0
[IP-] [ ] media-libs/alsa-oss-1.0.28:0
[IP-] [ ] media-plugins/alsa-plugins-1.0.28:0
[IP-] [ ] media-plugins/gst-plugins-alsa-0.10.36-r1:0.10
[IP-] [ ] media-sound/alsa-tools-1.0.28:0.9
[IP-] [ ] media-sound/alsa-utils-1.0.28:0.9
Is there something else that should be there? Many thanks.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Sep 12, 2014 3:05 pm    Post subject: Reply with quote

...
"It sounds to me like you're missing something on the ALSA drivers." meant "something's wrong with your *kernel* ALSA settings".
Basically it was a request for your kernel config, at very least the whole section starting with CONFIG_SND.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 3:25 pm    Post subject: Reply with quote

Here is some stuff extracted from my .config
Quote:
_SND_JACK=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_HRTIMER=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_MAX_CARDS=8
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_KCTL_JACK=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_RAWMIDI_SEQ=y
# CONFIG_SND_OPL3_LIB_SEQ is not set
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not set
# CONFIG_SND_EMU10K1_SEQ is not set
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_DRIVERS is not set
CONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ASIHPI is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
CONFIG_SND_INTEL8X0=m
CONFIG_SND_INTEL8X0M=m
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set

#
# HD-Audio
#
CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_DSP_LOADER=y
CONFIG_SND_HDA_PREALLOC_SIZE=2048
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_INPUT_JACK=y
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_CODEC_CIRRUS=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=y
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
# CONFIG_SND_USB_UA101 is not set
# CONFIG_SND_USB_USX2Y is not set
# CONFIG_SND_USB_CAIAQ is not set
# CONFIG_SND_USB_US122L is not set
# CONFIG_SND_USB_6FIRE is not set
# CONFIG_SND_USB_HIFACE is not set
# CONFIG_SND_BCD2000 is not set
# CONFIG_SND_SOC is not set
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=m
Note that the sound stopped working before I made any changes from a .config that worked just fine. Now a lot more of the stuff is built into the kernel, instead of as modules. I'm pretty sure that this should not be necessary, but desperate people do desperate things. Also note that old kernels that used to work no longer have sound. Thanks.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 5:28 pm    Post subject: Reply with quote

Fred Krogh wrote:

Note that all my sound modules are now compiled into the kernel. The dual codec idea is interesting. How would I determine if my card has this, and if so what would I do about it. I have listed the details from lspci above.



Boot the kernel where speaker-test "worked" and run aplay -L, that will list the devices by name, even with a signle codec you may have more than one device (mine lists surround sound but I only got a stereo jack). <edit>You can run aplay -l that will list 2 cards if you have a dual HDMI/Analog card. It still possible even if you only have an analog that your card has outputs that are not connected internally and it's playing to one of them, those would get listed with the -L option).</edit>


Then you can use aplay with the --device=NAME option to play to a specific device/output, if one of them works then you need to configure ALSA to use it as the default device. Also if you boot that kernel and start X and pulseaudio all the devices should be listed in pavucontrol's configuration tab.

Your kernel settings look like mine except I only got Realtek and HDMI support (cause I'm sure that's what I got) and I disabled OSS because pulseaudio has an OSS plugin but I don't think that's the problem. If the what've I've just suggested works you can post a diff of the two .config files for the working and non-working kernel.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 5:42 pm    Post subject: Reply with quote

Fred Krogh wrote:

Sometime ago I tried systemd and lots of stuff didn't work. But I still have systemd in my system. I've tried to get rid of it, but there seem to be so many dependencies that I gave up on it. I could try booting with it again, and that might fix this problem, but even if it did, I fear it would create others. I'm very confused about udev. I believe that systemd is supposed to do much of what udev does. Udev does not install for me as it conflicts with systemd, although there is a virtual udev.


Udev was merged into systemd so if you're using systemd you got it installed as part of systemd. Unfortunatelly I don't use systemd and know very little about it. AFAIK currently systemd and OpenRC are exclusive and cannot be installed at once. Do you mean you have them both installed?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 6:35 pm    Post subject: Reply with quote

Tried the aplay -L where the speaker-test (which as noted before) gave no sound. aplay _L listed null and pulse. I didn't try null, and pulse gave no sound.

And yes I have systemd and have been booting using OpenRC which has worked just fine for some time. As mentioned earlier I have tried getting rid of systemd and ran into tons of dependency problems. I suppose if no other suggestions are forthcoming I will try to see if I can get booting with systemd to work. Last time I tried it was a terrible mess, but that was probably 6 months ago. And if that fails start seeing how much needs to be unmerged in order to rid the system of systemd. Last I tried it looked almost impossible.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 6:59 pm    Post subject: Reply with quote

Fred Krogh wrote:
Tried the aplay -L where the speaker-test (which as noted before) gave no sound. aplay _L listed null and pulse. I didn't try null, and pulse gave no sound.


So your ALSA drivers are not loaded, pulseaudio has got to be playing to the only device you've got which is null so obviously this gives no output. I meant you run it before starting pulse (booting with nox) but it'll make no difference since you don't have a sound device.

Did you run make modules_install after compiling your kernel? Try compiling everything under HD-Audio as modules, then run make install and make modules_install, boot the new kernel with nox and run lsmod to see if they got loaded, if they didn't load all the snd_hda_* modules manually with modprobe as I suggested above (run ls /lib/modules/<kernel version>/kernel/sound/pci/hda) to get the list. Then run aplay -L, if your sound device gets listed now then something's wrong with udev/openrc/systemd, if it still doesn't then either something's still wrong with your kernel settings or it's a hardware issue.

Edit:
You can also disable all sound driver options outside of ALSA -> HD-Audio (including all OSS options) as that's all you need.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 9:46 pm    Post subject: Reply with quote

I am trying to do what you suggest. In the process, I've discovered that my printer doesn't work. When I first booted kernel 3.16.2 my network didn't work. It only started working when I compiled it into the kernel. All these things seem related to me, and as time goes on I'm more and more inclined to blame the udev in systemd. Anyway nothing I've done has given me any sound. I need modprobe snd-hda-intel to get any of the sound modules loaded. lsmod gives
Quote:
Module Size Used by
snd_hda_codec_hdmi 31190 4
snd_hda_codec_realtek 46259 1
snd_hda_codec_generic 39926 1 snd_hda_codec_realtek
snd_hda_intel 14143 0
snd_hda_controller 14860 1 snd_hda_intel
snd_hda_codec 72423 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
xt_LOG 6735 9
xt_addrtype 1665 5
xt_comment 835 59
xt_recent 7278 1
xt_nat 1745 5
ipt_REJECT 1945 4
ipt_ECN 1584 0
ipt_ah 989 0
nf_nat_tftp 846 0
nf_nat_sip 7253 0
nf_nat_pptp 1994 0
nf_nat_proto_gre 1141 1 nf_nat_pptp
nf_nat_irc 1342 0
nf_nat_ftp 1556 0
nf_conntrack_tftp 3681 1 nf_nat_tftp
nf_conntrack_sip 18629 1 nf_nat_sip
nf_conntrack_pptp 3571 1 nf_nat_pptp
nf_conntrack_proto_gre 3316 1 nf_conntrack_pptp
nf_conntrack_netlink 17133 0
nf_conntrack_netbios_ns 965 0
nf_conntrack_broadcast 1013 1 nf_conntrack_netbios_ns
nf_conntrack_irc 3371 1 nf_nat_irc
nf_conntrack_ftp 5951 1 nf_nat_ftp
xt_TCPMSS 2139 0
xt_policy 2034 0
xt_NFQUEUE 2142 0
xt_NFLOG 998 0
nfnetlink_log 6779 1 xt_NFLOG
xt_mark 1053 1
xt_limit 1598 0
xt_DSCP 1891 6
xt_conntrack 2673 26
xt_connmark 1493 0
xt_state 1071 0
iptable_raw 1140 0
iptable_nat 2270 1
nf_nat_ipv4 2912 1 iptable_nat
nf_nat 10034 9 nf_nat_ftp,nf_nat_irc,nf_nat_sip,nf_nat_proto_gre,nf_nat_ipv4,nf_nat_pptp,nf_nat_tftp,xt_nat,iptable_nat
nf_conntrack_ipv4 6060 27
nf_defrag_ipv4 1147 1 nf_conntrack_ipv4
iptable_mangle 1328 1
nfnetlink 4237 2 nfnetlink_log,nf_conntrack_netlink
iptable_filter 1232 1
nvidia 11030357 28


If I run aplay -L as root, I get
Quote:
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
But when run as a regular user I get
Quote:
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
I have one more thing I'm going to try. I'm going to back up to an earlier version of systemd, and try anything else anyone may come up with. Many thanks.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 11:10 pm    Post subject: Reply with quote

I just tried the instructions I gave you to run speaker-test before starting pulseaudio on two different laptops. On this one (the one with the dual sound card) it doesn't work, on the other one it works and I'm not sure what the difference is other than the sound card. However pulseaudio works on both.

Since you know you got a problem with the modules not loading automatically you can try to load them manually before starting pulseaudio, then start X (which should start pulseaudio) and try speaker-test from a terminal window.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Sep 12, 2014 11:31 pm    Post subject: Reply with quote

In the process of backing out to a earlier version of systemd, I discovered that I need to emerge udev-init-scripts. (Don't know why now and not earlier.) Anyway that makes a big diffference, although not enough to get sound working. It did get the printer working though! Now lsmod (with no need for modprobe) gives
Quote:
Module Size Used by
xt_LOG 6735 9
xt_addrtype 1665 5
xt_comment 835 59
xt_recent 7278 1
xt_nat 1745 5
ipt_REJECT 1945 4
ipt_ECN 1584 0
ipt_ah 989 0
nf_nat_tftp 846 0
nf_nat_sip 7253 0
nf_nat_pptp 1994 0
nf_nat_proto_gre 1141 1 nf_nat_pptp
nf_nat_irc 1342 0
nf_nat_ftp 1556 0
nf_conntrack_tftp 3681 1 nf_nat_tftp
nf_conntrack_sip 18629 1 nf_nat_sip
nf_conntrack_pptp 3571 1 nf_nat_pptp
nf_conntrack_proto_gre 3316 1 nf_conntrack_pptp
nf_conntrack_netlink 17133 0
nf_conntrack_netbios_ns 965 0
nf_conntrack_broadcast 1013 1 nf_conntrack_netbios_ns
nf_conntrack_irc 3371 1 nf_nat_irc
nf_conntrack_ftp 5951 1 nf_nat_ftp
xt_TCPMSS 2139 0
xt_policy 2034 0
xt_NFQUEUE 2142 0
xt_NFLOG 998 0
nfnetlink_log 6779 1 xt_NFLOG
xt_mark 1053 1
xt_limit 1598 0
xt_DSCP 1891 6
xt_conntrack 2673 26
xt_connmark 1493 0
xt_state 1071 0
iptable_raw 1140 0
iptable_nat 2270 1
nf_nat_ipv4 2912 1 iptable_nat
nf_nat 10034 9 nf_nat_ftp,nf_nat_irc,nf_nat_sip,nf_nat_proto_gre,nf_nat_ipv4,nf_nat_pptp,nf_nat_tftp,xt_nat,iptable_nat
nf_conntrack_ipv4 6060 27
nf_defrag_ipv4 1147 1 nf_conntrack_ipv4
iptable_mangle 1328 1
nfnetlink 4237 2 nfnetlink_log,nf_conntrack_netlink
iptable_filter 1232 1
snd_usb_audio 102333 4
uvcvideo 58517 0
snd_usbmidi_lib 16045 1 snd_usb_audio
videobuf2_vmalloc 2344 1 uvcvideo
snd_hwdep 5317 1 snd_usb_audio
videobuf2_memops 1455 1 videobuf2_vmalloc
snd_rawmidi 14730 1 snd_usbmidi_lib
videobuf2_core 17522 1 uvcvideo
snd_hda_codec_hdmi 31190 4
nvidia 11030357 28
snd_hda_codec_realtek 46259 1
snd_hda_codec_generic 39926 1 snd_hda_codec_realtek
snd_hda_intel 14143 12
snd_hda_controller 14860 1 snd_hda_intel
sr_mod 11543 0
snd_hda_codec 72423 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
cdrom 22556 1 sr_mod
parport_pc 14902 0
parport 15914 1 parport_pc
acpi_cpufreq 5770 1
aplay -L gives
Quote:
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
I've tried playing around with alsamixer, but probably don't know what I'm doing well enough to get something working. But pavucontrol for output devices shows HDMI / Display Port (unplugged) and that is the only choice. I have the hdmi codec loaded, but as far as I know, I should not need it. Might this be the problem? Thanks.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 11:56 pm    Post subject: Reply with quote

Fred Krogh wrote:

I've tried playing around with alsamixer, but probably don't know what I'm doing well enough to get something working. But pavucontrol for output devices shows HDMI / Display Port (unplugged) and that is the only choice. I have the hdmi codec loaded, but as far as I know, I should not need it. Might this be the problem? Thanks.


I think removing the HDMI codec would make the analog device the default but I never tried that.

First I would try looking under the Configuration tab on pavucontrol and see if you got two devices listed and if your analog device is set to off switch it to "Analog Stero Duplex" and switch HDMI to Off.

Also if you're using KDE you may run into problems with kmix due to a bug (since both drivers have the same name) so see this post of mine: https://forums.gentoo.org/viewtopic-t-996764-highlight-.html basically it comes down to adding the follwing to /etc/modprobe.d/alsa.conf

Code:

options snd-ca0106 index=0
alias snd-card-1 snd-hda-intel
options snd-hda-intel index=1
options snd cards_limit=2


I *think* the way that works is it causes the realtek module to be loaded before the HDMI making it the default for kmix. There's another way to change the default device in asound.conf but it doesn't fix the problem with kmix.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Sep 13, 2014 12:02 am    Post subject: Reply with quote

Thanks, your last comments finished the job. Blessed sound and skype are back!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum