Beep (system bell) not working in LXTerminal

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
g4c9z
Posts: 6
Joined: Mon Mar 29, 2010 1:16 pm

Beep (system bell) not working in LXTerminal

Post by g4c9z »

The command:

Code: Select all

echo -ne \\a
is supposed to produce a beep through the PC speaker, and it does on other terminal emulators. But on LXTerminal, it doesn't. Is this normal? Does anyone know what the cause might be? It also happens with "terminal", the terminal emulator for XFCE. I'm not sure if it's a bug or a misconfiguration (and also I can't find how to report a bug in LXTerminal).

I'm running Gentoo Linux, and am not using the full LXDE environment.
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Beep (system bell) not working in LXTerminal

Post by Marty Jack »

It is programmatically disabled. I am working on LXTerminal right now and I will add it as a user preference. That is about the only one we don't have.

Up top where it says "Read this first if you want to report a bug" there are instructions.
g4c9z
Posts: 6
Joined: Mon Mar 29, 2010 1:16 pm

Re: Beep (system bell) not working in LXTerminal

Post by g4c9z »

OK, that's great, thanks.
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Beep (system bell) not working in LXTerminal

Post by Marty Jack »

Checked in yesterday. Read release notes here.

http://forum.lxde.org/viewtopic.php?f=26&t=1446
g4c9z
Posts: 6
Joined: Mon Mar 29, 2010 1:16 pm

Re: Beep (system bell) not working in LXTerminal

Post by g4c9z »

I tried checking it out from git and building it. When I ran it from the directory "make" built it in (I didn't do make install), I noticed some major problems - the "Preferences" dialog doesn't come up at all, and there's a significant delay when switching focus to the window before it gains focus. I'm not sure if these are actual bugs (perhaps introduced by your commits), or whether they're just related to the fact that I have an older release of lxterminal installed in /usr/bin, and am running another compiled version from my home directory. (However, I only have instances of the new version running.)
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Beep (system bell) not working in LXTerminal

Post by Marty Jack »

The conversion to GtkBuilder requires that the XML file lxterminal-preferences.ui is present in the directory where make install puts it in order for the preferences dialog to work at all.
You could install that manually if you wanted to, since it is not used in the previous release.
g4c9z
Posts: 6
Joined: Mon Mar 29, 2010 1:16 pm

Re: Beep (system bell) not working in LXTerminal

Post by g4c9z »

OK, I ran make install to install it in /usr/local/bin, and that fixed the preferences, and the beep is working. But it still doesn't explain / fix the delay when switching the window focus...
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Beep (system bell) not working in LXTerminal

Post by Marty Jack »

I see nothing different or out of the ordinary about how focus is working in the new release. Give me a more elaborate step-by-step of the scenario that isn't satisfactory? I assume this was working properly for you in the released version? What is your window manager? What is your panel?
g4c9z
Posts: 6
Joined: Mon Mar 29, 2010 1:16 pm

Re: Beep (system bell) not working in LXTerminal

Post by g4c9z »

My window manager is XMonad with a tabbed layout, where every window fills the screen (except for an XMobar status bar at the top). It happens every time I click on the LXTerminal tab while another window is visible - it takes about a second for LXTerminal to appear. However, I can reproduce it in Fluxbox as well, but only when I minimize LXterminal, then click to restore it. There's no delay when I have a bunch of maximized windows and click on LXTerminal to show it. I'm guessing in all floating window managers, there'll be a delay when it's restored from being minimized.

It is a significant problem... much worse than not having a system beep. And yes, the release version doesn't have this problem - version 0.1.6.
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Beep (system bell) not working in LXTerminal

Post by Marty Jack »

If you wanted to go ahead and debug this and send a patch, be my guest. It will be a while before I can get to something that only happens on XMonad.
Locked