Skip to contentSkip to conversation

GPen 340 Pen Tablet input

DISCUSSION Andrej Gelenberg 2 participants 5 messages Mar 16, 2008 – Mar 20, 2008 3 messages not in the archive HID

lore
Share & tools
lore
#0 lore raw

Hi

How can i add Support for my usb Tablet? It works, but evdev report wrong codes for Axis and buttons.

Andrej

#1 lore raw
Quoted 2 lines · Andrej Gelenberg

How can i add Support for my usb Tablet? It works, but evdev report wrong codes for Axis and buttons.

Which driver is this tablet handled by?

Signature · 2 lines
Jiri Kosina
SUSE Labs
#3 lore raw
In reply to a message not in the archive
Quoted 2 lines · Andrej Gelenberg
Quoted 1 line

Which driver is this tablet handled by?

its handled by usbhid.

[ linux-input returned to CC ]

Please recompile your kernel with CONFIG_HID_DEBUG, modprobe the 'hid' module with 'debug=1' parameter, and send the output that appears in dmsg output when you connect the device, and also when you perform the actions that don't work properly.

Also, please annotate this output, i.e. write "this happens when I move the mouse in Y direction, this happens when I press that non-functioning button", etc.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#5 lore raw
In reply to a message not in the archive
Quoted 4 lines · Andrej Gelenberg

By moving and pressing keys report dmesg right values, but i have problem by using my Tablet under Xorg. Xorg try evdev driver for it and evdev report wrong codes.
example for move:

Quoted 9 lines
Mar 17 00:03:32 [kernel] [  446.045131] hid-debug: input GenericDesktop.X =
6742
Mar 17 00:03:32 [kernel] [  446.045136] hid-debug: input GenericDesktop.Y =
17272
Mar 17 00:03:32 [kernel] [  446.045139] hid-debug: input
Digitizers.TipPressure = 0
Mar 17 00:03:32 [kernel] [  446.048669] hid-debug: input Button.0001 = 0
Mar 17 00:03:32 [kernel] [  446.048675] hid-debug: input Button.0002 = 0
Mar 17 00:03:32 [kernel] [  446.048678] hid-debug: input Button.0003 = 0

[ restored linux-input in CC ]

So, and the problem is where? How are the values (mis)interpreted in X? Switched axes? Buttons mixup? Please be more specific.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#7 lore raw
In reply to a message not in the archive

On Tue, 18 Mar 2008, Andrej Gelenberg wrote:

[ restored linux-input CC again, please don't drop it ]

Quoted 6 lines

i think the Problem is the evdev driver in xorg. But /dev/input/event report code, that are not to codes in linux/input.h. For example in input.h: #define ABS_X 0x00 and there is code 0x02. For Y-axis in input.h ist 0x01 and 0x03 received. Pressure is corecct, Buttons can be simple remaped, but it is not very good. And hid-driver report all right.

Are you sure that kernel driver reports the values correctly through evdev? Could you please send me the debugging output that appears in dmesg for example when you perform movement on the X-axis?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs