xinput-calibrator XChangeDeviceProperty calls ignored

Simon Thum simon.thum at gmx.de
Wed Jan 27 04:29:25 PST 2010


Marco Cavallini wrote:
> Simon Thum ha scritto, Il 27/01/2010 11:47:
>> Marco Cavallini wrote:
>>> Hi,
>>> I'm testing and debugging xinput-calibrator and looks like
>>> CalibratorEvdev::do_set_prop - XChangeDeviceProperty calls are ignored
>>> by Xorg.
>> Properties may reject attempts to change their value (to specific
>> values). Also, if the properties don't exist before, you may be creating
>> them but they don't have any actual meaning.
> 
> Simon,
> If I see the following properties, should I be able to set an of them?
Yeah you should. But it's important to get the value and type right.
Citing from evdev-properties.h:
/* Run-time calibration */
/* CARD32, 4 values [minx, maxx, miny, maxy], or no values for unset */
#define EVDEV_PROP_CALIBRATION "Evdev Axis Calibration"

(you should have this file if you compiled evdev or have a *-dev package)

You ought to be getting errors if it doesn't work:

simon at simons ~ $ xinput --set-prop 6 "Device Accel Constant Deceleration" -1
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  139 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Value in failed request:  0xf3
  Serial number of failed request:  17
  Current serial number in output stream:  18

> I ask because I get no effect.
> 
> 
> # xinput --list-props "atmel-ts"
> Device 'atmel-ts':
>         Device Enabled (112):   1
>         Device Accel Profile (220):     0
>         Device Accel Constant Deceleration (221):       1.000000
>         Device Accel Adaptive Deceleration (223):       1.000000
>         Device Accel Velocity Scaling (224):    10.000000
>         Evdev Reopen Attempts (229):    10
>         Evdev Axis Inversion (230):     0, 0
>         Evdev Axis Calibration (231):   <no items>
>         Evdev Axes Swap (232):  1
>         Axis Labels (233):      "Abs X" (226), "Abs Y" (227), "Abs
> Pressure" (228)
>         Button Labels (234):    "Button Unknown" (225), "Button Unknown"
> (225), "Button Unknown" (225), "Button Wheel U)
>         Evdev Middle Button Emulation (235):    2
>         Evdev Middle Button Timeout (236):      50
>         Evdev Wheel Emulation (237):    0
>         Evdev Wheel Emulation Axes (238):       0, 0, 4, 5
>         Evdev Wheel Emulation Inertia (239):    10
>         Evdev Wheel Emulation Timeout (240):    200
>         Evdev Wheel Emulation Button (241):     4
>         Evdev Drag Lock Buttons (242):  0
> 
> TIA
> /marco
> 




More information about the xorg mailing list