Discussion:
delay in sound events.
Colin J Thomson
2008-07-06 21:51:50 UTC
Permalink
Hi,

Does anyone notice the delay in the system sounds, for example if I scroll
through my desktops the sound event can take up to a second or more. If I
disable Pulse all seems fine.

F9 - kde-4.0.84

Is this a known problem before I go hunt around bugzilla.

Cheers

Colin
--
Fedora 9 (Sulphur)
Registered Linux user number #342953


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Colin J Thomson
2008-07-06 23:30:48 UTC
Permalink
Post by Colin J Thomson
Does anyone notice the delay in the system sounds, for example if I scroll
through my desktops the sound event can take up to a second or more. If I
disable Pulse all seems fine.
F9 - kde-4.0.84
Is this a known problem before I go hunt around bugzilla.
Well I think I have found the solution from the fedora list archives, I was
part of that thread and totally missed this :-(

Create a new file called /etc/asound.conf with the following
lines in it.

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

I will test further but so far all seems well, I hope this may help others.

Colin
--
Fedora 9 (Sulphur)
Registered Linux user number #342953

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
kwhiskerz
2008-07-07 02:53:23 UTC
Permalink
Post by Colin J Thomson
Post by Colin J Thomson
Does anyone notice the delay in the system sounds, for example if I
scroll through my desktops the sound event can take up to a second or
more. If I disable Pulse all seems fine.
F9 - kde-4.0.84
Is this a known problem before I go hunt around bugzilla.
Well I think I have found the solution from the fedora list archives, I was
part of that thread and totally missed this :-(
Create a new file called /etc/asound.conf with the following
lines in it.
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
I will test further but so far all seems well, I hope this may help others.
Colin
Yes, I have noticed the delay, too. When using certain applications, like
kplayer, perhaps others, but not sure if only kde3 apps, pulseaudio always
crashes and phonon sound falls back to the driver for my sound card (not sure
if this means it is using straight alsa, or something else). It should be
noted that the delay only occurs when pulseaudio crashes and the fallback is
used. When pulseaudio is running, there is no sound delay when switching
windows.


Your pulseaudio solution is already contained in /etc/alsa/pulse-default.conf,
is it not?
Colin J Thomson
2008-07-07 17:21:25 UTC
Permalink
Post by kwhiskerz
Post by Colin J Thomson
Post by Colin J Thomson
Does anyone notice the delay in the system sounds, for example if I
scroll through my desktops the sound event can take up to a second or
more. If I disable Pulse all seems fine.
F9 - kde-4.0.84
Is this a known problem before I go hunt around bugzilla.
Well I think I have found the solution from the fedora list archives, I
was part of that thread and totally missed this :-(
Create a new file called /etc/asound.conf with the following
lines in it.
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
Yes, I have noticed the delay, too. When using certain applications, like
kplayer, perhaps others, but not sure if only kde3 apps, pulseaudio always
crashes and phonon sound falls back to the driver for my sound card (not
sure if this means it is using straight alsa, or something else). It should
be noted that the delay only occurs when pulseaudio crashes and the
fallback is used. When pulseaudio is running, there is no sound delay when
switching windows.
OK, thanks for the info, at least I am not the only one to notice this,
Post by kwhiskerz
Your pulseaudio solution is already contained in
/etc/alsa/pulse-default.conf, is it not?
Indeed you are right, after more tests the asound.conf I added did not seem to
help.

Cheers

Colin
--
Fedora 9 (Sulphur)
Registered Linux user number #342953

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Rex Dieter
2008-07-07 11:52:08 UTC
Permalink
Post by Colin J Thomson
Hi,
Does anyone notice the delay in the system sounds, for example if I scroll
through my desktops the sound event can take up to a second or more. If I
disable Pulse all seems fine.
F9 - kde-4.0.84
Is this a known problem before I go hunt around bugzilla.
Shouldn't happen, but you should ensure you have all the related pulse bits
in place.

For example, do you have installed:
kde-settings-pulseaudio
asla-plugins-pulseaudio
xine-lib-pulseaudio
gstreamer-plugins-pulse

-- Rex



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Colin J Thomson
2008-07-07 17:26:49 UTC
Permalink
Post by Rex Dieter
Post by Colin J Thomson
Does anyone notice the delay in the system sounds, for example if I
scroll through my desktops the sound event can take up to a second or
more. If I disable Pulse all seems fine.
F9 - kde-4.0.84
Is this a known problem before I go hunt around bugzilla.
Shouldn't happen, but you should ensure you have all the related pulse bits
in place.
kde-settings-pulseaudio
asla-plugins-pulseaudio
xine-lib-pulseaudio
gstreamer-plugins-pulse
Thanks Rex, yes I did have all the Pulse files.

Strange thing is since downloading 4.0.85 (thanks for the packages) things
seem a little better with the sound, I'll see how things go during the
evening.. or maybe I am imagining it again :)

Cheers

Colin
--
Fedora 9 (Sulphur)
Registered Linux user number #342953

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
kwhiskerz
2008-07-08 00:05:37 UTC
Permalink
Post by Colin J Thomson
Post by Rex Dieter
kde-settings-pulseaudio
asla-plugins-pulseaudio
xine-lib-pulseaudio
gstreamer-plugins-pulse
Thanks Rex, yes I did have all the Pulse files.
Strange thing is since downloading 4.0.85 (thanks for the packages) things
seem a little better with the sound, I'll see how things go during the
evening.. or maybe I am imagining it again :)
In 4.0.85, the sound problem persists: when changing windows, the sould is
either delayed or gets chopped off.
Colin J Thomson
2008-07-09 21:47:21 UTC
Permalink
Post by kwhiskerz
Post by Colin J Thomson
Post by Rex Dieter
kde-settings-pulseaudio
asla-plugins-pulseaudio
xine-lib-pulseaudio
gstreamer-plugins-pulse
Thanks Rex, yes I did have all the Pulse files.
Strange thing is since downloading 4.0.85 (thanks for the packages)
things seem a little better with the sound, I'll see how things go during
the evening.. or maybe I am imagining it again :)
In 4.0.85, the sound problem persists: when changing windows, the sould is
either delayed or gets chopped off.
Yes I can confirm this now..

FYI tonight I have been trying to get to the bottom of why Kwin was sucking
a lot of my CPU. Relevant system details:
Nvidia system using Livna's packages, Desktop effects enabled just recently.

I have found that disabling VSync in System Settings > Desktop > Advanced has
fixed this and there seems to be a slight improvement in the sound delays and
far less chopping off of the events. I guess over the next few days I'll be
sure if it has helped.

Related to heavy CPU usage maybe? perhaps this could help others.

Cheers

Colin
--
Fedora 9 (Sulphur)
Registered Linux user number #342953


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Continue reading on narkive:
Loading...