Page 1 of 7 123 ... LastLast
Results 1 to 10 of 65

Thread: Need help with fpit (Ubuntu 11.4)

  1. #1
    Join Date
    Apr 2011
    Beans
    67
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

    Need help with fpit (Ubuntu 11.4)

    Hello good people of earth. I've been playing around with a Compaq TC1000 tablet that I recently got for free. I have almost everything working except one. The pen.
    Whenever I touch the pen to the screen X just crashes spectacularly.

    I installed fpit and followed the instructions here http://ubuntuforums.org/showthread.php?t=1325644 to make an xorg.conf which looks like this
    Code:
    Section "InputDevice" 
            Identifier "pen" 
            Driver "fpit" 
            Option "AlwaysCore" "on"
            Option "Device" "/dev/ttyS0" 
            Option "BaudRate" "19200" 
            Option "MaximumXPosition" "8600" # "6250"  
            Option "MaximumYPosition" "6485" # "4950"   
            Option "MinimumXPosition" "154"  
            Option "MinimumYPosition" "110" 
            Option "InvertY" 
            Option "TrackRandR"  
            Option "SendCoreEvents" 
            Option "ReportingMode" "Scaled" 
    EndSection  
    
    Section "Screen" 
        Identifier    "Default Screen" 
        DefaultDepth    24 
        Option    "AddARGBGLXVisuals"   "True"
    EndSection 
    
    Section "Module"  
        Load    "glx"
    EndSection 
    
    Section "Device" 
        Identifier    "Default Device" 
        Driver  "nv" 
        Option    "NoLogo"    "True" 
        Option  "ConnectedMonitor"    "DFP" 
    EndSection  
    
    Section "InputDevice"  
       Identifier     "Generic Keyboard"  
       Driver         "kbd"  
       Option         "CoreKeyboard" 
       Option         "XkbRules" "xorg"  
       Option         "XkbModel" "pc105" 
       Option         "XkbLayout" "gb"  
       Option         "XkbOptions" "lv3:ralt_switch" 
    EndSection  
    
    Section "InputDevice"
         Identifier     "Configured Mouse"
         Driver         "mouse"
         Option         "CorePointer"
         Option         "Device" "/dev/input/mice"
         Option         "Protocol" "ImPS/2"
         Option         "ZAxisMapping" "4 5"
         Option         "Emulate3Buttons" "true" 
    EndSection  
    
    Section "ServerLayout"
         Identifier     "Default Layout"
         Screen         "Default Screen"
         InputDevice    "Generic Keyboard"
         InputDevice    "Configured Mouse"
         InputDevice    "pen" 
    EndSection  
    
    Section "Extensions"
         Option         "Composite" "Enable" 
    EndSection
    I can't find any error messages and I have no idea how to debug this thing. Can anyone help me out?

  2. #2
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help with fpit (Ubuntu 11.4)

    Hi linuxlover42,

    Let's do a quick check and see if the system sees the tablet. Enter in a terminal:
    Code:
    xinput list
    and see if the tablet is present in the output.

    If so your Xorg.0.log in /var/log should show the tablet being placed on the fpit driver. We may need to look at it. Also since X is crashing the Xorg.0.log and/or Xorg.0.old may show the crash and the error causing at it. That should be at or near the bottom of the log.

    Also the xorg.conf should be updated a little. As always when messing with an X configuration file make a backup of your current working configuration file, in this case the xorg.conf. And be prepared to restore the backup from the command line of a Recovery boot if the changes break X.

    You should not need the keyboard and mouse entries so let's remove them. Also the line:
    Code:
            Option "SendCoreEvents"
    should read:
    Code:
            Option "SendCoreEvents" "on"
    But that doesn't matter since it has been deprecated since X server 1.7 and is no longer needed anyway. The same is probably true of:
    Code:
            Option "AlwaysCore" "on"
    but let's leave that one in for now. Neither probably hurts anything anyway. So let's try:
    Code:
    Section "InputDevice" 
            Identifier "pen" 
            Driver "fpit" 
            Option "AlwaysCore" "on"
            Option "Device" "/dev/ttyS0" 
            Option "BaudRate" "19200" 
            Option "MaximumXPosition" "8600" # "6250"  
            Option "MaximumYPosition" "6485" # "4950"   
            Option "MinimumXPosition" "154"  
            Option "MinimumYPosition" "110" 
            Option "InvertY" 
            Option "TrackRandR"  
            Option "ReportingMode" "Scaled" 
    EndSection  
    
    Section "Screen" 
        Identifier    "Default Screen" 
        DefaultDepth    24 
        Option    "AddARGBGLXVisuals"   "True"
    EndSection 
    
    Section "Module"  
        Load    "glx"
    EndSection 
    
    Section "Device" 
        Identifier    "Default Device" 
        Driver  "nv" 
        Option    "NoLogo"    "True" 
        Option  "ConnectedMonitor"    "DFP" 
    EndSection  
    
    Section "ServerLayout"
         Identifier     "Default Layout"
         Screen         "Default Screen"
         InputDevice    "pen" 
    EndSection  
    
    Section "Extensions"
         Option         "Composite" "Enable" 
    EndSection
    and restart.

  3. #3
    Join Date
    Apr 2011
    Beans
    67
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

    Re: Need help with fpit (Ubuntu 11.4)

    Ok, xinput list is giving me:

    Code:
    ⎡ Virtual core pointer                        id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
    ⎜   ↳ Jing-Mold USB K/B+Mouse                     id=11    [slave  pointer  (2)]
    ⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
        ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
        ↳ Power Button                                id=7    [slave  keyboard (3)]
        ↳ Video Bus                                   id=8    [slave  keyboard (3)]
        ↳ Power Button                                id=9    [slave  keyboard (3)]
        ↳ Jing-Mold USB K/B+Mouse                     id=10    [slave  keyboard (3)]
        ↳ AT Translated Set 2 keyboard                id=12    [slave  keyboard (3)]
    ∼ TOUCHSCREEN                                 id=6    [floating slave]
    I found no error messages in Xorg.0.log. I did however find:

    Code:
    [   206.800] (II) Using input driver 'fpit' for 'pen'
    [   206.801] (II) Loading /usr/lib/xorg/modules/input/fpit_drv.so
    [   206.803] (**) Option "AlwaysCore" "on"
    [   206.803] (**) pen: always reports core events
    [   206.805] (**) FPIT device name: TOUCHSCREEN
    [   206.805] (**) Fpit associated screen: 0
    [   206.805] (**) Option "MaximumXPosition" "8600"
    [   206.805] (**) FPIT maximum x position: 8600
    [   206.806] (**) Option "MinimumXPosition" "154"
    [   206.806] (**) FPIT minimum x position: 154
    [   206.806] (**) Option "MaximumYPosition" "6485"
    [   206.806] (**) FPIT maximum y position: 6485
    [   206.806] (**) Option "MinimumYPosition" "110"
    [   206.806] (**) FPIT minimum y position: 110
    [   206.806] (**) Option "InvertY"
    [   206.806] (**) Option "TrackRandR"
    [   206.807] (**) FPIT invert X axis: No
    [   206.807] (**) FPIT invert Y axis: Yes
    [   206.807] (**) FPIT swap X and Y axis: No
    [   206.807] (**) FPIT Passive button mode: No
    [   206.807] (**) FPIT RandR tracking: Yes
    [   206.808] (II) XINPUT: Adding extended input device "TOUCHSCREEN" (type: Fujitsu Stylistic)
    [   206.810] (**) TOUCHSCREEN: (accel) keeping acceleration scheme 1
    [   206.810] (**) TOUCHSCREEN: (accel) acceleration profile 0
    [   206.811] (**) TOUCHSCREEN: (accel) acceleration factor: 2.000
    [   206.811] (**) TOUCHSCREEN: (accel) acceleration threshold: 4
    [   206.811] (**) Option "Device" "/dev/ttyS0"
    [   206.817] (**) Option "BaudRate" "19200"
    [   206.817] (**) Option "StopBits" "0"
    [   206.817] (**) Option "DataBits" "8"
    [   206.817] (**) Option "Parity" "None"
    [   206.818] (**) Option "Vmin" "10"
    [   206.818] (**) Option "Vtime" "1"
    [   206.821] (**) Option "FlowControl" "None"
    [   206.930] (II) config/udev: Adding input device Power Button (/dev/input/event1)
    Does this help identify the problem? I'm relatively new to Ubuntu and while I'm pretty good with code I have no idea what looks normal or not. Thank you very much for your generous assistance.

  4. #4
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help with fpit (Ubuntu 11.4)

    Hi linuxlover42,

    The tablet isn't showing up in xinput list so presumably something is wrong. You found the relevant section in Xorg.0.log and it says the fpit driver is working and the tablet was added:
    Code:
    [   206.808] (II) XINPUT: Adding extended input device "TOUCHSCREEN" (type: Fujitsu Stylistic)
    Somewhere below that the "TOUCHSCREEN" may have been rejected. Also it seems to recognize the Identifier "pen":
    Code:
    [   206.800] (II) Using input driver 'fpit' for 'pen'
    So it is looking like we have the fpit stuff in xorg.conf close to correct. I am hoping this means someone fixed the fpit driver in the repositories, because I think it has been broken since Lucid or so.

    If you right click on the Xorg.0.log and choose Create Archive it will compress it and you can attach it with Manage Attachments below.

    Also how new is the battery in the stylus? We'll want to be sure that's working so we can pick it up when we get the driver working.


    Meanwhile we can work on further refining the xorg.conf. I noticed you are using the nouveau driver. Was there an xorg.conf present or did you create one? If there was one do you have the video sections that were there?

  5. #5
    Join Date
    Apr 2011
    Beans
    67
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

    Re: Need help with fpit (Ubuntu 11.4)

    When I started this thread I was not in fact using the nouveau drivers but the old nv drivers. I have now installed the nouveau drivers and changed the driver for the device to "nouveau" from "nv" in accordance to the instructions of another veteran of ubuntu.

    There was no Xorg.conf file before and I had to make this one myself.

    The battery in the pen is a few weeks old and the pen works perfectly in the BIOS (the driver for the pen seems to be built into the BIOS).

    I have attached the Xorg.0.log file.

    As an interesting note that might help, I wrote/adapted a script for screen rotation a while ago which uses the xrandr -o command. Now whenever I try to use it (even just typing xrandr -o into the terminal) I get a black screen. I theorize that this may be due to the fact that the pen is set to track screen rotation and it is not working properly.

    Thanks
    Attached Files Attached Files

  6. #6
    Join Date
    Apr 2011
    Beans
    67
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

    Re: Need help with fpit (Ubuntu 11.4)

    could the nvidia card be the source of the problem? Nvidia has always had problems with linux.
    Last edited by linuxlover42; May 12th, 2011 at 03:42 AM.

  7. #7
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help with fpit (Ubuntu 11.4)

    Well you are correct and the Xorg.0.log looks OK:
    Code:
    [    66.664] (II) LoadModule: "fpit"
    [    66.689] (II) Loading /usr/lib/xorg/modules/input/fpit_drv.so
    [    66.706] (II) Module fpit: vendor="X.Org Foundation"
    [    66.707] 	compiled for 1.9.99.902, module version = 1.3.99
    [    66.707] 	Module class: X.Org XInput Driver
    [    66.707] 	ABI class: X.Org XInput driver, version 12.3
    ......
    [    67.986] (II) Using input driver 'fpit' for 'pen'
    [    67.997] (II) Loading /usr/lib/xorg/modules/input/fpit_drv.so
    [    67.999] (**) Option "AlwaysCore" "on"
    [    67.999] (**) pen: always reports core events
    [    68.000] (**) FPIT device name: TOUCHSCREEN
    [    68.001] (**) Fpit associated screen: 0
    [    68.001] (**) Option "MaximumXPosition" "8600"
    [    68.001] (**) FPIT maximum x position: 8600
    [    68.001] (**) Option "MinimumXPosition" "154"
    [    68.002] (**) FPIT minimum x position: 154
    [    68.002] (**) Option "MaximumYPosition" "6485"
    [    68.002] (**) FPIT maximum y position: 6485
    [    68.002] (**) Option "MinimumYPosition" "110"
    [    68.002] (**) FPIT minimum y position: 110
    [    68.002] (**) Option "InvertY"
    [    68.002] (**) Option "TrackRandR"
    [    68.003] (**) FPIT invert X axis: No
    [    68.003] (**) FPIT invert Y axis: Yes
    [    68.003] (**) FPIT swap X and Y axis: No
    [    68.003] (**) FPIT Passive button mode: No
    [    68.003] (**) FPIT RandR tracking: Yes
    [    68.005] (II) XINPUT: Adding extended input device "TOUCHSCREEN" (type: Fujitsu Stylistic)
    [    68.008] (**) TOUCHSCREEN: (accel) keeping acceleration scheme 1
    [    68.009] (**) TOUCHSCREEN: (accel) acceleration profile 0
    [    68.010] (**) TOUCHSCREEN: (accel) acceleration factor: 2.000
    [    68.010] (**) TOUCHSCREEN: (accel) acceleration threshold: 4
    [    68.010] (**) Option "Device" "/dev/ttyS0"
    [    68.012] (**) Option "BaudRate" "19200"
    [    68.013] (**) Option "StopBits" "0"
    [    68.013] (**) Option "DataBits" "8"
    [    68.013] (**) Option "Parity" "None"
    [    68.014] (**) Option "Vmin" "10"
    [    68.014] (**) Option "Vtime" "1"
    [    68.016] (**) Option "FlowControl" "None"
    I don't see the pen getting unloaded. So is TOUCHSCREEN, pen, or fpit showing up in xinput list?

    could the nvidia card be the source of the problem? Nvidia has always had problems with linux.
    I don't think so, but I'm not totally sure. I had problems with Nvidia in Natty too. To use nouveau I had to add the 'nomodeset' option to the kernel line. So I switched to the proprietary Nvidia driver.
    Now whenever I try to use it (even just typing xrandr -o into the terminal) I get a black screen. I theorize that this may be due to the fact that the pen is set to track screen rotation and it is not working properly.
    That probably means the driver doesn't support rotation or needs to be configured for it. Was that with nv or nouveau?

    With nouveau I'd think Xorg would automatically configure it for you and you might be able to remove all of the video sections from the xorg.conf. Again trying to figure out how to simplify the xorg.conf and remove extraneous variables. In Synaptics Package Manager nouveau was installed by default and I didn't have an xorg.conf until I went to the proprietary driver.

  8. #8
    Join Date
    Apr 2011
    Beans
    67
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

    Re: Need help with fpit (Ubuntu 11.4)

    TOUCHSCREEN is showing up in xinput list as a floating slave.

    That probably means the driver doesn't support rotation or needs to be configured for it. Was that with nv or nouveau?
    With the nv driver the script simply did not work as nv is incompatible with xrandr. Noveau worked fine before I made an xorg.conf file.

    With nouveau I'd think Xorg would automatically configure it for you and you might be able to remove all of the video sections from the xorg.conf. Again trying to figure out how to simplify the xorg.conf and remove extraneous variables
    So should I try and remove all the video sections in the xorg.conf and see where that gets me?

    Edit: I tried it and it works fine, the pen still makes it crash though
    Last edited by linuxlover42; May 12th, 2011 at 11:25 PM.

  9. #9
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help with fpit (Ubuntu 11.4)

    Please post the output of xinput list when TOUCHSCREEN shows. We need that.

    Good work on the xorg.conf. Can you post your current working one?

  10. #10
    Join Date
    Apr 2011
    Beans
    67
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

    Re: Need help with fpit (Ubuntu 11.4)

    Certainly, the xorg.conf is as follows
    Code:
    Section "InputDevice" 
            Identifier "pen" 
            Driver "fpit" 
            #Option "AlwaysCore" "on"
            Option "Device" "/dev/ttyS0" 
            Option "BaudRate" "19200" 
            Option "MaximumXPosition" "8600" # "6250"  
            Option "MaximumYPosition" "6485" # "4950"   
            Option "MinimumXPosition" "154"  
            Option "MinimumYPosition" "110" 
            Option "InvertY" 
            Option "TrackRandR"  
            Option "ReportingMode" "Scaled" 
    EndSection  
    
    Section "Module"  
        Load    "glx"
    EndSection 
    
    Section "ServerLayout"
         Identifier     "Default Layout"
         InputDevice    "pen" 
    EndSection  
    
    Section "Extensions"
         Option         "Composite" "Enable" 
    EndSection
    And the TOUCHSCREEN section of xinput list is

    Code:
    ∼ TOUCHSCREEN                                 id=6    [floating slave]

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •