[pulseaudio-tickets] [Bug 58930] X11 bell event dropped in Xfce and other non-Gnome desktops

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 6 16:34:43 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=58930

--- Comment #2 from Daniel Hahler <freedesktop-bugs at thequod.de> ---
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?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20141107/502b703d/attachment.html>


More information about the pulseaudio-bugs mailing list