Skip to contentSkip to conversation

RFC: making the aiptek.c tablet driver xf86-input-wacom compatible

DISCUSSION Stefan Brüns 3 participants 3 messages Jun 25, 2013 – Jun 27, 2013 HID

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I have started to modify the aiptek tablet driver to be compatible with the xf86-input-wacom driver.

Motivation:
First, as wacom dominates the market, most configuration frontends are for wacom, desktop integration only exists for wacom, and most application developers only test with wacom tablets.
Second, the xf86-input-aiptek driver seems to be unmaintained, at least opensuse has dropped it from distribution, and xf86-input-evdev is no sufficient replacement.

So for me there are two possibilities, either replicating all the work done for the wacom driver in the xorg stack and above, or just making the the aiptek driver mimic the output of the wacom kernel driver - I have taken the second option.

Currently, I am cleaning up my changes, and I am investigating some bugs in the original driver parsing the reports from the device.

I have tested my Aiptek 6000U with the xf86-input-wacom driver, and it is working fine in Krita, Inkscape and The Gimp, configuring the tablet via kcm_wacomtablet (KDE configuration module).

If anyone is interested, I will send my patches to this list after the cleanup.

Regards,

Stefan

Signature · 6 lines
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
phone: +49 241 53809034     mobile: +49 151 50412019
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Hi Stephan,

Quoted 5 lines · Stefan Brüns

Hi everyone,

I have started to modify the aiptek tablet driver to be compatible with the xf86-input-wacom driver.

Quoted 7 lines

Motivation:
First, as wacom dominates the market, most configuration frontends are for wacom, desktop integration only exists for wacom, and most application developers only test with wacom tablets.
Second, the xf86-input-aiptek driver seems to be unmaintained, at least opensuse has dropped it from distribution, and xf86-input-evdev is no sufficient replacement.

Yes the fact is that xf86-input-aiptek is unmaintained due to lack of testers with the device. xf86-input-evdev is not a sufficient replacement because it aims at forwarding the raw events from the kernel without any processing. For tablets, the de facto natural way is to use the wacom driver, which should be called now "tablet" but is still called "wacom" for historical reasons.

Quoted 5 lines

So for me there are two possibilities, either replicating all the work done for the wacom driver in the xorg stack and above, or just making the the aiptek driver mimic the output of the wacom kernel driver - I have taken the second option.

thanks for choosing the second solution :) I think Peter will join me on this thank you.
I just gave a quick look at the xf86-input-aiptek sources, and there is nothing which prevents you to port this device to the wacom driver.

Quoted 3 lines

Currently, I am cleaning up my changes, and I am investigating some bugs in the original driver parsing the reports from the device.

The device seems to be a HID declared one. I'd be curious to have a look at the report descriptors to know if the parsing is really necessary. The reports descriptor can be retrieved by calling "lsusb -v" when the device is not bound to its usb driver.

Quoted 4 lines

I have tested my Aiptek 6000U with the xf86-input-wacom driver, and it is working fine in Krita, Inkscape and The Gimp, configuring the tablet via kcm_wacomtablet (KDE configuration module).

great!

Quoted 3 lines

If anyone is interested, I will send my patches to this list after the cleanup.

I think we are. And I think you will also get some advantages in pushing those patches upstream so you will not have to manually maintain your own branch :)

Cheers,
Benjamin
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 17 lines · Benjamin Tissoires

Hi Stephan,

Quoted 5 lines · Stefan Brüns

Hi everyone,

I have started to modify the aiptek tablet driver to be compatible with the xf86-input-wacom driver.

Quoted 7 lines

Motivation:
First, as wacom dominates the market, most configuration frontends are for wacom, desktop integration only exists for wacom, and most application developers only test with wacom tablets.
Second, the xf86-input-aiptek driver seems to be unmaintained, at least opensuse has dropped it from distribution, and xf86-input-evdev is no sufficient replacement.

Quoted 6 lines

Yes the fact is that xf86-input-aiptek is unmaintained due to lack of testers with the device. xf86-input-evdev is not a sufficient replacement because it aims at forwarding the raw events from the kernel without any processing. For tablets, the de facto natural way is to use the wacom driver, which should be called now "tablet" but is still called "wacom" for historical reasons.

fwiw, wacom is still very much centered around wacom devices. it will work from a technical perspective with any tablet but there may be the odd thing here and there that may look different. we'll have to fix that up as we go in the X driver, but there are already non-wacom tablets that work fine.

specifically, test your tablet with libwacom as well (or the GNOME stack) as this covers parts of the device-specific client stack for tablets.

Quoted 7 lines
Quoted 4 lines

So for me there are two possibilities, either replicating all the work done for the wacom driver in the xorg stack and above, or just making the the aiptek driver mimic the output of the wacom kernel driver - I have taken the second option.

thanks for choosing the second solution :) I think Peter will join me on this thank you.

yes, indeed. less xorg drivers is the future :)

Cheers,
Peter

Quoted 23 lines

I just gave a quick look at the xf86-input-aiptek sources, and there is nothing which prevents you to port this device to the wacom driver.

Quoted 3 lines

Currently, I am cleaning up my changes, and I am investigating some bugs in the original driver parsing the reports from the device.

The device seems to be a HID declared one. I'd be curious to have a look at the report descriptors to know if the parsing is really necessary. The reports descriptor can be retrieved by calling "lsusb -v" when the device is not bound to its usb driver.

Quoted 4 lines

I have tested my Aiptek 6000U with the xf86-input-wacom driver, and it is working fine in Krita, Inkscape and The Gimp, configuring the tablet via kcm_wacomtablet (KDE configuration module).

great!

Quoted 3 lines

If anyone is interested, I will send my patches to this list after the cleanup.

Quoted 7 lines

I think we are. And I think you will also get some advantages in pushing those patches upstream so you will not have to manually maintain your own branch :)

Cheers,
Benjamin

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html