You are not logged in.

#1 2011-08-06 21:28:06

peterfaj
Member
Registered: 2011-08-06
Posts: 3

[SOLVED] No sound with phonon-vlc

I have recently installed Arch Linux and everything's going pretty nice (awesome documentation btw) except for the sound.

I am using the VLC backend for Phonon.
I have two sound cards:
-Sound Blaster Audigy 2 ZS
-Integrated on ATI Radeon HD-4850
I'm using the former. The settings for Phonon detect lists a lot of Audigy2 devices.

When I booted up and logged in, sometimes sound worked, sometimes it didn't.
Everytime I logged in Phonon said an audio device has been removed (lie) and asked me if it can forget it. I once clicked yes. Now there's never any sound.

I have looked at the troubleshooting page in the wiki and there was a solution for the first problem ("Random Lack of Sound on Startup"), I followed the instructions and created /etc/asound.conf and put this in it:

ctl.dmixer {
    type hw
    card Audigy2
}

It didn't do much good.


When I run speaker-test, I get this:

speaker-test 1.0.24.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

Any help is much appreciated.

EDIT: The problem was not with Phonon. The problem was that ALSA sometimes chose the wrong sound card as default.

Last edited by peterfaj (2011-08-08 07:53:40)

Offline

#2 2011-08-06 23:24:02

George
Member
Registered: 2011-05-11
Posts: 165

Re: [SOLVED] No sound with phonon-vlc

Are you using pulseaudio or ALSA? Have you got your prefered card raised above the others in all of the different categories that phonon lets you configure?

Offline

#3 2011-08-07 07:17:34

peterfaj
Member
Registered: 2011-08-06
Posts: 3

Re: [SOLVED] No sound with phonon-vlc

I'm not using pulseaudio. I have "SB Audigy 2 ZS [SB0350], ADC Capture/Standard PCM Playback (default Audio Device)" set above the others. Though, truth be told, I'm not sure which Soubd Blaster device should be on the top. I have tried them all, but to no avail.

Perhaps the device that should be used was the one "forgotten" by Phonon. How can I reset Phonon's device list?

When I click "Test" in System Settings, this is what the console outputs:

[0x2f26c80] pulse audio output error: cannot connect to server: Connection refused
[0x2f26c80] pulse audio output error: cannot connect to server: Connection refused
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
[0x2f26c80] oss audio output error: cannot open audio device (/dev/dsp)
[0x2f26c80] jack audio output error: failed to connect to JACK server
[0x2f26c80] oss audio output error: cannot open audio device (/dev/dsp)
[0x2f26c80] jack audio output error: failed to connect to JACK server
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave

EDIT:
After yet another reboot sound works. Without even changing anything. speaker-test works, Test in Phonon settings works, everything works. I hope it stays this way.

The only possibly relevant thing I remember doing is installing alsa-plugins.

Last edited by peterfaj (2011-08-07 08:26:37)

Offline

#4 2011-08-07 20:14:52

peterfaj
Member
Registered: 2011-08-06
Posts: 3

Re: [SOLVED] No sound with phonon-vlc

Actually, it seems I still have the Random Lack of Sound on Startup problem, because after two reboots, sound once again did not work. The troubleshooting page on the wiki isn't helping unless I'm doing something wrong.
Another thing: now, when it doesn't work, AlsaMixer lists the "HDA ATI HDMI" as the first and default card, so the cause is, I think, clear. I need to somehow make Audigy2 the default.

EDIT: I have just found this helpful wiki: http://alsa.opensrc.org/FAQ026 and have fixed the problem.
I've had asound.conf erroneously configured.
I've set it as this:

ctl.dmixer {
    type hw
    card Audigy2
}

Now I've set it as this:

pcm.!default {
    type hw
    card Audigy2
}
ctl.!default {
    type hw
    card Audigy2
}

and now it works.

Last edited by peterfaj (2011-08-07 20:31:37)

Offline

#5 2011-08-08 05:17:01

unixNeophyte
Member
Registered: 2008-03-09
Posts: 26

Re: [SOLVED] No sound with phonon-vlc

maybe is a good idea to edit Arch wiki page with this fix

Offline

#6 2012-11-18 19:45:08

halfgaar
Member
Registered: 2010-05-22
Posts: 50

Re: [SOLVED] No sound with phonon-vlc

I'm having the same problem (after upgrading), but your trick doesn't help. I only have one device anyway:

# cat /proc/asound/cards
 0 [Audigy2        ]: Audigy2 - SB Audigy 2 Platinum [SB0240P]
                      SB Audigy 2 Platinum [SB0240P] (rev.4, serial:0x10021102) at 0x9000, irq 19

Also, I do have sound in a TTY console, but applications started in KDE (either in Konsole or graphically) don't have sound. When I start audacious, it says:

ALSA error: snd_mixer_attach failed: No such file or directory.
ALSA error: snd_pcm_open failed: No such file or directory.

aplay -l:

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
  Subdevices: 32/32
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
card 0: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 3: emu10k1 [Multichannel Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 4: p16v [p16v]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L:

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=Audigy2
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    Default Audio Device
sysdefault:CARD=Audigy2
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    Default Audio Device
front:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    Front speakers
rear:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    Rear speakers
center_lfe:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    Center and Subwoofer speakers
side:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    Side speakers
surround40:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audigy2,DEV=0
    SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
    IEC958 (S/PDIF) Digital Audio Output

Edit: the upgrade of my system I just did included an upgrade from KDE 4.8 to 4.9. Maybe that has something to do with it, because it seems to be Phonon related.

Last edited by halfgaar (2012-11-18 19:47:23)

Offline

#7 2012-11-18 20:01:16

halfgaar
Member
Registered: 2010-05-22
Posts: 50

Re: [SOLVED] No sound with phonon-vlc

Hmm. I fixed it. My user wasn't a member of group 'audio'. But, strangely, on the TTY, it didn't have to be. I could play sound with TTY apps both with root and my normal user.

Offline

Board footer

Powered by FluxBB