linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ucb1400 and mouse emulation
@ 2009-10-05 12:34 Pavel Revak
  2009-10-06  5:06 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Revak @ 2009-10-05 12:34 UTC (permalink / raw)
  To: linux-input

Hello, I upgraded to new kernel 2.6.31 (from 2.6.29) and I use
touchscreen with ucb1400 through library "tslib" which has own
calibration. from 2.6.30+ kernels this touchscreen emulate a mouse
(with out tslib) but is uncalibrated. My application use SDL with
framebuffer (no X server) and read mouse and touchscreen
simultaneously. But now it is unusable whne I use touchscreen, because
I read now touch screen as generic mouse (uncalibrated) and as tslib
(calibrated) at same time . Exist any way to calibrate touchscreen
without X server or tslib for sdl applications (this is preferred to
me) ? or can I disable mouse emulation from touchscreen and use only
tslib for sdl apps ?

Thanks, Palo.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ucb1400 and mouse emulation
  2009-10-05 12:34 ucb1400 and mouse emulation Pavel Revak
@ 2009-10-06  5:06 ` Dmitry Torokhov
  2009-10-06 13:41   ` Pavel Revak
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2009-10-06  5:06 UTC (permalink / raw)
  To: Pavel Revak; +Cc: linux-input

Hi Pavel

On Mon, Oct 05, 2009 at 02:34:09PM +0200, Pavel Revak wrote:
> Hello, I upgraded to new kernel 2.6.31 (from 2.6.29) and I use
> touchscreen with ucb1400 through library "tslib" which has own
> calibration. from 2.6.30+ kernels this touchscreen emulate a mouse
> (with out tslib) but is uncalibrated.

This should not have changed, mousedev emulation was there for ages.

> My application use SDL with
> framebuffer (no X server) and read mouse and touchscreen
> simultaneously. But now it is unusable whne I use touchscreen, because
> I read now touch screen as generic mouse (uncalibrated) and as tslib
> (calibrated) at same time . Exist any way to calibrate touchscreen
> without X server or tslib for sdl applications (this is preferred to
> me) ? or can I disable mouse emulation from touchscreen and use only
> tslib for sdl apps ?
>

The application has to decide what interface it wishes to use (mousedev
or evdev) and read from that interface only.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ucb1400 and mouse emulation
  2009-10-06  5:06 ` Dmitry Torokhov
@ 2009-10-06 13:41   ` Pavel Revak
  2009-10-07  4:35     ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Revak @ 2009-10-06 13:41 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

On Tue, Oct 6, 2009 at 7:06 AM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> Hi Pavel
>
> On Mon, Oct 05, 2009 at 02:34:09PM +0200, Pavel Revak wrote:
>> Hello, I upgraded to new kernel 2.6.31 (from 2.6.29) and I use
>> touchscreen with ucb1400 through library "tslib" which has own
>> calibration. from 2.6.30+ kernels this touchscreen emulate a mouse
>> (with out tslib) but is uncalibrated.
>
> This should not have changed, mousedev emulation was there for ages.

ah yes, but after this patch:
 http://article.gmane.org/gmane.linux.kernel.commits.head/191681
mouse emulation works in my application.

>> My application use SDL with
>> framebuffer (no X server) and read mouse and touchscreen
>> simultaneously. But now it is unusable whne I use touchscreen, because
>> I read now touch screen as generic mouse (uncalibrated) and as tslib
>> (calibrated) at same time . Exist any way to calibrate touchscreen
>> without X server or tslib for sdl applications (this is preferred to
>> me) ? or can I disable mouse emulation from touchscreen and use only
>> tslib for sdl apps ?
>>
>
> The application has to decide what interface it wishes to use (mousedev
> or evdev) and read from that interface only.

OK, thanks
Palo.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ucb1400 and mouse emulation
  2009-10-06 13:41   ` Pavel Revak
@ 2009-10-07  4:35     ` Dmitry Torokhov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2009-10-07  4:35 UTC (permalink / raw)
  To: Pavel Revak; +Cc: linux-input

On Tue, Oct 06, 2009 at 03:41:17PM +0200, Pavel Revak wrote:
> On Tue, Oct 6, 2009 at 7:06 AM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > Hi Pavel
> >
> > On Mon, Oct 05, 2009 at 02:34:09PM +0200, Pavel Revak wrote:
> >> Hello, I upgraded to new kernel 2.6.31 (from 2.6.29) and I use
> >> touchscreen with ucb1400 through library "tslib" which has own
> >> calibration. from 2.6.30+ kernels this touchscreen emulate a mouse
> >> (with out tslib) but is uncalibrated.
> >
> > This should not have changed, mousedev emulation was there for ages.
> 
> ah yes, but after this patch:
>  http://article.gmane.org/gmane.linux.kernel.commits.head/191681
> mouse emulation works in my application.

Ah, I see. 

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-07  4:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-05 12:34 ucb1400 and mouse emulation Pavel Revak
2009-10-06  5:06 ` Dmitry Torokhov
2009-10-06 13:41   ` Pavel Revak
2009-10-07  4:35     ` Dmitry Torokhov

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).