Bug 240512

Summary: phonon no longer uses pulseaudio after resume from hibernate
Product: [Frameworks and Libraries] Phonon Reporter: Vadym Krevs <vkrevs>
Component: generalAssignee: Matthias Kretz <kretz>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bjoernv, colin, martin.sandsmark, myriam
Priority: NOR    
Version: 4.4.1 (KDE 4.4.4)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vadym Krevs 2010-06-02 21:23:02 UTC
Version:           4.4.1 (KDE SC 4.4.3 rolling distros) (using KDE 4.4.3) 
OS:                Linux

openSUSE 11.2 for x86_64 + KDE 4.4.3 from KKFD from OBS
(http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.2/).

My system (see hardware details in attachments to
https://bugzilla.novell.com/show_bug.cgi?id=581376) is configured to use
PulseAudio. Sound via pulseaudio works just fine after a restart. Phonon sees a
"Pulseaudio sound server" device and multiple KDE and non-KDE applications can
play sound concurrently. 

However, after hibernating and subsequently resuming from hibernate, phonon "forgets" about the "Pulseaudio
sound server" device, and lists the "Internal Audio Analog Stereo" and "HDA ATI
HDMI Digital Stereo" devices instead. As a result, different applications can
no longer play sound concurrently. The only fix is to a) exit all applications
such as kmix, skype, amarok and b) issue "rcalsasound restart" as root, c)
restart kmix, skype, amarok, etc. The b) step bring back the "Pulseaudio sound
server" device and different applications can play sound concurrently.

$ rpm -qa  |grep phonon
libphonon4-32bit-4.4.1-47.1.x86_64
phonon-devel-4.4.1-47.1.x86_64
phonon-backend-xine-4.4.1-51.1.x86_64
phonon-4.4.1-47.1.x86_64
libphonon4-4.4.1-47.1.x86_64


This is a regression as compared to KDE 4.3.5.




Reproducible: Always

Steps to Reproduce:
Steps to Reproduce:
1. Reboot and login into KKFD, verify that phonon uses the "Pulseaudio sound
server" device
2. Hibernate and resume.
3. Verify that phonon no longer uses the "Pulseaudio soundserver device".



Also reported in Novell's opensuse bugzilla:
https://bugzilla.novell.com/show_bug.cgi?id=611080
Comment 1 Colin Guthrie 2010-06-03 01:08:25 UTC
Erm, this is strange. The devices listed sound very much like the names PulseAudio provides. This is how a fully integrated Phonon+PulseAudio setup *should* display.

The problem is rather why you only see "PulseAudio Sound Server" on your initial boot..... and why it doesn't seem to work for you regarding the outputting of the actual sound.

This link shows more info about what you should expect to see. As explained in the link, if you see "PulseAudio Sound Server" then you are running in what I call "degraded" mode - i.e. Phonon detects and uses PA, but the support module for KDE preferences is not loaded into the PulseAudio sound server that is running.
http://pulseaudio.org/wiki/KDE

Perhaps you can try providing the debug information mentioned in the above link when sound is not working and I can help diagnose what is wrong or help locate a bug if there is one.

Cheers

Col
Comment 2 Colin Guthrie 2011-01-11 17:21:43 UTC
Feel free to reopen if you can provide the extra info requested, but for now, I'm closing.