tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: troubles with an USB touch screen

thanks for your reply;

On Fri, Jul 18, 2014 at 11:50:39PM +0200, Yorick Hardy wrote:
> Which X mouse driver are you using?

I was using "mouse", I now switched to ws

> What does "xinput list" output?
> (And also "xinput list Mouse0" for Mouse0, change to whatever your mouse is
>  called in "xinput list".)

# xinput list
"Virtual core pointer"  id=2    [XPointer]
"Virtual core keyboard" id=3    [XKeyboard]
"Virtual core XTEST pointer"    id=4    [XExtensionPointer]
"Virtual core XTEST keyboard"   id=5    [XExtensionKeyboard]
"Mouse0"        id=6    [XExtensionPointer]
"Keyboard0"     id=7    [XExtensionKeyboard]
# xinput list Mouse0
"Mouse0"        id=6    [XExtensionPointer]
        Type is TOUCHSCREEN
        Num_buttons is 5
        Num_axes is 2
        Mode is Absolute
        Motion_buffer is 256
        Axis 0 :
                Min_value is 0
                Max_value is 1279
                Resolution is 1
        Axis 1 :
                Min_value is 0
                Max_value is 799
                Resolution is 1

> I needed to use ws(4):
> $ cat /etc/X11/xorg.conf
> Section "InputDevice"
>  Identifier "WSMouse"
>  Driver "ws"
>  Option "AutoServerLayout" "true"
>  Option "Device" "/dev/wsmouse"
> EndSection
> If "xinput list WSMouse" (adjust as needed) includes "Type is TOUCHSCREEN"
> then you should be able to
>  xinput --set-prop --type=int --format=32 WSMouse \
>    "WS Pointer Axis Calibration" 0 1279 0 799
> or something like that.  Here "WSMouse" is the identifier for the device in
> /etc/X11/xorg.conf.  If I understood correctly, "1279" and "799" need to be
> set much higher for your device.  If I remember correctly, the device needs
> to be attached before starting X.

thanks, with this I've been able to get is working properly:
xinput --set-prop --type=int --format=32 Mouse0 "WS Pointer Axis Calibration"  
0 9540 0 7210

> I hope this information is of some use.

Indeed it was very usefull, thanks a lot !

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index