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 08:57:51 -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

Well, Xvfb can't have a mouse or keyboard since it is just a virtual 
framebuffer.  But it should emulate those devices.

When I replay with --verbose, both of the outputs look the same more or less.

I confirmed that mouse events do indeed work just fine when replaying to Xvfb.  
I created an initial condition in the xvfb where there was text which I could 
highlight and paste (with the mouse middle-button) some text, and verified that 
it happened just fine with xwd and xwud.

Any other thoughts on why Xvfb would not receive keyboard events from Xnee?  I 
might try another utility called 'xte' from the xautomation project, which 
should be able to send any X event to any display.  I note the following 
interesting message with running 'xte -h' (I am running xte v0.96):

 -x  send commands to remote X server.  Note that some commands
     may not work correctly unless the display is on the console,
     e.g. the display is currently controlled by the keyboard and
     mouse and not in the background.  This seems to be a limitation
     of the XTest extension.

This sounds ominous to me.

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]