Sound works...but only in amarok

Hello everyone,

I can’t get my sound to work.
When I play a video, no sound. When I play youtube, no sound. When I play amarok, i get sound.

It seems that nothing works except for amarok :’(

I tried a speaker test and this is what I got:


froid@linux-630u:~>  speaker-test -Dplug:front -c2 -l5 -twav

speaker-test 1.0.23

Playback device is plug:front
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
^C
froid@linux-630u:~>

Can anyone help me? Thanks

[edit]
This is especially weird for me, because up until very recently I could get sound for anything

Sorry to read of your problem. Without know the specifics of your set up , it is incredibly difficult to offer a specific suggestion. Please apply the recommendations for multimedia from here: Multi-media and Restricted Format Installation Guide

… also , note the speaker test you applied is not very representative. Typically one type of speaker test might fail, and another work.

Note the error you saw stated “device or resource busy”. What does that suggest to you? It suggests to me some other device is using your audio device and it is not sharing this. Did you have Amarok open when doing the test? If so, close Amarok.

If not (ie Amarok and all other media players were closed) then try this:

su -c 'rcalsasound restart'

and enter root password when prompted for a password and then restart your mixer, and try all of these one at a time, until you get one to work:

Try each of the following in a terminal, first as a regular user and then with root permissions:

  • first:
 speaker-test -Dplug:front -c2 -l5 -twav
  • second, try again:
speaker-test -c2 -l5 -twav
  • third:
speaker-test -c2 -D hw:0,0 -t wav -l3
  • fourth, this next command has a volume meter at the bottom of its output with a changing number of #'s and %'s to show volume levels so run this command and tell me if the number of #'s and %'s are changing:
aplay -vv /usr/share/sounds/alsa/Front_*
  • fifth: and also:
aplay -vv /usr/share/sounds/alsa/test.wav

Do any of those give an indication of sound ?

Well this might me worth noting - when I did ‘rcalsasound restart’ KDE gave me a popup message saying


KDE detected that one or more internal sound devices were removed.
Do you want KDE to permanently forget about these devices?
This is the list of devices KDE thinks can be removed:
Capture: HDA Intel (ALC888 Analog)
Output: HDA Intel (ALC888 Analog)
Output: HDA Intel (ALC888 Digital)

The ALC888 Analog worked for me when I tested it in the KDE Control Module.

The third speaker test you said also worked for me (as a normal user and root)

Glad to read you had some success. Does this mean your sound is now working ok in other players ? (for example, after a reboot BEFORE you try to play sound in Amarok, try other players 1st).

Well, KDE makes sounds when I log in or out now, but I still cant get any media players except amarok to play sounds.
I tried playing Gangs of New York with Kaffeine, which worked 3 days ago, but there was no sound.

Did you try to switch phonon backends preference order : Xine/GStreamer or GStreamer/Xine ?

I don’t have gstreamer installed, so I guess I’ll try it out.

edt:

After trying GStreamer nothing would work, including amarok and kde’s log in/out sounds

Did you follow this guide: Multi-media and Restricted Format Installation Guide ?

yes i did. do i need to reboot after installing it though? it didn’t do anything so far

For applications that use your desktop’s audio configuration (which may have been modified after the update to libxine1 or to any gstreamer updates), you likely need to exit X windows and restart to have it applied to those applications.

I’d like to see result of

zypper lr -d

Still didn’t work :frowning:

Here’s zypper lr -d



froid@linux-630u:~> zypper lr -d
# | Alias         | Name                  | Enabled | Refresh | Priority | Type   | URI                                                             | Service
--+---------------+-----------------------+---------+---------+----------+--------+-----------------------------------------------------------------+--------
1 | Packman       | Packman               | Yes     | Yes     |   99     | rpm-md | http://packman.unixheads.com/suse/11.3/                         |        
2 | google-chrome | google-chrome         | Yes     | Yes     |   99     | rpm-md | http://dl.google.com/linux/rpm/stable/x86_64                    |        
3 | packman       | packman               | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/11.3/            |        
4 | repo-debug    | openSUSE-11.3-Debug   | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.3/repo/oss/  |        
5 | repo-non-oss  | openSUSE-11.3-Non-Oss | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.3/repo/non-oss/    |        
6 | repo-oss      | openSUSE-11.3-Oss     | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.3/repo/oss/        |        
7 | repo-source   | openSUSE-11.3-Source  | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.3/repo/oss/ |        
8 | repo-update   | openSUSE-11.3-Update  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.3/                       |        

I understand this is frustrating, and I understand its a major source of irritation to have to type and retype painful details about a problem, but when you type “still didn’t work”, given there were a couple of people providing advice in this thread, I have NO IDEA as to what does not work. Nor do I know who that is intended for . “still” may mean something to you, but as someone who wants to see this working on your PC it means nothing to me. My most sincere apologies if that reads to be too blunt. It is not intended to be.

You could look at this guide (1st post in the thread): Check your multimedia problem in ten steps

if you wish us to HELP you to work your way through that, then provide the output of:

rpm --query --all 'libav*' 'libpostproc*' 'libswscale*' '*xine*' '*gst*' '*layer*' '*vlc*' | grep -v avahi | sort

and post here the output of that command.

Note that will NOT fix your problem, but it will give us an idea as to what you have or have NOT installed.

I was responding to your post

For applications that use your desktop’s audio configuration (which may have been modified after the update to libxine1 or to any gstreamer updates), you likely need to exit X windows and restart to have it applied to those applications.

And said that didn’t work.

I tried to run the queries in that thread you posted, but none of them outputted anything except the last one (which you already posted).

So here is what I got


froid@linux-630u:~> rpm --query --all 'libav*' 'libpostproc*' 'libswscale*' '*xine*' '*gst*' '*layer*' '*vlc*' | grep -v avahi | sort
flash-player-10.1.82.76-0.1.1.i586
gstreamer-0_10-0.10.29-1.7.x86_64
gstreamer-0_10-fluendo-mp3-2-106.2.x86_64
gstreamer-0_10-plugin-gnomevfs-0.10.29-1.9.x86_64
gstreamer-0_10-plugins-base-0.10.29-1.9.x86_64
kdebase4-runtime-xine-4.4.4-2.4.x86_64
libavcodec52-0.6-1.pm.8.11.x86_64
libavdevice52-0.6-1.pm.8.11.x86_64
libavfilter1-0.6-1.pm.8.11.x86_64
libavformat52-0.6-1.pm.8.11.x86_64
libavutil50-0.6-1.pm.8.11.x86_64
libgstapp-0_10-0-0.10.29-1.9.x86_64
libgstinterfaces-0_10-0-0.10.29-1.9.x86_64
libgstreamer-0_10-0-0.10.29-1.7.x86_64
libpostproc51-0.6-1.pm.8.11.x86_64
libswscale0-0.6-1.pm.8.11.x86_64
libvlc5-1.1.4-1.pm.1.1.x86_64
libvlccore4-1.1.4-1.pm.1.1.x86_64
libxine1-1.1.19-1.pm.44.3.x86_64
libxine1-codecs-1.1.19-1.pm.44.3.x86_64
libxine1-gnome-vfs-1.1.19-1.pm.44.3.x86_64
libxine1-pulse-1.1.19-1.pm.44.3.x86_64
MPlayer-1.0rc4_r31930-1.pm.3.1.x86_64
PackageKit-gstreamer-plugin-0.6.3-5.4.x86_64
phonon-backend-gstreamer-0_10-4.4.2-1.6.x86_64
phonon-backend-xine-4.4.2-1.6.x86_64
pullin-flash-player-11.3.1-2.1.1.x86_64
smplayer-0.6.9-1.pm.3.1.x86_64
vlc-1.1.4-1.pm.1.1.x86_64
vlc-noX-1.1.4-1.pm.1.1.x86_64
vlc-qt-1.1.4-1.pm.1.1.x86_64
xinetd-2.3.14-149.1.x86_64
xine-ui-0.99.6-1.pm.3.2.x86_64

Thankyou for the clarification.

Did you attempt everything associated with this quote of mine:

… ie … after a reboot, try to play something with smplayer BEFORE launching firefox and BEFORE starting Amarok. Does that work ? Do the same for vlc BEFORE launching Amarok, and BEFORE starting firefox.

From what I can see, your gstreamer apps are an inapporpriate SuSE-GmbH / packman mix. That should be fixed.

Please move your apps over to Packman packaged equivalents. Here is a window with a hint how to do this (if using KDE) in YaST > Software > Software Management:
http://thumbnails27.imagebam.com/9583/195b7e95828785.jpg](ImageBam) Please click on “Switch System Packages” when the packman repository is selected.

At this stage I am trying to determine if your problem is due to inappropriate applications, or inappropriate desktop configuration, or a simple problem due to one device (such as Amarok) seizing the audio device and refusing to share it.

Just fixed that issue :slight_smile:

Thankyou for the clarification.

Did you attempt everything associated with this quote of mine:
… ie … after a reboot, try to play something with smplayer BEFORE launching firefox and BEFORE starting Amarok. Does that work ? Do the same for vlc BEFORE launching Amarok, and BEFORE starting firefox.

I reattempted it and it wouldn’t play any sound.

edit: This is what vlc reported when I was trying to play a movie, maybe it could help


froid@linux-630u:~> vlc
VLC media player 1.1.4 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
Warning: call to signal(13, 0x1)
[0x6090c0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to sigaction(17, 0x7fb4f0389ab0, 0x7fb4f0389b50)
Blocked: call to setlocale(6, "")
Warning: call to signal(13, 0x1)
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
(7846): Trying to open ksycoca from  "/var/tmp/kdecache-froid/ksycoca4"
Blocked: call to putenv("LANGUAGE=")
Warning: call to signal(13, 0x1)
Warning: call to sigaction(13, 0x7fb4f0386120, (nil))
Blocked: call to setlocale(1, "C")
Blocked: call to setlocale(1, "en_US.UTF-8")
Blocked: call to setlocale(1, "C")
/usr/bin/xdg-screensaver: line 543: dcop: command not found

This is the unusual part:

(7846): Trying to open ksycoca from  "/var/tmp/kdecache-froid/ksycoca4"
Blocked: call to putenv("LANGUAGE=")
Warning: call to signal(13, 0x1)
Warning: call to sigaction(13, 0x7fb4f0386120, (nil))
Blocked: call to setlocale(1, "C")
Blocked: call to setlocale(1, "en_US.UTF-8")
Blocked: call to setlocale(1, "C")
/usr/bin/xdg-screensaver: line 543: dcop: command not found

What is ksycoca ? What version of KDE do you have installed ? Also, disable your screensaver for the tests.

How did smplayer fair ?

I found this when googling Ksyscoca: Sycoca - KDE’s System Configuration Cache
So it’s a database that takes care of KDE’s config

What version of KDE do you have installed ? Also, disable your screensaver for the tests.

I’m using KDE version 4.4.4 “release 2”. And I will next time.

How did smplayer fair ?

It was the same as vlc, video but no audio.

Does smplayer have same errors as vlc when run from terminal ?

I assume you are testing IMMEDIATELY after a reboot before running other multimedia players?

Did you try changing the output audio mode/driver for smplayer:
http://thumbnails24.imagebam.com/9584/01a16695838815.jpg](ImageBam)

For vlc ?
http://thumbnails27.imagebam.com/9584/f918d895838817.jpg](ImageBam)

How about xine ?
http://thumbnails24.imagebam.com/9584/19a68a95839057.jpg](ImageBam)
and
http://thumbnails7.imagebam.com/9584/cbe2a095839059.jpg](ImageBam)

What is the output of running the following after a fresh reboot (to check the list of open files accessing your audio device) ? When smplayer running ? When vlc running ? When xine running ? When amarok playing sound ?

 lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*

note at the end that is /dev/snd/* (which is different than the other list of open file locations)

Well oldcpu, I finally got VLC to work by quitting amarok, going into the audio menu, and changing “Output Module” to “ALSA audio output”, “Device” to “HDA Intel: ALC888 Analog(hw:0,0)” and checking on “Use S/PDIF When Available”

This is with vlc running:



froid@linux-630u:~>  lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
knotify4 3372 froid   12u   CHR  116,8      0t0 3595 /dev/snd/controlC0
kmix     3485 froid   11u   CHR  116,8      0t0 3595 /dev/snd/controlC0
vlc      9776 froid  mem    CHR  116,5          3592 /dev/snd/pcmC0D0p
vlc      9776 froid   14u   CHR  116,5      0t0 3592 /dev/snd/pcmC0D0p

And without:


COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
knotify4 3372 froid   12u   CHR  116,8      0t0 3595 /dev/snd/controlC0
kmix     3485 froid   11u   CHR  116,8      0t0 3595 /dev/snd/controlC0

I’ll edit this post after trying everything else too and I’ll tell you how it goes.