You are not logged in.
Hi,
so I installed Arch Linux again and have problems with the sound. I think there is a problem with PulseAudio, as test sounds from settings (cinnamon) and using 'aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav' work. But when I open music/videos in VLC, Firefox or Clementine, there is no sound, nor are system sounds output.
I tried using headphones and everything works just fine.
I've been searching for a while now and found nothing that could help me. I can't figure out, what's wrong.
Previously I used an AMD graphics card and had no problems with sound and HDMI. Also I can't remember doing something special when I installed and used Arch back then. Now I use the HD3000 graphics included in my Intel Core i7-2600k. I need HDMI because I use an A/V-receiver.
Thank you in advance
Offline
Does paplay work?
Offline
Tried it with /usr/share/sounds/alsa/Front_Center.wav and it works. but not when I try to play back anything simultaneously in another program
strange. When I use paplay and then start playing music in clementine, while paplay outputs, it works...
Last edited by iuno (2014-08-10 00:04:16)
Offline
Hmm, strange. Have you tried this?
Offline
Ah, wait, did you install pulseaudio-alsa and alsa-plugins?
Offline
Did not work...
Yes, both of them are installed.
Offline
Check amixer/alsamixer for any headphone/front panel switches. Try hdajackretask from alsa-tools package, check if the pinout is correct. Is hw:0,7 a hdmi card/device? Check 'aplay -l'. I would try to get sound from alsa only first, but also check pavucontrol. Should module suspend-on-idle be activated, disable it. Check if something is blocking sound with 'fuser -v /dev/snd/*'. Anything relevant in 'dmesg'?
Offline
Are there any custom .asoundrc or sound related config files in your home folder?
Offline
@emeres:
card 0, dev 7 is correct. Sound from alsa-only works by using aplay.
$ fuser -v /dev/snd/*
/dev/snd/controlC0: iuno 983 F.... pulseaudio # permanent
/dev/snd/pcmC0D7p: iuno 983 F...m pulseaudio # This line is only output while sound is or should be playingI found out that running
$ paplay /usr/share/sounds/alsa/Front_Center.wav & pavucontrolwill allow me to play sound - while I keep pavucontrol open. The other way somehow 'blocks' paplay again. So, when i open pavucontrol and then paplay it stays quiet. Same effect like just trying to play music etc.
For both sequences the output of fuser stays the same.
Also, everything in pavucontrol stays the same. It sais HDMI/DisplayPort 2 (plugged in) and the volume bar moves when it is trying or playing something.
Disabling the module did not help.
This is all I found from dmesg:
[ 2.757647] snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002)
[ 2.757777] snd_hda_intel 0000:00:1b.0: irq 61 for MSI/MSI-X
[ 2.770977] sound hdaudioC0D0: autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 2.770983] sound hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 2.770985] sound hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 2.770988] sound hdaudioC0D0: mono: mono_out=0x0
[ 2.770990] sound hdaudioC0D0: dig-out=0x11/0x1e
[ 2.770992] sound hdaudioC0D0: inputs:
[ 2.770995] sound hdaudioC0D0: Front Mic=0x19
[ 2.770998] sound hdaudioC0D0: Rear Mic=0x18
[ 2.771000] sound hdaudioC0D0: Line=0x1a
[ 2.791075] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[ 2.791167] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
[ 2.802152] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
[ 2.802231] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18
[ 2.802296] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input19
[ 2.802337] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input20
[ 2.802374] input: HDA Intel PCH Line Out Side as /devices/pci0000:00/0000:00:1b.0/sound/card0/input21
[ 2.802426] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input22
[ 2.802460] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input23@Pse:
I found and tried different .asoundrc files from wiki/forums (ofc edited to card 0, dev 7) but had no success
Last edited by iuno (2014-08-11 09:31:39)
Offline
Unload the suspend-on-idle module, so that pulseaudio grabs the playback device permanently.
Offline
Already tried
Offline
Did you reload pulseaudio after that? Did you check fuser again?
Edit: Delete the alsa configuration files, only /etc/asound.conf from pulseaudio-alsa package should stay. Decide, either you use alsa only or you run pulseaudio on top of alsa.
Last edited by emeres (2014-08-10 11:45:58)
Offline
I rebooted. fuser does now always output both lines, but the problems stayed. I can play sound only, immediately after I play back test sounds from settings or (p)aplay.
What config files may there be apart from .asoundrc? I deleted this file after it did not help
I just don't get what I do wrong. Playing back a .wav file with vlc works too. Playing back a .m4a or .mp3 with vlc don't - except if I start the playback while a .wav file is played back....
Last edited by iuno (2014-08-10 12:28:38)
Offline
Does vlc use pulseaudio output or directly alsa? Check that with fuser. I would suspect there is a problem with permissions for pulseaudio or some part of its network capabilities. Did you get through the troubleshooting section from pulseaudio wiki? What have tried out? I would default the configuration for pulseaudio, except suspend-on-idle module, disable all iec958 outputs reposted by 'amixer' or 'amixer -c 1'.
With pulseaudio killed you should be able to run multiple instances of speaker-test with the default dmix as output device. If that does not work, then there is something on the alsa side, if it does, pulseaudio probably causes the problem.
Offline
Yes, I read through the troubleshooting section and tried some things that seemed useful to me there.
I have un/re-installed all pulseaudio, alsa and gstreamer packages (even cinnamon because of dependencies) with no luck. But now I have an option to explicitly choose pulseaudio or alsa and other sinks in the preferences of clementine. I chose pulseaudio, of course. Same option was in VLC. I don't know how to find out with fuser but when I choose alsa in clementine or vlc settings, I can see the effect in pavucontrol (showing the program uses alsa). So I guess this selection works.
When I kill pulseaudio I hear nothing using speaker-test with no arguments. I don't know how to use default dmix? I could run multiple instances, there is no error if you mean this. But no sound. When I restart pulseaudio, I hear sound from speaker-test...
I had to use amixer -c 0 because my card is #0
I get
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'IEC958',1how do I disable these?
Last edited by iuno (2014-08-10 21:21:48)
Offline
https://bbs.archlinux.org/viewtopic.php?id=185537
My bad, alsa redirects everything to pulse, you would have to disable /etc/asound.conf. Does not matter, right now.
Edit: By default amixer uses '-c 0', so there is no need for that.
Last edited by emeres (2014-08-10 21:32:09)
Offline
np, thanks for helping!
(pulseaudio killed)
$ amixer sset 'IEC958 Default PCM' off
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
$ amixer sset 'IEC958' off
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]Then running multiple instances of
speaker-test -c 2 -t wav -D plug:dmixStill no sound but also no error
Offline
In your case it would have to be:
speaker-test -c 2 -t wav -D plug:dmix:0,7Is the third iec disabled?
Also, since I assume your sound card is hda compliant, take a look at hdajackretask from alsa-tools package. Check if all jack sockets are set up correctly.
Last edited by emeres (2014-08-10 22:15:06)
Offline
$ speaker-test -c 2 -t wav -D plug:dmix:0,7
speaker-test 1.0.28
playback-device is plug:dmix:0,7
stream-parameters are 48000 Hz, S16_LE, 2 channels
WAV-file(s)
ALSA lib conf.c:4589:(parse_args) Unknown parameter 1
ALSA lib conf.c:4722:(snd_config_expand) Parse arguments error: file or directory not found
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM plug:dmix:0,7
Error while opening device: -2, file or directory not found(translated)
yes, all three are disabled
what should I see in hdajackretask? I could choose between two codecs "Realtek ALC892" and "Intel CougarPoint HDMI". Pin ID for HDMI out is 0x07 - which I consider right. I tried overriding all realtek outputs with 'disconnected' and Intel HDMI with 'HDMI' but nothing changed.
Last edited by iuno (2014-08-10 22:39:40)
Offline
For future reference, to get English output use this.
Dmix should accepts those, but it also does not work for me. I will have to check this. Please post the following, even if only for completeness sake:
aplay -lL;
lspci -nn | grep -i audio;
lsmod | grep ^snd;
amixer;As for the issue at hand, what is listed in pavucontrol as your devices?
Last edited by emeres (2014-08-10 22:58:15)
Offline
$ aplay -lL;
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 0
HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 7: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0$ lspci -nn | grep -i audio;
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)$ lsmod | grep ^snd;
snd_hda_codec_hdmi 40396 1
snd_hda_codec_realtek 54803 1
snd_hda_codec_generic 56366 1 snd_hda_codec_realtek
snd_hda_intel 22831 4
snd_hda_controller 22975 1 snd_hda_intel
snd_hda_codec 104665 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 6652 1 snd_hda_codec
snd_pcm 83207 5 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer 19294 1 snd_pcm
snd 61276 15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel$ amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Rear Left: Playback 65536 [100%] [on]
Rear Right: Playback 65536 [100%] [on]
Front Center: Playback 65536 [100%] [on]
Woofer: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [on]
Front Right: Capture 65536 [100%] [on]
Rear Left: Capture 65536 [100%] [on]
Rear Right: Capture 65536 [100%] [on]
Front Center: Capture 65536 [100%] [on]
Woofer: Capture 65536 [100%] [on]pavucontrol lists 'Internal Audio' with a bunch of profiles, including "Digital Surround 5.1 (HDMI) Output", Digital Stereo (HDMI) output, some other analog surround outputs from 4.0 to 7.1 and Analog Stereo Output, Analog Stereo Duplex. do you need the list?
Port: HDMI / DisplayPort 2 (plugged in) # this is like in cinnamon audio settings
Offline
As for dmix, all listed combinations should work according to the documentation. Maybe it is out of date, there are some parsing problems with the shell or other. The following does work for me, so I assume it will work for you also:
speaker-test -c 2 -t wav -D plug:dmix:"{CARD 1 DEV 3}" # HDMI is card 1, device 3 on my system
speaker-test -c 2 -t wav -D plug:dmix:"{CARD 0 DEV 7}"https://bbs.archlinux.org/viewtopic.php … 4#p1445704
Does this mean, it is working as it is supposed to? I was between multiple threads, so I easily missed that part.
Your sound card is very interesting, I wonder how the physical hardware layout looks like. PA should respect settings in pavucontrol, but should it not work, you could also set the default sink in your configuration file in ~/.config/pulse or globally.
Last edited by emeres (2014-08-11 01:54:33)
Offline
There is already a default sink set under ~/.config/pulse, content: "alsa_output.pci-0000_00_1b.0.hdmi-surround-extra1". Don't know what to do with that. I thought it was set by pavucontrol and should be right?
speaker-test -c 2 -t wav -D plug:dmix:"{CARD 0 DEV 7}"works (while pulseaudio is killed, right!?) in multiple instances, fuser gives
$ fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/pcmC0D7p: iuno 3431 F...m speaker-test
iuno 3486 F...m speaker-test
iuno 3491 F...m speaker-test
/dev/snd/timer: iuno 3431 f.... speaker-test
iuno 3486 f.... speaker-test
iuno 3491 f.... speaker-testI see no problem there?
I don't really know what you mean with the linked post. But I think a summary might be useful, as I really messed up writing in this thread.
When pulseaudio is killed:
Like mentioned above, speaker-test works with C0D7
VLC with Preferences - Audio - Output module set to 'Alsa audio output', Device set to 'HDA Intel PCH, HDMI 0 Audio Output' works
Clementine with GStreamer Audio Engine - Output plugin set to 'Audio sink (ALSA)' does not work
While trying with ALSA-only I found this out:
$ fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: iuno 652 F.... firefox
iuno 4167 F.... vlc
iuno 4259 F.... clementine
/dev/snd/pcmC0D0p: iuno 652 F...m firefox
iuno 4259 F...m clementine
/dev/snd/pcmC0D7p: iuno 4167 F...m vlc
/dev/snd/timer: iuno 652 f.... firefox
iuno 4259 f.... clementineConcluding Clementine and Firefox use the wrong device. I guess c0d0 may be the default device for alsa? But for pulseaudio it shouldn't matter, right?
Choosing 'HDA Intel PCH, ALC893 Analog Output' as device in VLC results in no sound, obviously, and 'C0D0' in fuser.
However, trying to play back compressed audio with VLC, alsa-only, everything like above does not work. fuser shows the same (C0D7), vlc shows no error playing back .m4a or .mp3 files but it stays quiet.
.oga (vorbis) files I found in /usr/share/sounds/freedesktop do work, though. While VLC is playing, I can't run speaker-test (error: -16,Device or resource busy)
When PulseAudio comes in , some things change, obviously ![]()
I'd like to name two states. State 1 meanns sound is working, state 2 means sound is not working. State 1 is default.
First of all, no matter what I do, fuser always gives
$ fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: iuno 5552 F.... pulseaudio
/dev/snd/pcmC0D7p: iuno 5552 F...m pulseaudioForcing VLC to use 'Alsa audio output'-module, and 'HDA Intel PCH, HDMI 0 Audio Output' as device results in device or resource busy error.
Setting device to 'PulseAudio Sound Server' or 'Default ALSA Output (currently PulseAudio Sound Server)' both work. The 'Module' setting in preferences does not matter. I could either choose ALSA or Pulse with the same effect*. Long story short, audio output works, still not with compressed audio files. This means the state switches to state 2, as long as I keep the .wav file running! -> clementine and firefox also could play back sound, vlc can now also play back compressed audio - as long as I keep at least one of them running. When all sound output is paused, I fall back to state 1. Only playing back a .wav file in VLC or (p)aplay could save me back to state 2. I have to start other apps immediately, when in state 1 as pausing playback instantly causes a fallback to state 1. Opening pavucontrol, while in state 2 keeps me in state 2 as long as pavucontrol stays open. I used this as a dirty workaround for the last days.
State changes are also blocked the other way round. While in state 1, trying to play sound from clementine or opening pavucontrol results as staying in state 1, also when I play a .wav file with vlc.
Sorry that was much text, but I hope it's clearer now
*correction: This setting needs a restart of vlc to take effect. When the 'Module' is set to ALSA, pavucontrol lists 'ALSA plug-in [vlc]: ALSA Playback', when set to pulseaudio, the entry is called 'VLC media player: audio stream'. Same for clementine, when I change from ALSA to pulseaudio in the settings. Firefox always uses ALSA. However, it does not have effect on the state-thing. I still need to enter state 2 with the methods mentioned above
Last edited by iuno (2014-08-11 11:20:44)
Offline
To direct firefox and clementine, set up to use alsa, to the appropriate device you could create the following ~/.asoundrc:
defaults.pcm.device 7But /etc/asound.conf would have to be disabled. I consider this a side issue however, and as you mentioned, it should not matter when using pulseaudio.
So the behaviour where a sound appears to be played, but actually outputs no sound, occurs in pulseaudio and alsa. Is that correct? It also appears vlc, when set up to use alsa, tries to use the hardware directly (hw:0,0 or hw:0,7). Should that be the case and vlc and/or other components have a problem decoding the content, it would explain this behaviour, at least in case of vlc. One could create a new pcm for vlc to use dmix before hardware for example. You probably also have problem playing back lossy content with clementine or firefox, right?
Speaker-tests output looks good.
Try to play lossy files with mplayer or mpv directly to alsa ('mpv -ao alsa:device='[plughw:0,7]' depending on your shell) and through pulseaudio. Are you certain those files are correctly encoded? Maybe you can upload a sample somewhere?
As a workaround for alsa only, you could try sending data to dmix or null and see if it triggers state 1:
cat /dev/urandom | aplay -D plug:dmix --
cat /dev/urandom | aplay -D null --It looks more and more codec related, even though a driver/module issue, because of blocking between states, cannot be excluded . Please post:
pacman -Qi vlc ffmpegOffline
I'm afraid, I won't be allowed to upload samples from my ripped CDs.
$ pacman -Qi vlc ffmpeg
Name : vlc
Version : 2.1.5-1
Description : A multi-platform MPEG, VCD/DVD, and DivX player
Architecture : x86_64
URL : http://www.videolan.org/vlc/
Licenses : LGPL2.1 GPL2
Groups : None
Provides : None
Depends On : a52dec libdvbpsi libxpm libdca qt4 libproxy sdl_image libdvdnav libtiger lua libmatroska zvbi taglib libmpcdec ffmpeg faad2 libupnp libshout libmad libmpeg2 xcb-util-keysyms libtar libxinerama
Optional Deps : avahi: for service discovery using bonjour protocol [installed]
libnotify: for notification plugin [installed]
ncurses: for ncurses interface support [installed]
libdvdcss: for decoding encrypted DVDs
lirc-utils: for lirc plugin
libavc1394: for devices using the 1394ta AV/C [installed]
libdc1394: for IEEE 1394 plugin [installed]
kdelibs: KDE Solid hardware integration
libva-vdpau-driver: vdpau back-end for nvidia
libva-intel-driver: back-end for intel cards
libbluray: for Blu-Ray support [installed]
flac: for Free Lossless Audio Codec plugin [installed]
portaudio: for portaudio support
twolame: for TwoLAME mpeg2 encoder plugin
projectm: for ProjectM visualisation plugin
libcaca: for colored ASCII art video output [installed]
libgme: for libgme plugin [installed]
librsvg: for SVG plugin [installed]
gnome-vfs: for GNOME Virtual File System support
libgoom2: for libgoom plugin
vcdimager: navigate VCD with libvcdinfo
aalib: for ASCII art plugin [installed]
libmtp: for MTP devices support [installed]
smbclient: for SMB access plugin [installed]
libcdio: for audio CD playback support [installed]
ttf-freefont: for subtitle font
ttf-dejavu: for subtitle font [installed]
opus: for opus support [installed]
libssh2: for sftp support [installed]
lua-socket: for http interface
Required By : None
Optional For : None
Conflicts With : vlc-plugin
Replaces : vlc-plugin
Installed Size : 44424.00 KiB
Packager : Giovanni Scafora <giovanni@archlinux.org>
Build Date : Wed Jul 9 15:11:36 2014
Install Date : Sun Aug 10 14:20:01 2014
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
Name : ffmpeg
Version : 1:2.3.1-1
Description : Complete and free Internet live audio and video broadcasting solution
Architecture : x86_64
URL : http://ffmpeg.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : alsa-lib bzip2 fontconfig gnutls gsm lame libass libvdpau libbluray libmodplug libpulse libtheora libva libvorbis libvpx opencore-amr openjpeg opus rtmpdump schroedinger sdl speex v4l-utils libx264
xvidcore zlib x265
Optional Deps : None
Required By : chromaprint kfilemetadata-frameworks vlc
Optional For : alsa-plugins gegl
Conflicts With : None
Replaces : None
Installed Size : 16162.00 KiB
Packager : Bart
Build Date : Thu Jul 31 16:51:43 2014
Install Date : Sun Aug 10 17:09:10 2014
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : SignatureI changed default alsa device to #7 and indeed I can play both lossy and lossless files in clementine using alsa-only. But that blocks the device and vlc can't output sound anymore, obviously. Also, I don't wan't to have alsa-only so I changed it back, letting alsa use /etc/asound.conf. The mpv command didn't work (it showed me 'Usage: mpv [options] [url|path/]filename') but as mentioned before, playing lossy files alsa-only worked in clementine.
As a workaround for alsa only, you could try sending data to dmix or null and see if it triggers state 1:
I don't have states alsa-only, it is a pulseaudio-thing.
Btw Clementine was able to play music while sending data from /dev/urandom to aplay, vlc was not (said device was busy)
Last edited by iuno (2014-08-11 13:39:05)
Offline