On Saturday, July 12, 2003 8:33 am, Edoardo Serra wrote:
> After X initialisation I need to move the mouse in the lower left corner,
> so I built a little utility
> to do it

May I see the source code?  Ditto /etc/X11/XF86Config.

> The problem is:
> If I run any program after having started X, it eats 99,9% of the CPU.....

Does it do this with absolutely any program or just gflashplayer?

> Running a 'strace' on it, I see it's in an endless loop
>
> # strace -p `pidof X`
> gettimeofday({1058016041, 958536}, NULL) = 0
> select(256, [1 3 4 5 8 9 10], NULL, NULL, {1759, 893000}) = 1 (in [4], left
> {1759, 900000})
> read(4, "", 64)                         = 0
> gettimeofday({1058016041, 958943}, NULL) = 0
> select(256, [1 3 4 5 8 9 10], NULL, NULL, {1759, 893000}) = 1 (in [4], left
> {1759, 900000})
> read(4, "", 64)                         = 0

This is pretty weird.  select returns indicating that reading from fd 4 won't 
block.  This means either that there's more data to be read or that fd 4 is 
at end-of-file.  read's return value of 0 indicates the latter.  Yet fd 4 
isn't removed from the readfds set...

Or maybe I'm misreading this...

> Here's my init script:
>
> #!/bin/sh
> #
> # S99local
>
> echo "Starting up the WeBRainstorm Access control ... "
>
> export PATH=[...]
> export DISPLAY=:0.0

I take it the following two lines aren't supposed to be split...

> /usr/X11R6/bin/xinit /usr/bin/gflashplayer
> /usr/local/src/myacces/XMLSockMonitor.swf &

Does your movepointer script warp the pointer and then quit or does it stay 
running?  Why do you need to move the pointer anyway?  I presume gflashplayer 
is running full-screen, or else you'd want to do some xsetroot magic to hide 
that awful background image.  You could just configure/modify gflashplayer to 
use a blank mouse pointer image.

> /usr/local/odontomax/movepointer 800 600

You should probably put the calls to gflashplayer and movepointer in an 
.xinitrc-style script to be executed by xinit.  Then you don't need to export 
DISPLAY=:0.0.

> P.S. the problem is still there even if i sobstitute the 'movepointer' with
> a simple 'sleep 5'

This probably means that movepointer isn't responsible for hosing your server.  
Try using a program other than gflashplayer.  Maybe use xterm instead and 
then start gflashplayer from the prompt.  See if the server halts then.

-- 
Andy Goth  |  [EMAIL PROTECTED]  |  http://ioioio.net/
End communication.

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to