After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 688317 - Can't calibrate stylus or touchscreen on Lenovo x200 tablet with multitouch
Can't calibrate stylus or touchscreen on Lenovo x200 tablet with multitouch
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: wacom
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Olivier Fourdan
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-11-14 13:55 UTC by Mikael Djurfeldt
Modified: 2012-12-04 09:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mikael Djurfeldt 2012-11-14 13:55:05 UTC
This bug applies to the wacom plugin of the gnome-settings-daemon.  I'm running Debian Wheezy and the version number of gnome-settings-daemon is 3.4.2+git20120925.a4c817-2.

On a Lenovo x200 tablet with multitouch, when selecting "Wacom Graphics
Tablet" in "System Settings", there is a button "Calibrate...".  When
pressing this button nothing happens. I had expected a calibration window
to pop up.

These observations might be related to the bug:

* The "Wacom Graphics Tablet" settings window indicates that the system has
  a "Wacom Serial Tablet WACf004" while a look under /sys/bus/acpi/... rather
  indicates that the hardware is a WACf008.

* When pressing the "Calibrate..." button, the following lines appear in
  .xsession.errors:

---
(gnome-control-center:5868): wacom-cc-panel-WARNING **: No fuzzy match based on heuristics was found.

(gnome-control-center:5868): wacom-cc-panel-CRITICAL **: Output associated with the tablet is not connected. Unable to calibrate.
---

The tablet seems to appear to the system as a serial device.
Comment 1 Olivier Fourdan 2012-11-14 14:23:11 UTC
Would it be possible to try with current GNOME 3.6 instead?

That should be addressed in current code, if a match isn't found using EDID (searching for "WAC" as manufacturer) then the laptop monitor will be used, which solves the issue on tablet PC such as your device.

relevent git commit is d1329ec0:

http://git.gnome.org/browse/gnome-settings-daemon/commit/plugins/wacom/gsd-wacom-device.c?id=d1329ec0f86306fe45d203627c61c5bcbcd92fa2
Comment 2 Mikael Djurfeldt 2012-11-14 14:37:10 UTC
I'm not very happy about messing up my system by installing GNOME 3.6 from source, so I tried running GNOME 3.6 from Debian experimental, but that failed.  (Probably the package dependencies are not yet setup entirely correctly.  It might have worked if I had installed it from a clean slate rather than my selection of 3.4 packages.)

Since this did not work, I tried to backport the patch you are referring to to the 3.4 version of the settings daemon.  To do this, I had to apply a patch switching from the use of GnomeRROutputInfo to GnomeRROutput.  I also had to include edid-parse.c in the sources for the settings daemon to get decode_edid.  I also couldn't access edid_data from MonitorInfo, so I used gnome_rr_output_get_edid_data.

When having done all of this, the daemon crashes with a segfault...

I then proceeded to file this bug report since I didn't even know if what I see is at all related to the patch you refer to.

Do you have any advice concerning backporting of this change to 3.4?
Comment 3 Mikael Djurfeldt 2012-11-14 14:40:29 UTC
(Sorry----it was the *plugin*, not the daemon which crashed due to my backport attempt.)
Comment 4 Mikael Djurfeldt 2012-11-14 21:50:15 UTC
I finally managed to get gnome 3.6 from experimental running.  Calibration of the stylus now works, although the Wacom Tablet settings window still erroneously displays "WACf004" (expected: "WACf008").

Two problems remain:

1. This is a calibration of the stylus only.  It seems like gnome-settings-daemon is unaware of the touchscreen parameters and also doesn't offer to calibrate them.

2. Debian is preparing for the Wheezy release.  It would be great if there was a way to backport git commit d1329ec0 to 3.4:

http://git.gnome.org/browse/gnome-settings-daemon/commit/plugins/wacom/gsd-wacom-device.c?id=d1329ec0f86306fe45d203627c61c5bcbcd92fa2

Best regards,
Mikael Djurfeldt
Comment 5 Olivier Fourdan 2012-12-04 09:51:47 UTC
> I finally managed to get gnome 3.6 from experimental running.  Calibration of
> the stylus now works, 

Then this bug should closed as "fixed in stable".

> although the Wacom Tablet settings window still
> erroneously displays "WACf004" (expected: "WACf008").

That's a libwacom issue, the definition of the serial tablet "WACf004" in libwacom is:

  Name=Wacom Serial Tablet WACf004
  DeviceMatch=serial:0000:0000
  Class=ISDV4
  IntegratedIn=Display;System

So there's a good chance that your tablet is also seen as a "WACf004" (because of DeviceMatch=serial:0000:0000)

That should be reported and addressed in libwacom instead, I'd rather keep one problem per bug.
 
> Two problems remain:
> 
> 1. This is a calibration of the stylus only.  It seems like
> gnome-settings-daemon is unaware of the touchscreen parameters and also doesn't
> offer to calibrate them.

Yes, calibration is for stylus, touchscreen is another problem, there is no specific UI for touchscreen, that would be bug 670729 for control-center instead.

> 2. Debian is preparing for the Wheezy release.  It would be great if there was
> a way to backport git commit d1329ec0 to 3.4:

Surely there is many ways to backport any fix or feature to older release, but that's not something that belongs to upstream.

Backporting fixes and features for previous, older releases is up to downstream maintainers to decide, the fix is done upstream on current version and that's what matters.

This specific bug report (can't calibrate stylus) is solved in current version, so I think this bug should be closed.

The touch part of the problem is another issue (bug 670729).
Comment 6 Mikael Djurfeldt 2012-12-04 09:56:02 UTC
Fixed in stable