Pressure Sensitivity

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Sordelka
Level 1
Level 1
Posts: 7
Joined: Mon May 26, 2008 8:06 am

Pressure Sensitivity

Post by Sordelka »

How to fix it in wine with Wacom Bamboo Fun Tablet
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Pressure Sensitivity

Post by vitamin »

Sordelka wrote:How to fix it in wine with Wacom Bamboo Fun Tablet
It's a known problem see this bug http://bugs.winehq.org/show_bug.cgi?id=12005

Don't know how you suppose to fix this other then hack the Wine code itself.
JohnKlehm
Newbie
Newbie
Posts: 3
Joined: Mon May 26, 2008 12:28 pm

Post by JohnKlehm »

Well bug 12005/11699 (same bug really) is that non wacom tablets don't always have 3 x11 devices and that causes trouble with our current device detection scheme.

Since sordelka you have a wacom tablet can you do a few things for me so I can get a better picture of where the problem might be?

1) Can you first tell me if you get pressure sensitivity in Gimp?
If yes can you pastebin your xorg.conf?

2) Can you post the output of running from a terminal
xidump -l

3) Can you post the output of running from a terminal
xsetpointer -l

Answer me those questions and hopefully I'll be able to figure out your problem. =)
Sordelka
Level 1
Level 1
Posts: 7
Joined: Mon May 26, 2008 8:06 am

Post by Sordelka »

1) Pressure works in GIMP perfectly

2) xorg.conf:

Code: Select all

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"pad"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"pad"
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"pad"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"pad"
	Option		"USB"		"on"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"ca"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
	Driver		"nvidia"
	Option		"NoLogo"	"True"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
	Defaultdepth	24
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
  	screen "Default Screen"
	InputDevice     "stylus"	"SendCoreEvents"
	InputDevice     "cursor"	"SendCoreEvents"
	InputDevice     "eraser"	"SendCoreEvents"
	InputDevice	"pad"
EndSection
Section "Module"
	Load		"glx"
EndSection
2) xidump -| output:

Code: Select all

Virtual core keyboard          keyboard
Virtual core pointer           disabled
Generic Keyboard               unknown
Configured Mouse               unknown
pad                            unknown
eraser                         unknown
cursor                         unknown
stylus                         unknown
3) xsetpointer -l output

Code: Select all

0: "Virtual core keyboard"	[XKeyboard]
1: "Virtual core pointer"	[XPointer]
2: "Generic Keyboard"	[XExtensionKeyboard]
3: "Configured Mouse"	[XExtensionPointer]
4: "pad"	[XExtensionKeyboard]
5: "eraser"	[XExtensionKeyboard]
6: "cursor"	[XExtensionKeyboard]
7: "stylus"	[XExtensionKeyboard]
JohnKlehm
Newbie
Newbie
Posts: 3
Joined: Mon May 26, 2008 12:28 pm

Post by JohnKlehm »

Thanks for the info!

The problem is that all your tablet devices are classified as XExtensionKeyboard. Wine doesn't support detection of that type.

Can you tell me what version of X windows you are using and what distro so I can ask around some more about alternate ways tablets can get classified in X?

Support for XExtensionPointer went in earlier this month, it may be that we just need to add support for this class too, I just would like to have the version information so I might investigate better.
JohnKlehm
Newbie
Newbie
Posts: 3
Joined: Mon May 26, 2008 12:28 pm

Post by JohnKlehm »

I sent in a patch to add support for tablet detection from XExtensionKeyboard type devices.

http://www.winehq.org/pipermail/wine-pa ... t-0001.txt

Hopefully that'll fix things up for you.
Sordelka
Level 1
Level 1
Posts: 7
Joined: Mon May 26, 2008 8:06 am

Post by Sordelka »

how do I apply that?
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

Depends on your tollerence. Sordelka that patch is already main line git will be in 1.0-rc3.

So if you wait a few days you will not have to patch either.
Sordelka
Level 1
Level 1
Posts: 7
Joined: Mon May 26, 2008 8:06 am

Post by Sordelka »

oh cool!
Locked