Xmon - an x-event monitor - How to use?

Hello everybody,
I have been trying to use xmonui and xmond to monitor x-events and help me debug. After repeated attempts to set it up to monitor X-events ... I have failed.. Can anybody who has used it help me? ..

Here is what I have done to try to use xmon

terminal 1:

xmonui | xmond

terminal 2:

Xnest -ac :1
#since it is said in the man page that xmond automatically listens to display :1

terminal 3:

DISPLAY=:1 myapp

this does not seem to work .. can anybody help?

thanks again.
Regards,
Sunil.


vtorshyn

vtorshyn's picture

Re: Xmon - an x-event monitor - How to use?

Hi, notsonerdysunny

To use xmon you shouldn't start a Xnest. When you run:

$ xmonui | xmond

xmond will listen incoming connections on 'yourHost:1' automatically. But by default Xserver configured to reject incoming connections, you might want to control it by 'xhost' command.
So, imagine that your real IP is 192.168.40.1 and your application is 'myapp'. Please try next steps:
1. Add your host to access list by a command:

$ xhost +192.158.40.1
192.168.40.1 being added to access control list

Also you can grant access to the X for any host by 'xhost +' command (just plus, no any parameters).
2. Start xmon:
$ xmonui | xmond

Now Xmond listens incoming connections on :1 display

3. Start your application:
$ DISPLAY="192.168.40.1:1" myapp

If it doesn't work for you, please attach 10-15 last lines from your Xorg.log.