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 664669 - wacom: Invalid default threshold value
wacom: Invalid default threshold value
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: plugins
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2011-11-23 19:49 UTC by Bastien Nocera
Modified: 2011-11-24 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2011-11-23 19:49:23 UTC
For stylus and eraser:
$ xinput list | grep 16
⎜   ↳ WACOM Pen Tablet stylus                 	id=16	[slave  pointer  (2)]
$ xinput set-prop 16 --type=int --format=32 "Wacom Pressure Threshold" -1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  141 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Value in failed request:  0x1df
  Serial number of failed request:  18
  Current serial number in output stream:  19
Comment 1 Jason Gerecke 2011-11-23 20:31:19 UTC
At the moment, only the "Wacom Tablet Area" property has a value which indicates the driver should reset it to default. I don't see any immediate problems with allowing other properties to have a similar value, though that's just the five-second opinion of a lone developer.

In the meantime, the default value the driver uses for this particular property is 27.
Comment 2 Bastien Nocera 2011-11-24 14:09:25 UTC
Thanks for the update, Jason. I filed https://bugs.freedesktop.org/show_bug.cgi?id=43221 about it.

commit 0369025cc6d7a0ac11ad52c5ebd6ea00136f25b0
Author: Bastien Nocera <hadess@hadess.net>
Date:   Thu Nov 24 14:06:30 2011 +0000

    wacom: Hard-code default threshold value
    
    -1 is an invalid value for the pressure threshold for now,
    so have a default for ourselves.
    
    See wacom driver bug:
    https://bugs.freedesktop.org/show_bug.cgi?id=43221
    
    https://bugzilla.gnome.org/show_bug.cgi?id=664669