[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Is it possible to pan around a virtual screen using a smaller touchscreen display
From: Daniel Harris <mail.dharris () googlemail ! com>
Date: 2015-04-22 13:50:19
Message-ID: CANsePAtjJZNzVg3o6O0Zcsq_p_+cuHtU9ripGEYCUCfDh_JyBg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks Peter
I appreciate your time and help and I will look into it
Dan
On Tue, Apr 21, 2015 at 10:38 PM, Peter Hutterer <peter.hutterer@who-t.net>
wrote:
> On Tue, Apr 21, 2015 at 02:50:47PM +0100, Daniel Harris wrote:
> > Hello Peter
> >
> > I appreciate your reply. I am not sure we are talking about the same
> thing
> > so I have uploaded a video to youtube showing the problem i am
> experiencing
> >
> > If anyone is interested you can find it here http://youtu.be/n8N0NnB9u7g
>
> yeah, definitely the same thing. look at the distances of the pointer and
> the stylus relative to their origins - when the stylus is half-way down the
> device, the pointer is half-way down the whole screen. That's the basic
> problem - an absolute device is always mapped to the whole screen/desktop
> area.
>
> > are you saying the pointer position can be corrected with a client app or
> > can it only be fixed in X.
>
> yes, google for xinput coordinate transformation matrix and you'll find a
> few tutorials, hints on how to do it. xinput map-to-output does the same,
> though in your case it's a bit trickier because you need to get the
> viewport and calculate the respective matrix. Still just moving numbers
> around, not technically hard.
>
> the difficult bit is getting the current viewport, where the xf86VidMode
> extension looks like the most likely candidate. possibly RandR, but I don't
> know the details on how to do it on either, sorry.
>
> Cheers,
> Peter
>
>
> > On Tue, Apr 21, 2015 at 2:41 AM, Peter Hutterer <
> peter.hutterer@who-t.net>
> > wrote:
> >
> > > On Mon, Apr 20, 2015 at 05:21:44PM +0100, Daniel Harris wrote:
> > > > I am assuming that it is a limitation that a stylus cannot map it
> > > position
> > > > to a physical screen and a larger virtual screen at the same time. I
> > > > currently have panning in the virtual screen but calibration is way
> off
> > > on
> > > > the physical screen. I am assuming no mathematical wizardry with the
> > > > current setting can rectify this.
> > >
> > > should be able to, it just requires more effort once you start panning
> > > around. the mapping of the stylus to screen is done by a matrix that
> takes
> > > the whole desktop size into account. outputs as such don't matter here,
> > > e.g.
> > > mapping to the right of two monitors is done by mapping to the 50% of
> the
> > > width with a 50% offset.
> > >
> > > that means you can map to any part of the desktop, problem is it won't
> > > follow you around as you pan. you'd need some client to track that and
> > > update the coordinate transformation matrix as you go.
> > >
> > > Cheers,
> > > Peter
> > >
> > >
> > > > On Sat, Apr 18, 2015 at 4:19 PM, Daniel Harris <
> > > mail.dharris@googlemail.com>
> > > > wrote:
> > > >
> > > > > Hello
> > > > >
> > > > > I have a surface pro 2 and would like to create a virtual screen of
> > > > > 3840x2160 and pan around using the 1920x1080 stylus enabled
> > > touchscreen on
> > > > > the surface pro 2. I have Ubuntu installed and the screen setup
> but I
> > > > > cannot get the stylus to function correctly with that setup. I
> have
> > > tried
> > > > > experimenting with the translation matrix but with no success.
> > > > >
> > > > > Is the above setup possible?
> > > > >
> > > > > I would welcome any advice as to how to achieve this setup
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > > Dan
> > > > >
> > >
> > > > _______________________________________________
> > > > xorg@lists.x.org: X.Org support
> > > > Archives: http://lists.freedesktop.org/archives/xorg
> > > > Info: http://lists.x.org/mailman/listinfo/xorg
> > > > Your subscription address: %(user_address)s
> > >
> > >
>
[Attachment #5 (text/html)]
<div dir="ltr"><div><div>Thanks Peter<br><br></div>I appreciate your time and help \
and I will look into it<br><br></div>Dan<br><br><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 21, 2015 at 10:38 PM, \
Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" \
target="_blank">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"><span class="">On Tue, Apr 21, 2015 at 02:50:47PM +0100, \
Daniel Harris wrote:<br> > Hello Peter<br>
><br>
> I appreciate your reply. I am not sure we are talking about the same thing<br>
> so I have uploaded a video to youtube showing the problem i am experiencing<br>
><br>
> If anyone is interested you can find it here <a \
href="http://youtu.be/n8N0NnB9u7g" \
target="_blank">http://youtu.be/n8N0NnB9u7g</a><br> <br>
</span>yeah, definitely the same thing. look at the distances of the pointer and<br>
the stylus relative to their origins - when the stylus is half-way down the<br>
device, the pointer is half-way down the whole screen. That's the basic<br>
problem - an absolute device is always mapped to the whole screen/desktop<br>
area.<br>
<span class=""><br>
> are you saying the pointer position can be corrected with a client app or<br>
> can it only be fixed in X.<br>
<br>
</span>yes, google for xinput coordinate transformation matrix and you'll find \
a<br> few tutorials, hints on how to do it. xinput map-to-output does the same,<br>
though in your case it's a bit trickier because you need to get the<br>
viewport and calculate the respective matrix. Still just moving numbers<br>
around, not technically hard.<br>
<br>
the difficult bit is getting the current viewport, where the xf86VidMode<br>
extension looks like the most likely candidate. possibly RandR, but I don't<br>
know the details on how to do it on either, sorry.<br>
<br>
Cheers,<br>
Peter<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Tue, Apr 21, 2015 at 2:41 AM, Peter Hutterer <<a \
href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>><br> > \
wrote:<br> ><br>
> > On Mon, Apr 20, 2015 at 05:21:44PM +0100, Daniel Harris wrote:<br>
> > > I am assuming that it is a limitation that a stylus cannot map it<br>
> > position<br>
> > > to a physical screen and a larger virtual screen at the same time. \
I<br> > > > currently have panning in the virtual screen but calibration is \
way off<br> > > on<br>
> > > the physical screen. I am assuming no mathematical wizardry with \
the<br> > > > current setting can rectify this.<br>
> ><br>
> > should be able to, it just requires more effort once you start panning<br>
> > around. the mapping of the stylus to screen is done by a matrix that \
takes<br> > > the whole desktop size into account. outputs as such don't \
matter here,<br> > > e.g.<br>
> > mapping to the right of two monitors is done by mapping to the 50% of \
the<br> > > width with a 50% offset.<br>
> ><br>
> > that means you can map to any part of the desktop, problem is it \
won't<br> > > follow you around as you pan. you'd need some client to \
track that and<br> > > update the coordinate transformation matrix as you \
go.<br> > ><br>
> > Cheers,<br>
> > Peter<br>
> ><br>
> ><br>
> > > On Sat, Apr 18, 2015 at 4:19 PM, Daniel Harris <<br>
> > <a href="mailto:mail.dharris@googlemail.com">mail.dharris@googlemail.com</a>><br>
> > > wrote:<br>
> > ><br>
> > > > Hello<br>
> > > ><br>
> > > > I have a surface pro 2 and would like to create a virtual screen \
of<br> > > > > 3840x2160 and pan around using the 1920x1080 stylus \
enabled<br> > > touchscreen on<br>
> > > > the surface pro 2. I have Ubuntu installed and the screen setup \
but I<br> > > > > cannot get the stylus to function correctly with that \
setup. I have<br> > > tried<br>
> > > > experimenting with the translation matrix but with no \
success.<br> > > > ><br>
> > > > Is the above setup possible?<br>
> > > ><br>
> > > > I would welcome any advice as to how to achieve this setup<br>
> > > ><br>
> > > > Thanks in advance<br>
> > > ><br>
> > > > Dan<br>
> > > ><br>
> ><br>
> > > _______________________________________________<br>
> > > <a href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>: X.Org \
support<br> > > > Archives: <a \
href="http://lists.freedesktop.org/archives/xorg" \
target="_blank">http://lists.freedesktop.org/archives/xorg</a><br> > > > \
Info: <a href="http://lists.x.org/mailman/listinfo/xorg" \
target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br> > > > Your \
subscription address: %(user_address)s<br> > ><br>
> ><br>
</div></div></blockquote></div><br></div>
[Attachment #6 (text/plain)]
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic