<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - X11 bell event dropped in Xfce and other non-Gnome desktops"
href="https://bugs.freedesktop.org/show_bug.cgi?id=58930#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - X11 bell event dropped in Xfce and other non-Gnome desktops"
href="https://bugs.freedesktop.org/show_bug.cgi?id=58930">bug 58930</a>
from <span class="vcard"><a class="email" href="mailto:freedesktop-bugs@thequod.de" title="Daniel Hahler <freedesktop-bugs@thequod.de>"> <span class="fn">Daniel Hahler</span></a>
</span></b>
<pre>I have noticed that pulseaudio fails to fall back to properly:
I: [pulseaudio] module-x11-bell.c: Ringing bell failed, reverting to X11
device bell.
The code is the following (in x11_event_cb, src/modules/x11/module-x11-bell.c):
if (pa_scache_play_item_by_name(u->core, u->scache_item, u->sink_name,
((pa_volume_t) bne->percent*PA_VOLUME_NORM)/100U, NULL, NULL) < 0) {
pa_log_info("Ringing bell failed, reverting to X11 device bell.");
XkbForceDeviceBell(pa_x11_wrapper_get_display(w), bne->device,
bne->bell_class, bne->bell_id, bne->percent);
}
It looks like XkbForceDeviceBell is meant to do beeping via the pcspkr module?!
The problem is that the module-x11-bell module gets loaded always via
/usr/bin/start-pulseaudio-x11:
/usr/bin/pactl load-module module-x11-bell "display=$DISPLAY"
"sample=bell.ogg" > /dev/null
But the sample is not being uploaded.
You can check if the module is loaded using:
pactl list | grep module-x11-bell
The sample can be loaded manually using:
pactl upload-sample /usr/share/sounds/gnome/default/alerts/glass.ogg
bell.ogg
Does uploading a (valid, existing) sample file work for you?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>