This forum has been archived. All content is frozen. Please use KDE Discuss instead.

System Bell Double Beep

Tags: None
(comma "," separated)
ppkamik
Registered Member
Posts
3
Karma
0

System Bell Double Beep

Wed May 06, 2009 12:05 am
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.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: System Bell Double Beep

Wed May 06, 2009 5:12 am
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]
ppkamik
Registered Member
Posts
3
Karma
0

RE: System Bell Double Beep

Thu May 07, 2009 7:36 pm
So, is there any workaround for this issue??

Suggestions are also accepted (I can not change the application code at this moment)

Thanks,
PpKamiK
User avatar
vbatts
Registered Member
Posts
102
Karma
0
OS

RE: System Bell Double Beep

Thu May 07, 2009 11:48 pm
ppkamik wrote:So, is there any workaround for this issue??

Suggestions are also accepted (I can not change the application code at this moment)

Thanks,
PpKamiK


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


vbatts, proud to be a member of KDE forums since 2008-Sep.

http://hashbangbash.com/
ppkamik
Registered Member
Posts
3
Karma
0

RE: System Bell Double Beep

Wed May 13, 2009 2:02 am
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.
michaelhinds
Registered Member
Posts
1
Karma
0

RE: System Bell Double Beep

Mon May 18, 2009 2:28 pm
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.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]