![]() Registered Member ![]()
|
Hi all,
I am running into a situation in where I need your help. Description: - a tcl-tk application migrated from solaris (cde) to linux (kde). - the tcl-tk application uses the sysbell (a) to notify the user of certain events. We were able to make the sysbell go through the speakers in the linux system, using kcontrol (to redirect the sysbell to the speakers, and also to select a custom sound for the beep), however, we have not got the system to beep twice. We also try using a "very short" sound file with no difference. Problem: - Using the tcl-tk shell: user@machine $ tclsh % aa (beeps only once which in fact should be two) - Also if you open a konsole, and press CTRL+g you will notice that there is a delay in between the beeps (about 2 seconds) So my question is: - Is there a way in KDE to make the beep delay short enough to hear the two beeps, just like if you don't redirect the sysbell to the speakers? My environment: - RHEL 5.2 32b - KDE 3.5.4 Any help will be really appreciated. Thanks. |
![]() Administrator ![]()
|
It is likely that KDE is detecting two bell beeps in succession and shortening them to one, or there is a bug in KNotify with regards to performing two notifications in a short space of time.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
So, is there any workaround for this issue??
Suggestions are also accepted (I can not change the application code at this moment) Thanks, PpKamiK |
![]() Registered Member ![]()
|
i typically add a /etc/modprobe.d/blacklist entry to 'blacklist pcspkr' or an /etc/rc.d/rc.local entry to 'modprobe -r pcspkr' to remove the system bell from the kernel |
![]() Registered Member ![]()
|
Thanks for the replies, but they don't help.
I need the beep, and I need it double. I think the only option is to modify the application to use a different sound files. |
![]() Registered Member ![]()
|
Hi,
From your original post it looks like you're entering a directly into the Tcl shell, so it will be interpreted as a command (and it will say invalid command name). This will work: user@machine $ tclsh % puts "aa" Or if you want a longer delay: % puts "a"; after 300; puts "a" Does this help? You use the Tcl shell in your example, but if it's a Tk app then puts might not be of use. |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]