could you let me know your used case through network, local ... due to mpd is a dameon so if you play at local whcih player play it

BTW prevent it I think you could tuen off SCreen Saver at System->SCreen Saver and some monitor setting at power mangiment at System->power mangerment

another thing you need to check is when you play vedio (for exapmle type totem <vedio name> at consloe or x-terminal), you could see some word like "vmeta" at console , you have this word mean you have get hardware accerlate

When the screen is blanking then the PMU goes into Deep-Idle mode and the sound starts chopping.The arch/arm/mach-dove/pm.c modification forcing the PMU to stay in eBook mode (whatever it means) when screen is blanking prevents of getting into sound problems.

It was probably assumed that blanking screen should disable the sound output on HDMI and which is actually happening.But there are also S/PDIF and Analog outputs that should not be affected.

I really appreciate you want help but in my first post I wrote that it happens when gdm is stopped.My D2Plug is headless. I don't run GNOME nor KDE. No screensaver. The Caffeine application is just an applet which helps you when you watch flashvideo or play the games to prevent the screensaver activation. I've got similar application on my Mac.

The problem is related to power management functionality implemented in kernel for mach-dove/plat-orion architectures.

your could try it , as I mention before I don't have your enviroument, so I can't make sure this also working on you

BTW , as I know monitor also have power saving mode ,if this is device into power saving mode cause , I think you also can't hear any voice form S/PDIF , but your case is could hear voice form S/PDIF ,HDMI not , so maybe this is monitor behavior

I had a similar issue on my D2plug. I just recently got it and it is running Ubuntu 10.04.3 LTS with a 2.6.32.9-dove-5.4.2 kernel. After an initial apt-get update && apt-get upgrade, one of the first things was to install MPD. I was not satisfied with the included version 0.15.4 as I had distorted playback. My symptoms are similar to yours, but I cannot tell if it has something to do with a graphical idle mode, as my plug is headless.

So I installed MPD version 0.16.6 from source. It did not change anything. But then I realised that this only happend for mp3 files. Flac and ogg played just fine. So I recompiled and disabled MAD, which I guess was decoding the mp3 files, and enabled mpg123. With this replacement my mp3 playback is now just fine!

mpd (MPD: Music Player Daemon) 0.15.4Supported decoders:[mad] mp3 mp2

mpd (MPD: Music Player Daemon) 0.16.6Supported decoders:[mpg123] mp3

The following version of MAD is installed with this Ubuntu:libmad0/lucid uptodate 0.15.1b-4ubuntu1

Maybe you can check if you also have a problem with MAD.

You wrote that you are using pulseaudio and SPDIF. This is also my setup, but I don't get any sound on my SPDIF. Can you tell me how you configured pulseaudio/mpd to get sound on the SPDIF? Thanks!

I can confirm that recent version of MAD lib is not working correctly and eventually I compiled MPD without MAD support and use mpg123 instead. That was the first problem I came across with my D2Plug wanted to run MPD.

In terms of MPD configuration here is the relevant snipplet from mpd.conf

Headphone is obviously analog jack output and Applituner is SPDIF connected to my home audio set.

Any other audio_outputs are commented in my conf file.The PA configuration is just default and I haven't changed anything as far as I remember.

It works fine now for me however I altered the pm.c to ignore deep-idle mode and recompiled the kernel.If you come to that point I'll share more details if needed.

If you have any chance to connect any display to the plug you can check the audio under gnome. There is applet allowing selection of the default sound output. Anyway the configuration of MPD is independent of the configuration of gnome. That is a drawback that changing the volume under gnome I have no control on the volume of music played by MPD. This is not affecting my setup as my plug is also headless.

good luck and do not hesitate to ask if you have more question. I'm fine with sharing me experience.