On Tue, Oct 8, 2013 at 12:07 AM, Bastien Nocera <had...@hadess.net> wrote:
> Hey,
>
> We're having some problems in GNOME with the calibration UI, especially
> after a calibration has been done because the factory values for "Wacom
> Tablet Area" have been modified, and we cannot use those (especially if
> a previous erroneous calibration has been made) to calibrate the device
> again.
>
> Is there a way to reset those values to the factory settings?

"xsetwacom set dev_id Area -1 -1 -1 -1" will set the area back to
factory values. But I don't think we want to run xsetwacom when Gnome
Control Center is running. So, another way is to set it through "area"
property directly from X server. Refer to
xf86-input-wacom/tools/xsetwacom.c for example.

> Are the default values available anywhere but in the driver? If the values
> aren't computed, could we move those to libwacom so we can fix
> calibration?

To provide Gnome with factory tablet area, we can add the values to
libwacom. However, I wonder if retrieving the values from X server, or
even better directly from the kernel, is feasible for Gnome. This
approach avoids the extra middle-ware, which leads to less maintenance
issue.

To retrieve the factory values directly from kernel, you can use
"ioctl(fd, EVIOCGABS(ABS_X), &absinfo)", ABS_Y would be used for Y
value. Details can be found at xf86-input-wacom/src/wcmUSB.c.

Let me know if I've missed your point.

Ping

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to