On Tue, Jul 31, 2007 at 09:11:22AM +1000, Adrian Ratnapala wrote:
> http://www.mail-archive.com/[email protected]/msg00106.html
>
> >Tim Lawrenz was kind enough to test this on his touchscreen, and
> >reports:
>
> As far as can tell, Tim's experience is exactly what I observe with the
> (presumably unpatched) driver in Feisty. The thing seems to work fairly
> well, but is not calibrated. Indeed I can not move the mouse into the
> outer 10 pixels of the screen, presumably because of the way it is calibrated.
> Also MinX, MaxX, MinY and MaxY are ignored.
>
> Since I want my problem fixed, I'm happy to test out this driver, I'd like
> help with the following questions (some of them dumb, sorry).
>
> * Who/what should I talk to in Xorg about this.
Michael's probably got the best info here. The patch comes from the
Pepper project.
> * Since MaxX and friends are ignored, how do you access the "unimproved"
> options.
As I understand it, it requires use of a calibration tool, "like
xcalibrate". I've not yet found an appropriate calibration tool to
suggest to testers, but gather there's a few out there - just not in
Ubuntu yet. If you find one you like and let me know, I can work on
incorporating it into Ubuntu.
> * Where do I get the patch.
I've attached it to this email. Also, it's been added to the evdev
driver in Gutsy, so should already be installed for anyone with an up to
date Gutsy.
> * Can/should I try this on Feisty Fawn which I have currently
> installed, even though
> the patch is for Gutsy. If so, how.
Yes, the patch should work fine built against the Feisty -evdev.
Some good documentation for creating debs from source packages, with
patches is available at http://doc.ubuntu.com/ubuntu/packagingguide/C/.
If you're interested in learning, this patch would give a good example
to work through.
In case you actually just want the deb, I've gone ahead and built a
Feisty version with this patch for you here:
http://people.ubuntu.com/~bryce/Testing/evdev-Feisty/
I haven't tested this deb out though, but expect it should work about
the same as the current Gutsy version.
Bryce
P.S., these are the steps I did to build the deb:
1. On packages.ubuntu.com, looked up the Feisty .dsc for -evdev
2. dget -x
http://archive.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-input-evdev/xserver-xorg-input-evdev_1.1.5-0ubuntu2.dsc
3. cd xserver-xorg-input-evdev-1.1.5/
3. Copy the patch into debian/patches/
4. Add the patch name to debian/patches/series
5. dch -i and add a new changelog entry, and set version string to
1.1.5-0ubuntu2~ppa1
6. debuild -sa -S
7. cd ..
8. pbuilder build xserver-xorg-input-evdev_1.1.5-0ubuntu2~ppa1.dsc
--- a/src/evdev.c 2006-10-19 07:35:16.000000000 -0400
+++ b/src/evdev.c 2006-10-19 07:21:23.000000000 -0400
@@ -82,7 +82,22 @@
EvdevReadInput(InputInfoPtr pInfo)
{
struct input_event ev;
- int len;
+ struct input_absinfo absinfo;
+ evdevDevicePtr pEvdev = pInfo->private;
+ evdevStatePtr state = &pEvdev->state;
+ int len,i;
+
+ for (i = 0; i < ABS_MAX; i++) {
+ if (!test_bit (i, pEvdev->bits.abs))
+ continue;
+
+ if (ioctl (pInfo->fd, EVIOCGABS(i), &absinfo) < 0) {
+ xf86Msg(X_ERROR, "ioctl EVIOCGABS (%d) failed: %s\n", i, strerror(errno));
+ continue;
+ }
+ state->abs->min[state->abs->map[i]] = absinfo.minimum;
+ state->abs->max[state->abs->map[i]] = absinfo.maximum;
+ }
while (xf86WaitForInput (pInfo->fd, 0) > 0) {
len = read(pInfo->fd, &ev, sizeof(ev));
@@ -176,9 +191,11 @@
return BadRequest;
}
+#if 0
if (pEvdev->state.can_grab)
if (ioctl(pInfo->fd, EVIOCGRAB, (void *)1))
xf86Msg(X_ERROR, "%s: Unable to grab device (%s).\n", pInfo->name, strerror(errno));
+#endif
xf86FlushInput (pInfo->fd);
if (!xf86InstallSIGIOHandler (pInfo->fd, EvdevSigioReadInput, pInfo))
--
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile