Monoprice 22hd tablet no pen pressure on Ubuntu 18.04
Closed, ResolvedPublic

Description

Operating System: Ubuntu Mate 18.04
Processor: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 CPUs), ~3.3GHz
Memory: 32768MB RAM
Card name: AMD Radeon (TM) R9 Fury Series
Card name: AMD FirePro W8100 (FireGL V)

Blender Version
Broken: 2.79b f4dc9f9d68b

No pen pressure in sculpt or texture paint mode. Tried versions 2.77a - 2.78c and appears the same. Already unplugged and plugged in monitor to make sure. Pen pressure works fine in Krita 3 and 4.

admins@admins-All-Series:~$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Corsair Corsair Gaming M65 Pro RGB Mouse id=9 [slave pointer (2)]
⎜ ↳ E-Signal USB Gaming Keyboard id=11 [slave pointer (2)]
⎜ ↳ Corsair Corsair Gaming M65 Pro RGB Mouse id=13 [slave pointer (2)]
⎜ ↳ Monoprice 22 Pen (0) id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]

↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
↳ Power Button                            	id=6	[slave  keyboard (3)]
↳ Power Button                            	id=7	[slave  keyboard (3)]
↳ Eee PC WMI hotkeys                      	id=8	[slave  keyboard (3)]
↳ E-Signal USB Gaming Keyboard            	id=10	[slave  keyboard (3)]
↳ E-Signal USB Gaming Keyboard            	id=12	[slave  keyboard (3)]
↳ Corsair Corsair Gaming M65 Pro RGB Mouse	id=14	[slave  keyboard (3)]
↳ Monoprice 22                            	id=15	[slave  keyboard (3)]

Details

Type
Bug

could you launch blender with the --debug-events option [assume your 'pressure' is always 0.0?]

On my Wacom I get something like on a sculpt stroke:

wm_event_do_handlers: Handling event
wmEvent type:1 / LEFTMOUSE, val:1 / PRESS,
shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
mouse:(729,597), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f10095c9408
tablet: active: 1, pressure 0.1456, tilt: (0.3175 0.0794)

For reference, my xinput looks like

Virtual core pointer id=2 [master pointer (3)]

↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
↳ USB OPTICAL MOUSE                       	id=10	[slave  pointer  (2)]
↳ SynPS/2 Synaptics TouchPad              	id=13	[slave  pointer  (2)]
↳ Wacom Intuos4 6x9 Pad pad               	id=14	[slave  pointer  (2)]
↳ Wacom Intuos4 6x9 Pen stylus            	id=15	[slave  pointer  (2)]
↳ Wacom Intuos4 6x9 Pen eraser            	id=16	[slave  pointer  (2)]
↳ Wacom Intuos4 6x9 Pen cursor            	id=17	[slave  pointer  (2)]

Virtual core keyboard id=3 [master keyboard (2)]

↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
↳ Power Button                            	id=6	[slave  keyboard (3)]
↳ Video Bus                               	id=7	[slave  keyboard (3)]
↳ BisonCam, NB Pro: BisonCam, NB          	id=11	[slave  keyboard (3)]
↳ Power Button                            	id=8	[slave  keyboard (3)]
↳ AT Translated Set 2 keyboard            	id=12	[slave  keyboard (3)]
↳ Sleep Button                            	id=9	[slave  keyboard (3)]
Philipp Oeser (lichtwerk) triaged this task as Incomplete priority.Tue, Jun 12, 3:13 PM

Marking as incomplete until we have an answer

wm_event_do_handlers: Handling event
wmEvent type:1 / LEFTMOUSE, val:1 / PRESS,

shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
mouse:(1023,529), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7fea79160988

wm_handlers_do_intern: handled! 'SCULPT_OT_brush_stroke'

wm_event_do_handlers: Handling event
wmEvent type:1 / LEFTMOUSE, val:2 / RELEASE,

shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
mouse:(1019,443), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7fea79160d88
Delo Lat (edisto) added a comment.EditedSat, Jun 16, 7:16 PM

Adding an xorg.conf with:

        Section "InputClass"
	     Identifier "evdev tablet catchall"
	     MatchIsTablet "on"
	     MatchDevicePath "/dev/input/event*"
	     Driver "evdev"
        EndSection

Makes the pen pressure work. However now Krita is broken >.<. So now I have to restart and remove the xorg.conf just to use Krita.

wm_event_do_handlers: Handling event
wmEvent type:1 / LEFTMOUSE, val:1 / PRESS,

        shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
        mouse:(753,528), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7fcfddc7fb08
tablet: active: 1, pressure 0.5794, tilt: (0.0000 0.0000)

wm_handlers_do_intern: handled! 'SCULPT_OT_brush_stroke'

wm_event_do_handlers: Handling event
wmEvent type:1 / LEFTMOUSE, val:2 / RELEASE,

        shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
        mouse:(745,417), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7fcfddc7fc08
tablet: active: 1, pressure 0.0000, tilt: (0.0000 0.0000)
Delo Lat (edisto) closed this task as Resolved.Sat, Jun 16, 8:56 PM
Delo Lat (edisto) claimed this task.

At this point I guess will be more of an xorg and driver issue. I'll have to join #xorg and figure out how to get both programs to work without rebooting.