XKbell and XkbBell
p.castellon at cadt.com
Mon Jul 11 16:11:05 UTC 2016
I'm not sure from which xorg version, I found the XBell function stopped
to work. Theorically it might make a noise using the PC speaker that I
could customize using the XChangeKeyboardControl.
But it seems from Centos 6 and Centos 7 releases it is not working
anymore. Instead, 'pulseaudio' seems to be making always the same sound,
not using the speaker anymore.
I've removed pulseaudio-module-x11.x86_64 but is still no working.
I cannot get different sounds using XChangeKeyboardControl. It is always
using the same noise. I would like to have different frequency sounds
made with the PC speaker. Can you help me with this issue?
Following a piece of code I would like to make it work
/* backup old values */
/* ring bell with pitch=f and duration=d */
kctl.bell_pitch = f;
kctl.bell_duration = d;
//XBell(display,bell); This is not working inn Centos 6 o 7
XkbBell(display,window,bell,(Atom)NULL); // This is not working
/* restore old values */
kctl.bell_pitch = values_return.bell_pitch;
kctl.bell_duration = values_return.bell_duration;
Thank you in advance.
Vicepresident - Software Division
CADT Software & Drafting, S.L.
Sant Cugat del Vallès - Barcelona
More information about the xorg