There is no problem about having a single large desktop... but I need to use nvidia driver and as far as I understand it does not support Rand1.2.<div><br></div><div>The race condition is caused because xf86InputSetScreen is not thread safe?</div>
<div><br></div><div>About Peter Korsgaard matrix... where can I found it to take a look?</div><div><br></div><div>Thanks.</div><div><br><div class="gmail_quote">On Wed, Jun 16, 2010 at 3:21 AM, Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Jun 14, 2010 at 05:10:40PM +0200, Julian Ortiz wrote:<br>
> Hello,<br>
> After looking for a way to make a touch screen works only in its display<br>
> (with nvidia configured as different XScreens) with no luck at all, I<br>
> started to look at the input modules source. I realizes that<br>
> the proprietary elo module calls to xf86XInputSetScreen, the function name<br>
> seems promising, so I just patch the evdev module to support several screens<br>
> by configuration and to call xf86InputSetScreen in the EvdevReadInput just<br>
> before the EvdevProcessEvent.<br>
><br>
> The result seems to work but the behavior is very erratic and sometimes the<br>
> mouse/touch/keyboard get freezes and I need to restart X. And more strange,<br>
> after launch several OpenGL application the performance drops so, so much<br>
> (obviously without the patch it doesn't happen)<br>
><br>
> Is xf86InputSetScreen the best approach to handle this?<br>
<br>
</div>There's a race condition that can be triggered by xf86InputSetScreen() that<br>
ends up with a cursor jumping indefinitely between the two screens. This is<br>
likely the freeze you're seeing.<br>
<br>
There's unfortunately no good way to bind the device to a single screen<br>
right now. Peter Korsgaard input transformation matrix allows it for a<br>
RandR 1.2 setup but not for multiple protocol screens.<br>
<br>
Cheers,<br>
<font color="#888888"> Peter<br>
</font><div><div></div><div class="h5"><br>
> Trying to find the module responsible for the mouse switch between different<br>
> display I saw references to something called SilkenMouse, but I can't find<br>
> any documentation about what is this. Any idea?<br>
</div></div></blockquote></div><br></div>