Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351230 - x11-terms/rxvt-unicode: no audible bell (xbell vs xkbbell issue)
Summary: x11-terms/rxvt-unicode: no audible bell (xbell vs xkbbell issue)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 18:19 UTC by Dmitry Kim
Modified: 2020-12-07 17:18 UTC (History)
2 users (show)

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


Attachments
Replaced XBell() call with XkbBell() (rxvt-unicode-9.07-xkbbell.patch,557 bytes, patch)
2011-01-09 18:21 UTC, Dmitry Kim
Details | Diff
working patch for 9.12 (rxvt-unicode-9.12-xkbbell.patch,527 bytes, patch)
2011-07-14 00:30 UTC, Johannes Krause
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Kim 2011-01-09 18:19:53 UTC
rxvt-unicode produces no sound when ^G is printed.

It's been broken since forever (xorg-1.7 at least, maybe even before that). rxvt-unicode uses XBell() internally (as of 9.07 at least, didn't check other versions), which doesn't work for some reason in recent xorgs. XkbBell(), OTOH, works for me.

I'm attaching a patch which fixes the issue for me.

Reproducible: Always

Steps to Reproduce:
1. open rxvt-unicode termnial
2. ping -a localhost
3.

Actual Results:  
ping runs silently.

Expected Results:  
ping should issue a bell sound every second.

xorg-server-1.9
Comment 1 Dmitry Kim 2011-01-09 18:21:11 UTC
Created attachment 259396 [details, diff]
Replaced XBell() call with XkbBell()
Comment 2 Rafał Mużyło 2011-01-09 22:51:49 UTC
Honestly, INVALID.
Yes, there was a bug in xorg-server around 1.7, preventing XBell from working,
but that's been long fix there, so no point in messing with rxvt-unicode.
Comment 3 Dmitry Kim 2011-01-09 23:10:55 UTC
Well, I assumed so till I upgraded to xorg 1.9 yesterday and re-emerged rxvt-unicode. The issue was NOT fixed for me after that, so I made this patch out of desperation, since I have no idea if upstreams gonna ever fix it at all now.
Comment 4 Rafał Mużyło 2011-01-10 03:03:02 UTC
Perhaps something else is disabling the bell ?
I've seen i.e. lxsession do it.
See, if 'xset b' helps.

Just a minor note: did it ever work for you on your current hardware ?
Comment 5 Dmitry Kim 2011-01-10 10:44:39 UTC
> Perhaps something else is disabling the bell ?

You're right, it's xkbevd. I'm sorry, I should have tested it more thoroughly. The thing is, "killall xkbevd ; xset b on" doesn't switch the bell back on, that's why I missed this one (to be more specific, after that the bell works via PC speaker everywhere, except unpatched rxvt-unicode which remains silent). Restarting X w/o xkbevd does fix the issue, though.

So, my bug description is misleading to say the least, and INVALID may be due as well. BUT:

rxvt-unicode used to work just fine with xkbevd. Then, after some xorg upgrade, it stopped, and it still doesn't work w/o the patch. Meanwhile, all other applications seems to work with xkbevd wrt beeps (e.g. firefox and gvim). IIRC, some e.g. compiz plugins related to bells also rely on xkbbell event, so it's probably broken for unpatched rxvt-unicode too.

I need my xkbevd, so it looks like I'm stuck with the patched version, whenever it is officially blessed or not. I guess it's your call if enough users are affected by urxvt xkbbell event issue then. Thanks for your time and sorry again for the misleading problem description.
Comment 6 Andrew Geng 2011-06-27 19:45:23 UTC
This also affects people using PulseAudio's module-x11-bell or GNOME 3 to customize the bell sound. But since xterm is also affected [1], rxvt-unicode might not be the right place to address this.

It seems like what's happening is that these systems listen for XkbBellNotify events (see, e.g. Pulse [2]), which I suspect don't get sent for XBell calls. Of course, as long as nothing's disabled audible bells like xkbevd does, both XkbBell and XBell will play a plain bell as expected.

Versions of stuff mentioned above: GNOME 3.0.2, Pulse 0.9.23, xterm 270, xorg-server 1.10.2, rxvt-unicode 9.11.

[1] Strictly speaking, xterm could use XkbBell, but it always falls back to XBell because xterm doesn't like unnamed bells. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569539#15

[2] http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/x11/module-x11-bell.c
Comment 7 Johannes Krause 2011-07-14 00:30:53 UTC
Created attachment 280029 [details, diff]
working patch for 9.12
Comment 8 Marek Szuba archtester gentoo-dev 2020-12-07 17:18:32 UTC
Affected versions long gone from the tree.