linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Hutterer <peter.hutterer@redhat.com>
To: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Jiri Kosina <jkosina@suse.cz>,
	linux-input@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] HID: add multi-input quirk for NextWindow Touchscreen.
Date: Fri, 04 Dec 2009 23:24:24 +1000	[thread overview]
Message-ID: <4B190D88.4090102@redhat.com> (raw)
In-Reply-To: <871vjasxnm.fsf@macbook.be.48ers.dk>

On 04/12/09 22:59, Peter Korsgaard wrote:
>>>>>> "Peter" == Peter Hutterer<peter.hutterer@redhat.com>  writes:
>   Peter>  it's a hack in userspace that works around wrong event
>   Peter>  reporting. So yes, it works if you're using evtouch but if you
>   Peter>  want to use any other driver that driver needs the same
>   Peter>  hack. treating Z as X and RX as Y doesn't work too well for a
>   Peter>  generic driver such as evdev, which has to deal with devices
>   Peter>  where RX is a valid axis.
>
> Hmm, I don't see it sending Z / RX:
>
> sudo evtest /dev/input/event12
> Input driver version is 1.0.0
> Input device ID: bus 0x3 vendor 0x1926 product 0x1 version 0x100
> Input device name: "Nextwindow Touchscreen"
> Supported events:
>    Event type 0 (Sync)
>    Event type 1 (Key)
>      Event code 272 (LeftBtn)
>      Event code 273 (RightBtn)
>      Event code 274 (MiddleBtn)
>    Event type 3 (Absolute)
>      Event code 0 (X)
>        Value      0
>        Min        0
>        Max    32767
>      Event code 1 (Y)
>        Value      0
>        Min        0
>        Max    32767
>    Event type 4 (Misc)
>      Event code 4 (ScanCode)
> Testing ... (interrupt to exit)

with the quirk, the device exposes three /dev/input/event files, the 
highest of which sends the actual events now (in X/Y). number two looks 
like a mouse device (like yours), number three like a touchscreen 
(BTN_TOUCH, etc.)
without the quirk, I only get two devices, the second of which looks 
like a mix of mouse/touchscreen and it sends ABS_Z/ABS_RX while ABS_X 
and ABS_Y are mute. I can get you the full evtest blurb but not before 
Monday, the screen is in the office.

> sudo nwtool -u -i
> Version:                2.91
> Serial:                 233025
> Model:                  1900
> HW capabilities:        0x40
> Rightclick delay:       1000 ms
> Doubleclick time:       200 ms
> Report mode:            1
> Drag threshold:         500
> Buzzer time:            40 ms
> Buzzer tone:            40
> Calibration key:        4
> Calibration presses:    3

where do I get nwtool from? google is unusually quiet about it.
is it possible that you changed the report mode (or have it different to 
me anyway) and that affects things?

Cheers,
   Peter



  reply	other threads:[~2009-12-04 13:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03  5:08 [PATCH] HID: add multi-input quirk for NextWindow Touchscreen Peter Hutterer
2009-12-03  9:52 ` Jiri Kosina
2009-12-03 12:15 ` Peter Korsgaard
2009-12-03 22:07   ` Peter Hutterer
2009-12-04 12:59     ` Peter Korsgaard
2009-12-04 13:24       ` Peter Hutterer [this message]
     [not found]         ` <4B190D88.4090102-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-12-04 13:40           ` Peter Korsgaard
2009-12-07  5:46             ` Peter Hutterer
     [not found]               ` <4B1C96C4.5080709-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-12-09  9:42                 ` Peter Korsgaard
2009-12-17 20:30                   ` Peter Korsgaard
2009-12-18  5:02                   ` Peter Hutterer
     [not found]                     ` <4B2B0CCE.2020406-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-12-19 22:05                       ` Peter Korsgaard
     [not found]                         ` <87638239ha.fsf-uXGAPMMVk8amE9MCos8gUmSdvHPH+/yF@public.gmane.org>
2009-12-20 23:48                           ` Peter Hutterer
2009-12-21  7:16                             ` Peter Korsgaard

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=4B190D88.4090102@redhat.com \
    --to=peter.hutterer@redhat.com \
    --cc=jacmet@sunsite.dk \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).