My recipe is quite simple: if it works, don't fix it.<br>I'm still on KDE3 and Amarok 1.4, no Pulseaudio, just Alsa.<br><br>Regards<br>Miguel Angel<br><br><div class="gmail_quote">2013/8/8 Martin Steigerwald <span dir="ltr"><<a href="mailto:Martin@lichtvoll.de" target="_blank">Martin@lichtvoll.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using phonon-backends mailing list as I didnīt found any user related phonon<br>
mailing list, if people who can help with phonon are subscribed to Amarok<br>
mailing list, feel free to drop phonon-backends mailing list from Cc.<br>
<br>
<br>
Hi!<br>
<br>
Once upon a time I had a ThinkPad T23 with KDE 3 and Amarok 1.4, first without,<br>
then with Sonica Theater USB 1.1 sound card. And it just played music.<br>
Reliable, even after some kernel scheduler improvements I tested for Ingo<br>
Molnar without any glitches even when I moved around windows or did whatever<br>
on that box. It just played and the world was good. There have been issues<br>
once in a while, but generally it just worked. Also sound worked just nicely<br>
after hibernation. For the USB sound card for a time I had to unload usb sound<br>
module from kernel before hibernation and load it again (with TuxOnIce and<br>
hibernate script back then).<br>
<br>
Then I switched to KDE 4.2 and Amarok 2 and Phonon. And since then I cannot<br>
remember to have had this "it just works" reliability that I had with KDE 3<br>
and Amarok 1.4 without Phonon.<br>
<br>
I know a rant could start this way – and well to some extent I admit this is a<br>
rant –, but I will try not to accuse anyone, I am just at the point where I<br>
realize: I can give Linux Performance training, I can build a kernel from git,<br>
test changes, build Debian packages and whatnot. But I canīt seem to make my<br>
Amarok jukebox setup reliable. I do not know in which layer to look. I do not<br>
know much about meaningful debugging. All I can do right now is to try this<br>
and that and this without any actual clue and hope it helps. So I reach out<br>
for help.<br>
<br>
I do this on list, until I have any means to provide meaningful bug reports. I<br>
think I deal with several bugs. I am willing to work from this, there may be<br>
days of inactivity in between, due to real life stuff taking precendence, but I<br>
am willing to invest some time and energy once again, *if* there is a<br>
reasonable chance to get back reliably working system.<br>
<br>
I am even willing to replace hardware. If a ThinkPad or netbookt with Intel HD<br>
audio provides a similar sound quality to that USB sound card, Iīd buy one and<br>
ditch the USB sound card. If a USB 2 based sound card is likely to work<br>
better, Iīd buy one. I do not insist on the exact hardware, a ThinkPad T6x<br>
with Intel HD Audio costs less than 200 Euro used, so what gives.<br>
<br>
But I do like to get to a reliably working setup within a *reasonable* amount<br>
of time. Heck, it just needs to play music. My CD player does it, my Rockbox<br>
based Sansa e260v1 does it. It canīt be that difficult. And I like to keep<br>
Amarok. I am used to it, its a decent player software, it gets song texts,<br>
wikipedia and well has a nice GUI. I like to continue using it.<br>
<br>
<br>
My basic requirements are:<br>
<br>
- If I press play it plays sound. No discussions, no errors. Just play sound.<br>
As my CD player does. I play music mostly for recreational purposes so I am<br>
not willing to fiddle with things on a regular basis just to have it play my<br>
music. I am not willing to *fight* with my Amarok music jukebox to make it<br>
behave.<br>
<br>
- If playing sound, play sound *fluently*. No dropouts, no hangs, no<br>
interference noise. Just play.<br>
<br>
- On hibernating stop sound, on resuming continue playing where you stopped.<br>
Or well if not continuing right away, let me continue with pressing play<br>
again. For the time being, Iīd even press stop before hibernation and play<br>
after it.<br>
<br>
- I want to have Amarok running for days and weeks with hibernation cycles in<br>
between. I donīt want it to crash after resuming or something like that.<br>
<br>
<br>
Current setup is: ThinkPad T42 with Pentium M 1.8 GHz which should be plenty<br>
to play MP3, Ogg Vorbis and FLAC in decent quality. I do have the Sonica<br>
Theater USB sound card, cause at least with the ThinkPad T23 where I was able<br>
to hear harddisk sounds in the internal audio output the sound quality was<br>
just so much better with that USB sound card. Its a USB 1.1 standard 7.1 sound<br>
capable soundcard, but I just use stereo, no 7.1 sound which might overload<br>
USB 1.1 bus. I use a old, good quality Kenwood receiver.<br>
<br>
Software wise I use Debian Sid with KDE SC 4.10.5 and Amarok 2.7.1-1 and<br>
phonon 4.6.0.0-3 with phonon-backend-vlc 0.6.2-2 with ALSA. I didnīt use<br>
gstreamer as it skipped tracks and whatnot. I do not remember exactly what all<br>
happened with it, but it didnīt work for me. Kernel is 3.10-1-686-pae from<br>
official experimental debian package.<br>
<br>
I do not use Pulseaudio 4 right now cause it still does not detect the USB<br>
sound card at all times, spamming logs with "usb_set_interface_failed"<br>
messages. I reported this once, Lennart even answered me back to my bug report<br>
and I admit I did not follow up then, cause what he asked me to do would have<br>
take some time to do and it was not the only bug with PulseAudio back then. I<br>
was just so annoyed by PulseAudio back then that I apt-get purgeīd it. I would<br>
be willing to follow-up with this, as it seems that Pulseaudio 4 is the first<br>
Pulseaudio *ever* that is able to play *fluent* sound on the ThinkPad T42. With<br>
Pulseaudio 3 still I had sound drops longer than 20 seconds (this is *no*<br>
joke).<br>
<br>
.kde/share/config/phonondevicesrc has:<br>
<br>
[AudioDevice_/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/sound/card1/<br>
pcmC1D0c:capture]<br>
cardName=Sonica Theater (USB Audio)<br>
deleted=false<br>
deviceNumber=0<br>
hotpluggable=true<br>
iconName=audio-card<br>
index=-8<br>
initialPreference=36<br>
isAdvanced=false<br>
<br>
<br>
It has similar entries for this sound card at least a dozen of times, one of<br>
it must be the sound card at the top of the device list in phonon kcm.<br>
<br>
<br>
A snippet of lsusb, I can attach or pastebin completely output somewhere.<br>
<br>
Bus 003 Device 005: ID 0763:2007 Midiman M-Audio Sonica Theater<br>
Device Descriptor:<br>
  bLength                18<br>
  bDescriptorType         1<br>
  bcdUSB               1.10<br>
  bDeviceClass            0 (Defined at Interface level)<br>
  bDeviceSubClass         0<br>
  bDeviceProtocol         0<br>
  bMaxPacketSize0         8<br>
  idVendor           0x0763 Midiman<br>
  idProduct          0x2007 M-Audio Sonica Theater<br>
  bcdDevice            1.01<br>
  iManufacturer           1<br>
  iProduct                2<br>
  iSerial                 0<br>
  bNumConfigurations      1<br>
<br>
<br>
<br>
Current symptoms:<br>
<br>
- If I stop playback manually before hibernating and start it after<br>
hibernating Amarok seems to play sound but I cannot hear anything. If I then<br>
press stop Amarok crashes. In Systemsettings audio test I can play back sound.<br>
I will install debug packages and see whether I get get a meaningful<br>
backtrace.<br>
<br>
- Although playback seems to be quite fluent recently, I still have casual<br>
dropouts for some reconds. On the ThinkPad T23 I had more dropouts than I now<br>
have on the ThinkPad T42, but heck the hardware is certainly able to play back<br>
some audio, isnīt it? My Amiga 4000 played MP3 it with a 50 MHz 68060, the<br>
Rockbox based Sansa can do it even with Ogg Vorbis, so…<br>
<br>
- Sometimes a loud annoying noise is in the audio. I had this today while<br>
taking a bath. I jumped up to run into the living room to lower the volume as<br>
it was not something Iīd like to expose to my neighbours for longer than<br>
necessary (USB sound driver issue?). If I unplug USB sound card and plug it<br>
back in again, it works again.<br>
<br>
<br>
<br>
So how to proceed? I am especially interested in:<br>
<br>
What is working for you?<br>
<br>
I highly suspect that its working for a lot of people. So what is different<br>
with your setup?<br>
<br>
Does anybody have a laptop with Amarok on top of his/her Hi-Fi equipment to<br>
play music, and hibernates and resumes it just fine and all is working? Then I<br>
would greatly appreciate a detailed description of the setup.<br>
<br>
<br>
Any hints on where to start debugging?<br>
<br>
Any hints on a best practice setup?<br>
<br>
VLC or gstreamer?<br>
<br>
Pulseaudio or not? Iīd prefer to first get a stable setup *without* Pulseaudio<br>
to have one layer less to debug, but I am also willing to test out Pulseaudio<br>
again, especially as with 4.0 at least the unbearing latency, music dropouts<br>
issues have gone. (With VLC and Pulseaudio on this Sandybridge Dual core based<br>
ThinkPad T520 audio playback on playing a DVD start 5-10 seconds after the<br>
video playback has started. Without Pulseaudio it started *immediately*. On a<br>
*Sandybridge* based laptop. There is no hardware reason for that – the<br>
hardware is certainly capable, heck it can encode MP3 as fast as the audio CD<br>
grabber delivers it. This again is no joke.)<br>
<br>
USB sound card or not?<br>
<br>
What versions of everything?<br>
<br>
Actually I think thats already too many questions. Why do I even have to<br>
decide on this? I wouldnīt like to explain something like this to my father or<br>
any other casual computer user.<br>
<br>
IMHO this complexity is a huge mess, unless there is a default that will just<br>
work. Layers upon layers upon layers. Configuration choices over configuration<br>
choices.<br>
<br>
<br>
I just want a jukebox and I want it to work. What are the magic ingredients?<br>
What is known to work?<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Martin 'Helios' Steigerwald - <a href="http://www.Lichtvoll.de" target="_blank">http://www.Lichtvoll.de</a><br>
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7<br>
_______________________________________________<br>
Amarok mailing list<br>
<a href="mailto:Amarok@kde.org">Amarok@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/amarok" target="_blank">https://mail.kde.org/mailman/listinfo/amarok</a><br>
</font></span></blockquote></div><br>