Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303013 - pulseaudio doesn't work at startup with kde-base/phonon-kde-4.4.0 and media-sound/phonon-4.3.80-r1
Summary: pulseaudio doesn't work at startup with kde-base/phonon-kde-4.4.0 and media-s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 309009
Blocks:
  Show dependency tree
 
Reported: 2010-01-31 19:37 UTC by Marco DR
Modified: 2010-03-16 22:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco DR 2010-01-31 19:37:44 UTC
Pulseaudio doesn't work at startup of kde 4.4. It works only after killing it
(pulseaudio -k), then it respawns correctly as soon as an app needs it (Amarok
for example).

At startup, my output device list in System Settings -> Multimedia shows all
devices, all greyed out but one (*). However, it doesn't show pulseaudio,
although it's running. Amarok runs silently without error. Pavucontrol doesn't
show an Amarok stream.

At startup of kde, the messages log shows:

Jan 31 19:37:48 bestia pulseaudio[6063]: pid.c: Daemon already running.
Jan 31 19:37:49 bestia pulseaudio[6072]: pid.c: Daemon already running.
Jan 31 19:37:49 bestia pulseaudio[6073]: pid.c: Daemon already running.

If I kill pulseaudio with pulseaudio -k, the list in System Settings ->
Multimedia shows Pulseaudio, and the list of devices (with different names, see
**). If I then restart Amarok, it works.

This didn't happen in kde 4.3, but since then, pulseaudio support has been
integrated in phonon (see
http://colin.guthr.ie/2009/11/pulseaudio-phonon-support-now-in-kde-trunk-and-
heading-towards-4-4/)

On a sidenote, after a while, the devices disappear from the list, and only
"PulseAudio Sound Server" remains. The only way to control the output is through
pavucontrol. This doesn't happen if I add module-device-manager in default.pa,
as explained here: http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/ .

Maybe we should insert a line in /etc/pulse/default.pa:

load-module module-device-manager


Reproducible: Always




(*) list of devices at startup:
(grey)Internal Audio Digital Stereo (IEC958)
(grey)Logitech_USB_Headset Analog Stereo
Internal Audio Analog Stereo
(grey)Logitech_USB_Headset Digital Stereo (IEC958)

(**) list of devices after killing pulseaudio
PulseAudio
HDA Intel (AD198x Analog)
HDA Intel, AD198x Digital (IEC958 (S/PDIF) Digital Audio Output)
HDA Intel (AD198x Digital)
Logitech Logitech USB Headset (USB Audio)
Logitech USB Headset, USB Audio (IEC958 (S/PDIF) Digital Audio Output)

Installed software:
media-sound/pulseaudio-0.9.21.1
media-sound/pavucontrol-0.9.10
kde-base/phonon-kde-4.3.95
media-sound/phonon-4.3.80-r1
Comment 1 Marco DR 2010-02-12 21:49:12 UTC
The problem persists with the 4.4 release. I investigated a little more, and found out this bug report in kde: https://bugs.kde.org/show_bug.cgi?id=223662 that seems to fit to my description.

This issue is solved by installing phonon-9999 from the svn (kde overlay). Unfortunately there are no new source packages available from upstream, to my knowledge (the newest one in the mirrors is kde/unstable/phonon/phonon-4.3.80). Does anyone know whether a new phonon-4.4.0 package will be released? Or can someone provide a patch to media-sound/phonon-4.3.80-r1 based on the kde bug report and the therein described commit?
Comment 2 Aliaksandr 2010-02-21 21:44:30 UTC
I've made a small script:

#!/bin/sh
sleep 60
pulseaudio -k && pulseaudio -D

and put it in autostart.
Comment 3 Fabio Erculiani (RETIRED) gentoo-dev 2010-03-11 11:44:48 UTC
I confirm this.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-03-11 11:52:30 UTC
(In reply to comment #3)
> I confirm this.
> 

Then confirm the upstream patch too :-)

https://bugs.kde.org/show_bug.cgi?id=223662
http://websvn.kde.org/?revision=1078226&view=revision
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-03-16 11:03:35 UTC
phonon-4.4.0 is in Portage now, please test
Comment 6 Marco DR 2010-03-16 22:31:06 UTC
Confirmed working on kde-4.4.1 with the following packages:
media-sound/pulseaudio-0.9.21.1
media-sound/pavucontrol-0.9.10
kde-base/phonon-kde-4.4.1
media-sound/phonon-4.4.0

No problems with pulseaudio at startup anymore, all devices are recognised correctly.

Thank you for the good work, Samuli!
Comment 7 Dror Levin (RETIRED) gentoo-dev 2010-03-16 22:44:02 UTC
(In reply to comment #6)
> Confirmed working on kde-4.4.1 with the following packages:
> media-sound/pulseaudio-0.9.21.1
> media-sound/pavucontrol-0.9.10
> kde-base/phonon-kde-4.4.1
> media-sound/phonon-4.4.0
> 
> No problems with pulseaudio at startup anymore, all devices are recognised
> correctly.
> 
> Thank you for the good work, Samuli!
> 

Closing as FIXED.