* [BUG] xen-kbdfront.c
@ 2013-05-26 21:12 Dominic Russell
2013-05-27 11:13 ` Pasi Kärkkäinen
0 siblings, 1 reply; 3+ messages in thread
From: Dominic Russell @ 2013-05-26 21:12 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 600 bytes --]
Hello,
By trying to find a workaround for the mouse “unsync” in VNC, I noticed that the mouse, even if the resolution has been changed by a .video argument on the kernel, was only moving in a 800x600 window.
It must be due to those lines of code in xen-kbdfront.c (taken from kernel-3.9.1) :
input_set_abs_params(ptr, ABS_X, 0, XENFB_WIDTH, 0, 0);
input_set_abs_params(ptr, ABS_Y, 0, XENFB_HEIGHT, 0, 0);
If the resolution has been overridden by a kernel argument, the width and height should be taken from those arguments also, not from the constants...
Best regards,
Dominic
[-- Attachment #1.2: Type: text/html, Size: 1140 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] xen-kbdfront.c
2013-05-26 21:12 [BUG] xen-kbdfront.c Dominic Russell
@ 2013-05-27 11:13 ` Pasi Kärkkäinen
2013-05-28 14:41 ` Konrad Rzeszutek Wilk
0 siblings, 1 reply; 3+ messages in thread
From: Pasi Kärkkäinen @ 2013-05-27 11:13 UTC (permalink / raw)
To: Dominic Russell; +Cc: xen-devel
On Sun, May 26, 2013 at 05:12:54PM -0400, Dominic Russell wrote:
> Hello,
>
> By trying to find a workaround for the mouse â**unsyncâ** in VNC, I
> noticed that the mouse, even if the resolution has been changed by a
> .video argument on the kernel, was only moving in a 800x600 window.
>
> It must be due to those lines of code in xen-kbdfront.c (taken from
> kernel-3.9.1) :
>
> input_set_abs_params(ptr, ABS_X, 0, XENFB_WIDTH, 0, 0);
> input_set_abs_params(ptr, ABS_Y, 0, XENFB_HEIGHT, 0, 0);
>
> If the resolution has been overridden by a kernel argument, the width and
> height should be taken from those arguments also, not from the
> constants...
>
Feel free to send a patch :)
http://wiki.xen.org/wiki/Submitting_Xen_Patches
-- Pasi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] xen-kbdfront.c
2013-05-27 11:13 ` Pasi Kärkkäinen
@ 2013-05-28 14:41 ` Konrad Rzeszutek Wilk
0 siblings, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-05-28 14:41 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: Dominic Russell, xen-devel
On Mon, May 27, 2013 at 02:13:15PM +0300, Pasi Kärkkäinen wrote:
> On Sun, May 26, 2013 at 05:12:54PM -0400, Dominic Russell wrote:
> > Hello,
> >
> > By trying to find a workaround for the mouse â**unsyncâ** in VNC, I
> > noticed that the mouse, even if the resolution has been changed by a
> > .video argument on the kernel, was only moving in a 800x600 window.
> >
> > It must be due to those lines of code in xen-kbdfront.c (taken from
> > kernel-3.9.1) :
> >
> > input_set_abs_params(ptr, ABS_X, 0, XENFB_WIDTH, 0, 0);
> > input_set_abs_params(ptr, ABS_Y, 0, XENFB_HEIGHT, 0, 0);
> >
> > If the resolution has been overridden by a kernel argument, the width and
> > height should be taken from those arguments also, not from the
> > constants...
> >
>
> Feel free to send a patch :)
>
> http://wiki.xen.org/wiki/Submitting_Xen_Patches
That does look like a bug. And to further compound it - the xen-fbfront is
the one for which the 'video' parameters are altered. Which means that
xen-fbfront needs to export said parameter so that xen-kbdfront can use it.
Yikes. Oh, great:
133 /*
134 * Wart: xenkbd needs to know default resolution. Put it here until a
135 * better solution is found, but don't leak it to the backend.
136 */
Wart indeed.
Dominic, would you be interested in making a patch for this? The one mechanism
by which I think this might work is by
1). changing 'video' in the xen-fbfront to 'xenfb_video' to at least not conflict
with other symbols
2). make it an EXPORT_SYMBOL_GPL
3). stick the structure (video) in a the fbif.h and also the decleration.
4). use that in xen-kbdfront.
5). fiddle with the Kconfig file as need to make xen-kbdfornt depends on xen-fbfront.
>
> -- Pasi
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-28 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-26 21:12 [BUG] xen-kbdfront.c Dominic Russell
2013-05-27 11:13 ` Pasi Kärkkäinen
2013-05-28 14:41 ` Konrad Rzeszutek Wilk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).