Multiple devices for Aiptek tablet

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Multiple devices for Aiptek tablet

Postby jimbolaya » 2020-04-21 18:58

After a recent post on Reddit, I was inspired to get my Aiptek USB tablet working.

It used to be that you could have more than one "InputDevice" section for each device recognized by the driver

Code: Select all
Section "InputDevice"
    Identifier    "pen"
    Driver        "aiptek"
    Option        "Device"    "/dev/tablet"
    Option        "Type"        "stylus"
    Option        "Mode"        "absolute"
    Option        "Cursor"    "stylus"
    Option        "USB"        "on"
    Option        "KeepShape"    "on"
    Option        "debuglevel"    "20"
EndSection

Section "InputDevice"
    Identifier    "cursor"
    Driver        "aiptek"
    Option        "Device"    "/dev/tablet"
    Option        "Type"        "cursor"
    Option        "Mode"        "absolute"
    Option        "Cursor"    "puck"
    Option        "USB"        "on"
    Option        "KeepShape"    "on"
    Option        "debuglevel"    "20"
EndSection

Section "InputDevice"
    Identifier    "eraser"
    Driver        "aiptek"
    Option        "Device"    "/dev/tablet"
    Option        "Type"        "eraser"
    Option        "Mode"        "absolute"
    Option        "Cursor"    "stylus"
    Option        "USB"        "on"
    Option        "KeepShape"    "on"
    Option        "debuglevel"    "20"
EndSection


Since that time, configuration moved from
Code: Select all
/etc/X11/Xorg.conf
(and similar) to
Code: Select all
/usr/share/X11/xorg.conf.d/*.conf
The current "state of the art" to get the Aiptek tablet working is an Ubuntu article from 7 years ago that seems to work https://help.ubuntu.com/community/AiptekTablet but seems to lump all the "Type"s into a single input. If I put multiple sections that call out individual "Type"s (stylus/cursor/eraser), the Xorg complains and unloads the driver.

Is there any way to have the driver recognize different input types based on the device used? I've got a pen and a puck(mouse). I was hoping the driver would differentiate between the two of them and I could get them treated differently.
jimbolaya
 
Posts: 5
Joined: 2015-09-09 16:42

Re: Multiple devices for Aiptek tablet

Postby Head_on_a_Stick » 2020-04-22 10:49

jimbolaya wrote:configuration moved

You can still use the old configuration location if you want. Don't use /usr/share/X11/ though, that's for configuration files supplied by installed packages — /etc/X11/ is for local configuration.

jimbolaya wrote:Xorg complains

Please post the exact error message(s).

Have you tried using one Section stanza with multiple Identifiers?
User avatar
Head_on_a_Stick
 
Posts: 12129
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Hardware

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable