You are not logged in.

#1 2009-08-15 09:55:11

victorhooi
Member
Registered: 2009-08-06
Posts: 109

Tablet PC Stylus on Fujitsu T4215

heya,

I have a Fujitsu T4215 tablet with Arch Linux installed smile. I've never really managed to get the tablet stylus working properly under Linux, and with the switch to Arch, I figured I'd try again.

Anyhow, I figured I'd try with the instructions here:

http://wiki.archlinux.org/index.php/Tablet_PC

I installed the linuxwacom package from AUR (but didn't override the kernel drivers, as that appears to be the advice from the most recent post on http://aur.archlinux.org/packages.php?ID=16912).

I then added the lines to my /etc/X11/xorg.conf file, as per the Tablet_PC wiki page. However, I'm wondering what effect this has on input hotplugging? (I don't think I'm quite clear on the whole hotplugging xorg.conf thing) Anyway, reboot, and X wouldn't start. The /var/log/Xorg.0.log file contains:

X.Org X Server 1.6.3
Release Date: 2009-7-31
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-ARCH x86_64 
Current Operating System: Linux zenator-arch 2.6.30-ARCH #1 SMP PREEMPT Fri Jul 31 07:30:28 CEST 2009 x86_64
Build Date: 14 August 2009  11:20:44AM
 
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 15 19:34:09 2009
(==) Using config file: "/etc/X11/xorg.conf"
Parse error on line 1 of section (null) in file /etc/X11/xorg.conf
    "InputDevice" is not a valid keyword in this section.
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
no screens found

Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor

Obviously this isn't the right way of doing things? I remember under Kubuntu, things were quite different, and I believe it involved mucking with .fdi files, hotplugging and all that (e.g. http://ubuntuforums.org/showthread.php?t=1136848&page=4)

What's the recommended way to get things working properly under Arch Linux currently?

Cheers,
Victor

PS: I also checked the wiki entry for the Lenovo X61T(http://wiki.archlinux.org/index.php/Len … nkPad_X61T), since that's a similar unit to what I have, hardware wise, and they also talk about adding lines to xorg.conf.

The page for the Toshiba Satelite R15 (http://wiki.archlinux.org/index.php/Tos … _tablet_pc) also seems to recommend the same.

And this post on the HP Tc4400 (http://www.valshak.com/drupal/node/54) is also the same.

PPS: Also, my xinput --list is:

[victorhooi@zenator-arch ~]$ xinput -list                                                             
"Virtual core pointer"  id=0    [XPointer]                                                            
        Num_buttons is 32                                                                             
        Num_axes is 2                                                                                 
        Mode is Relative                                                                              
        Motion_buffer is 256                                                                          
        Axis 0 :                                                                                      
                Min_value is -1                                                                       
                Max_value is -1                                                                       
                Resolution is 0                                                                       
        Axis 1 :                                                                                      
                Min_value is -1                                                                       
                Max_value is -1                                                                       
                Resolution is 0                                                                       
"Virtual core keyboard" id=1    [XKeyboard]                                                           
        Num_keys is 248                                                                               
        Min_keycode is 8                                                                              
        Max_keycode is 255                                                                            
"Macintosh mouse button emulation"      id=2    [XExtensionPointer]                                   
        Type is MOUSE                                                                                 
        Num_buttons is 5                                                                              
        Num_axes is 2                                                                                 
        Mode is Relative                                                                              
        Motion_buffer is 256                                                                          
        Axis 0 :                                                                                      
                Min_value is -1                                                                       
                Max_value is -1                                                                       
                Resolution is 1                                                                       
        Axis 1 :                                                                                      
                Min_value is -1                                                                       
                Max_value is -1                                                                       
                Resolution is 1                                                                       
"SynPS/2 Synaptics TouchPad"    id=3    [XExtensionPointer]                                           
        Type is TOUCHPAD                                                                              
        Num_buttons is 12                                                                             
        Num_axes is 2                                                                                 
        Mode is Relative
        Motion_buffer is 256
        Axis 0 :
                Min_value is 1472
                Max_value is 5472
                Resolution is 1
        Axis 1 :
                Min_value is 1408
                Max_value is 4448
                Resolution is 1
"AT Translated Set 2 keyboard"  id=4    [XExtensionKeyboard]
        Type is KEYBOARD
        Num_keys is 248
        Min_keycode is 8
        Max_keycode is 255
"Fujitsu Application Panel buttons"     id=5    [XExtensionKeyboard]
        Type is KEYBOARD
        Num_keys is 248
        Min_keycode is 8
        Max_keycode is 255
"Fujitsu FUJ02B1"       id=6    [XExtensionKeyboard]
        Type is KEYBOARD
        Num_keys is 248
        Min_keycode is 8
        Max_keycode is 255
"Video Bus"     id=7    [XExtensionKeyboard]
        Type is KEYBOARD
        Num_keys is 248
        Min_keycode is 8
        Max_keycode is 255
"Fujitsu FUJ02E3"       id=8    [XExtensionKeyboard]
        Type is KEYBOARD
        Num_keys is 248
        Min_keycode is 8
        Max_keycode is 255

I did notice this is slightly different to the output I got from Kubuntu, here:

http://ubuntuforums.org/showpost.php?p= … stcount=32

Offline

#2 2009-08-15 11:17:10

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Tablet PC Stylus on Fujitsu T4215

Hello victorhooi!

"(EE) Problem parsing the config file
(EE) Error parsing the config file"

-> Can you show me that configuration file to check it ?

Offline

#3 2009-08-15 11:52:06

victorhooi
Member
Registered: 2009-08-06
Posts: 109

Re: Tablet PC Stylus on Fujitsu T4215

heya,

djszapi: From memory, the configuration file was just

InputDevice    "stylus" "SendCoreEvents"
InputDevice    "eraser" "SendCoreEvents"
InputDevice    "cursor" "SendCoreEvents"

Section "InputDevice"
    Identifier     "stylus"
    Driver         "wacom"
    Option         "Device" "/dev/ttyS0"
    Option         "Type" "stylus"
    Option         "ForceDevice" "ISDV4"
    Option         "Button2" "3"
EndSection

Section "InputDevice"
    Identifier     "eraser"
    Driver         "wacom"
    Option         "Device" "/dev/ttyS0"
    Option         "Type" "eraser"
    Option         "ForceDevice" "ISDV4"
    Option         "Button2" "3"
EndSection

Section "InputDevice"
    Identifier     "cursor"
    Driver         "wacom"
    Option         "Device" "/dev/ttyS0"
    Option         "Type" "cursor"
    Option         "ForceDevice" "ISDV4"
EndSection

Cheers,
Victor

Offline

#4 2009-08-16 07:05:18

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Tablet PC Stylus on Fujitsu T4215

Try to delete/modify lines, and It will appear where the problem exists, because we don't know exactly which line isn't liked by the parser, but the configuration file according this isn't good, it's sure.

"From memory, the configuration file was just" -> Please check it once more time if the desired PC will be available.

Offline

#5 2009-08-16 12:50:54

victorhooi
Member
Registered: 2009-08-06
Posts: 109

Re: Tablet PC Stylus on Fujitsu T4215

heya,

I just checked yeah, that actually was my xorg.conf...lol. But I found out what I did that was silly, I didn't put the first three lines into a proper "ServerLayout" section.

Anyhow, I've put the lines into a full xorg.conf, and it does seem to work of a sort now:

Section "ServerLayout"                               
        Identifier     "X.org Configured"            
        Screen      0  "Screen0" 0 0                 
        InputDevice    "Mouse0" "CorePointer"        
        InputDevice    "Keyboard0" "CoreKeyboard"    
        InputDevice    "stylus" "SendCoreEvents"     
        InputDevice    "eraser" "SendCoreEvents"     
        InputDevice    "cursor" "SendCoreEvents"     
EndSection                                           

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/100dpi:unscaled"
        FontPath     "/usr/share/fonts/75dpi:unscaled" 
        FontPath     "/usr/share/fonts/TTF"            
        FontPath     "/usr/share/fonts/Type1"          
EndSection                                             

Section "Module"
        Load  "glx"
        Load  "record"
        Load  "dbe"   
        Load  "dri2"  
        Load  "extmod"
        Load  "dri"   
EndSection            

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"      
EndSection                     

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "synaptics"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"  
EndSection                                    

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model" 
EndSection                           

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"             
        ### [arg]: arg optional                                      
        #Option     "NoAccel"                   # [<bool>]           
        #Option     "SWcursor"                  # [<bool>]           
        #Option     "ColorKey"                  # <i>                
        #Option     "CacheLines"                # <i>                
        #Option     "Dac6Bit"                   # [<bool>]           
        #Option     "DRI"                       # [<bool>]           
        #Option     "NoDDC"                     # [<bool>]           
        #Option     "ShowCache"                 # [<bool>]           
        #Option     "XvMCSurfaces"              # <i>                
        #Option     "PageFlip"                  # [<bool>]           
        Identifier  "Card0"                                          
        Driver      "intel"                                          
        VendorName  "Intel Corporation"                              
        BoardName   "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        BusID       "PCI:0:2:0"                                                          
EndSection                                                                               

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"  
        Monitor    "Monitor0"
        SubSection "Display" 
                Viewport   0 0
                Depth     1   
        EndSubSection         
        SubSection "Display"  
                Viewport   0 0
                Depth     4   
        EndSubSection         
        SubSection "Display"  
                Viewport   0 0
                Depth     8   
        EndSubSection         
        SubSection "Display"  
                Viewport   0 0
                Depth     15  
        EndSubSection         
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "InputDevice"
    Identifier     "stylus"
    Driver         "wacom"
    Option         "Device" "/dev/ttyS0"
    Option         "Type" "stylus"
    Option         "ForceDevice" "ISDV4"
    Option         "Button2" "3"
EndSection

Section "InputDevice"
    Identifier     "eraser"
    Driver         "wacom"
    Option         "Device" "/dev/ttyS0"
    Option         "Type" "eraser"
    Option         "ForceDevice" "ISDV4"
    Option         "Button2" "3"
EndSection

Section "InputDevice"
    Identifier     "cursor"
    Driver         "wacom"
    Option         "Device" "/dev/ttyS0"
    Option         "Type" "cursor"
    Option         "ForceDevice" "ISDV4"
EndSection

The stylus end works, as do the two buttons at the front, however, the eraser end doesn't work (would normally still move the cursor around), and nor does the eraser button. I assume those are just small tweaks toget them working?

However, my question is also - is this the proper (or recommended) way of doing things? I thought it was possible somehow to use input hotplugging to get the whole thing to work? Isn't there some way of getting a tablet pc to work without having to fill out a xorg.conf, as we used to?

Cheers,
Victor

Offline

#6 2010-03-20 05:59:38

aliahlewis
Member
Registered: 2010-03-19
Posts: 3

Re: Tablet PC Stylus on Fujitsu T4215

Hi Victor..
Thank you very much for the code and also to sort out the problem found in using it. I am going to try it out today evening. And Pm you if I get any problem.

Last edited by aliahlewis (2010-03-20 06:01:24)

Offline

Board footer

Powered by FluxBB