info-xnee
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Info-xnee] Xnee and Xvfb


From: Josh Wyatt
Subject: Re: [Info-xnee] Xnee and Xvfb
Date: Thu, 29 Mar 2007 09:15:45 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Henrik Sandklef wrote:
Hi and thanks for your email


 If you record (using Xnee) the display as started with Xvfb you can see
that the replaying Xnee is sending the events. And if you exchange Xvfb
with Xnest things work fine (as you said).

 Playing back mouse motions are OK. I test that using xgetter from the
Xnee sources:
     cnee/test/src/xgetter -mpra

 To be honest I don't know why the keyboard events are received by Xfvb.
Does the display (started by xvfb) even have a keyboard? ..... will read
some more specs and man pages...



/hesa

Good morning!

I successfully used xte (from xautomation) to send keyboard events to the 
virtual framebuffer just now, so something else is amiss.

Here are the steps to reproduce.

1. Start Xvfb on display :3 like so:
Xvfb -ac :3 &

2. Start an xterm in that Xvfb and verify that it's in the upper left corner:
xterm -display :3 &
xwd -display :3 -root -out test.xwd
xwud -in test.xwd

3. Use xte to send the mouse pointer to  coordinates "100 100" which is inside 
the xterm window for focus:
xte -x :3 'mousemove 100 100'

4. Use xte to send an "h" keypress into display :3
xte -x :3 'key h'

5. Take a snapshot of the X, and see that "h" entered into the xterm window:
xwd -display :3 -root -out test2.xwd
xwud -in test2.xwd


So it definitely looks like Xvfb can receive keyboard events, and xte can send 
them, while cnee --replay cannot...

What else can I do to help?

Thanks,
Josh





Josh Wyatt wrote:

Greetings,

Firstly, let me thank you for the excellent tool that Xnee is.  I'm
quite impressed by the flexibility.

I am writing to ask for some help using Xnee with Xvfb.  I have been
using Xnee successfully to record and playback sessions on Xnest sessions. However, when I attempt to replay the same events on an Xvfb display,
Xvfb seems to ignore motion/mouse/keyboard events.  Using xwd and xwud,
I can see that the display presents the windows and whatnot as I start
them remotely; but they do not appear to receive keyboard and mouse events.

Any thoughts?  Here is a simple test to reproduce the problem.

My setup:

Centos 4.4, using xorg-X11 Xnest and Xvfb 6.8.2.

cnee --version reports:

address@hidden ~]$ cnee --version
Xnee 2.05
Copyright (C) 2000,2001,2002,2003,2004, 2005 Henrik Sandklef Xnee and
all its included programs come with NO WARRANTY,
to the extent permitted by law.
This is free software, and you may redistribute
copies of it under terms of GNU General Public License.
For questions: address@hidden  Xnee: Xnee's not an Event Emulator
http://www.gnu.org/software/xnee/ GPL: Gnu General Public License http://www.gnu.org/
FSF:  Free Software Foundation     http://www.fsf.org/



How to reproduce:

I started an Xnest session under my existing GUI for recording:

Xnest :1 -ac -geometry 1024x768 &

Start an xterm in that display:
xterm -display :1 &

Start the recording:
cnee --display :1 --record -o test.xnl --mouse --keyboard --time 5

Mouse to the xterm in the Xnest window, click on it to gain focus
(probably not necessary since no WM is running), and type some stuff
(pwd, ls -l, etc)

Ctrl+C in the cnee record shell.


Okay... Time for replay into the Xvfb...

I can setup the Xvfb session exactly the same with:

Xvfb :3 -ac -screen 0 1024x768x16 &

xterm -display :3 &

At this point I used xwd to determine that the xterm had indeed started,
and was located in the same position:

xwd -root -out t.xwd -display :3
xwud -in t.xwd

... and it looks fine, ready for action;

I then replay the file:
cnee -v --display :3 --replay --file test.xnl

(cnee provides some output showing it executes the events...)

And use xwd/xwud to snapshot and review Xvfb's display:
xwd -root -out t.xwd -display :3
xwud -in t.xwd

...And nothing has happened in the xterm.

Any thoughts would be GREATLY appreciated!  I have attached my example
xnl file 'test.xnl' from above.


Thank you in advance, and cheers,
Josh


------------------------------------------------------------------------

_______________________________________________
Info-xnee mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/info-xnee






reply via email to

[Prev in Thread] Current Thread [Next in Thread]