From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: Daniel Ritz <daniel.ritz-ml@swissonline.ch>
Cc: daniel.ritz@gmx.ch, linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [PATCH] usb: generic calibration support
Date: Fri, 17 Nov 2006 09:12:29 +0100 [thread overview]
Message-ID: <200611170912.29317.hs4233@mail.mn-solutions.de> (raw)
In-Reply-To: <200611170024.33248.daniel.ritz-ml@swissonline.ch>
> sorry, but i have to give you a big NACK on that one:
Hehe, I actually anticipated this NACK :-)
> - no more modparam: it should be per-device sysfs attributes
> (swap_xy is basically only for touchkitusb compatibility and
> shoud be converted to per-device sysfs attribute as well. i
> just never got to do it)
That would be okay for me.
> - calibration can be handled in userspace just fine
Yes it can, and that is the most convinging argument against my
patch.
However, user-space calibration often sucks. For example, in X11
the calibration values are stored in /etc/X11/xorg.conf, so a
calibration program has to parse & write that file. And I've
seen binary-only-calibration programs from vendors
use /etc/X11/XF86Config, which doesn't exist here. Anyway, once
you've calibrated you have to restart X-Windows, so you need to
terminate all running X applications just because of a silly
re-calibration. Not nice.
A calibration at kernel level (may it be input level or driver
level) doesn't have this problem. I can make the level
persistent via udev, modules.conf or other means. Even when I
have a frame-buffer based calibration utility, the calibration
would be OK for X11 or GTK/DirectFB as well.
For me, this speaks against "Calibration is purely a user-space
problem".
> - even for in-kernel it's in the wrong place. there are other
> devices that report raw absolute data...so it would belong to
> the input layer
Suppose I have a graphics tabled and a touchscreen connected at
the same time. Can I distinguish this easily at the input layer
level?
I can very easily distinguish this at the device driver level.
After all, the individual calibration parameters are a property
of this individual device.
next prev parent reply other threads:[~2006-11-17 8:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 10:25 Holger Schurig
2006-11-16 23:24 ` Daniel Ritz
2006-11-17 8:12 ` Holger Schurig [this message]
2006-11-17 14:16 ` Dmitry Torokhov
2006-11-17 14:53 ` Holger Schurig
2006-11-17 15:22 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200611170912.29317.hs4233@mail.mn-solutions.de \
--to=hs4233@mail.mn-solutions.de \
--cc=daniel.ritz-ml@swissonline.ch \
--cc=daniel.ritz@gmx.ch \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®