evdev and Trust TB-5300 tablet: wrong axis labels

Daniil Kolpakov dan at riga.lv
Sat Dec 12 14:58:45 PST 2009


(Sorry, the email was send from wrong address. Resending it.)

Hi,

I'm playing with Trust TB-5300 tablet, which gets identified as "UC-LOGIC 
Tablet WP5540U" by HAL and xorg loads evdev driver for it on plug.

I'm getting the following list of axes with xinput list --long:
Abs X, Abs Y, Abs Z, Abs Rotary X, Abs Pressure (5 axes). xinput test shows 
output like this:

motion a[0]=0 a[1]=0 a[2]=32045 a[3]=16538 a[4]=55
motion a[0]=0 a[1]=0 a[2]=32072 a[3]=16575 a[4]=54
motion a[0]=0 a[1]=0 a[2]=32114 a[3]=16596 a[4]=49

a[0] and a[1] is always 0, a[2] is X, a[3] is Y and a[4] is pressure.

The result is that X pointer goes to (0, 0) every time I move pen over the 
tablet. Looks like two non-existing axes to me (I guess if I could at least 
remap them I could have the pen move X cursor properly). Is there anything to 
configure on this subject?

Output of the "xinput list --long" for tablet device:
Б▌°   Б├Ё UC-LOGIC Tablet WP5540U                       id=11   [slave  
pointer  (2)]
        Reporting 6 classes:                                                         
                Class originated from: 11                                            
                Buttons supported: 14                                                
                Button labels: Button Left Button Middle Button Right Button 
Wheel Up Button Wheel Down Button Horiz Wheel Left Button Horiz Wheel Right 
Button Side Button Extra Button Forward Button Unknown Button Unknown Button 
Unknown Button Unknown                                                                                
                Button state:                                                                                                                                         
                Class originated from: 11                                                                                                                             
                Detail for Valuator 0:                                                                                                                                
                  Label: Abs X                                                                                                                                        
                  Range: 0.000000 - 11000.000000                                                                                                                      
                  Resolution: 10000 units/m                                                                                                                           
                  Mode: absolute                                                                                                                                      
                  Current value: 0.000000                                                                                                                             
                Class originated from: 11                                                                                                                             
                Detail for Valuator 1:                                                                                                                                
                  Label: Abs Y                                                                                                                                        
                  Range: 0.000000 - 8000.000000                                                                                                                       
                  Resolution: 10000 units/m                                                                                                                           
                  Mode: absolute                                                                                                                                      
                  Current value: 0.000000
                Class originated from: 11
                Detail for Valuator 2:
                  Label: Abs Z
                  Range: 0.000000 - 32767.000000
                  Resolution: 10000 units/m
                  Mode: absolute
                  Current value: 25529.000000
                Class originated from: 11
                Detail for Valuator 3:
                  Label: Abs Rotary X
                  Range: 0.000000 - 32767.000000
                  Resolution: 10000 units/m
                  Mode: absolute
                  Current value: 18114.000000
                Class originated from: 11
                Detail for Valuator 4:
                  Label: Abs Pressure
                  Range: 0.000000 - 1023.000000
                  Resolution: 10000 units/m
                  Mode: absolute
                  Current value: 0.000000

In /var/log/Xorg.0.log I have this:

(II) config/hal: Adding input device UC-LOGIC Tablet WP5540U
(**) UC-LOGIC Tablet WP5540U: always reports core events
(**) UC-LOGIC Tablet WP5540U: Device: "/dev/input/event6"
(II) UC-LOGIC Tablet WP5540U: Found 10 mouse buttons
(II) UC-LOGIC Tablet WP5540U: Found scroll wheel(s)
(II) UC-LOGIC Tablet WP5540U: Found relative axes
(II) UC-LOGIC Tablet WP5540U: Found x and y relative axes
(II) UC-LOGIC Tablet WP5540U: Found absolute axes
(II) UC-LOGIC Tablet WP5540U: Found x and y absolute axes
(II) UC-LOGIC Tablet WP5540U: Found absolute tablet.
(II) UC-LOGIC Tablet WP5540U: Configuring as tablet
(**) UC-LOGIC Tablet WP5540U: YAxisMapping: buttons 4 and 5
(**) UC-LOGIC Tablet WP5540U: EmulateWheelButton: 4, EmulateWheelInertia: 10, 
EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "UC-LOGIC Tablet WP5540U" (type: 
TABLET)
(WW) UC-LOGIC Tablet WP5540U: touchpads, tablets and touchscreens ignore 
relative axes.
(**) UC-LOGIC Tablet WP5540U: (accel) keeping acceleration scheme 1
(**) UC-LOGIC Tablet WP5540U: (accel) acceleration profile 0
(II) UC-LOGIC Tablet WP5540U: initialized for absolute axes.

This is a Mandriva Cooker system with latest packages:

[root at shinestar:~]$ urpmq -i x11-driver-input-evdev
Name        : x11-driver-input-evdev
Version     : 2.3.2
Release     : 1mdv2010.1

[root at shinestar:~]$ urpmq -i x11-server
Name        : x11-server
Version     : 1.7.3
Release     : 1mdv2010.1

Is this a bug?
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Support open standards! Take a look at this nice presentation:
http://www.dwheeler.com/essays/open-standards-security.pdf



More information about the xorg mailing list