Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Need help with touchscreen

  1. #1
    Join Date
    Nov 2010
    Beans
    6

    Need help with touchscreen

    Hello!
    This is my first post on this forum. I'm running ubuntu 10.10 on my Packard Bell butterfly touch tablet pc and I'm having trouble with the touchscreen. I think ubuntu detects it as a touchpad unit. Actually every time I start Ubuntu I have to double-click the screen for the mouse button to work.
    I'm not new to ubuntu but I have no experience with update/install drivers.(just installed stuff like emacs and scitools for python)

    Is there someone whose had the same problem and has a solution?
    Please help me. There's also a gravity sensor that changes the screen direction when you flip the pc around( working in windows 7), is there any support for this also in ubuntu 10.10?


    regards,
    Toffefe

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

    Re: Need help with touchscreen

    Hi Toffefe,

    Welcome to Ubuntu forums!

    Let's find out if Maverick sees the touch screen and what it is calling it. Enter in a terminal:
    Code:
    xinput --list
    and post the output.

  3. #3
    Join Date
    Nov 2010
    Beans
    6

    Re: Need help with touchscreen

    Thanks!
    Here's the output:


    Unix:~$ xinput --list
    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ Cando 11.6 id=10 [slave pointer (2)]
    ⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
    ⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Video Bus id=7 [slave keyboard (3)]
    ↳ Power Button id=8 [slave keyboard (3)]
    ↳ Sleep Button id=9 [slave keyboard (3)]
    ↳ CNF9011 id=11 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]

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

    Re: Need help with touchscreen

    OK, you have a Cando 11.6 touchscreen. Now you have something to google with.

    It looks like you can get it working. I see this post: http://ubuntuforums.org/showpost.php...7&postcount=26 from this thread: http://ubuntuforums.org/showthread.php?t=1486671 The last few posts on the last page or so of the thread seem to indicate more drivers are coming.

    There are other threads too, like: http://ubuntuforums.org/showthread.php?t=1503442

  5. #5
    Join Date
    Jan 2008
    Beans
    35
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Need help with touchscreen

    Woo someone with my laptop!

    I don't know if you have managed to do anything yet, but I have some good news. It is possible to get the touchscreen to work as a touchscreen. I got as far as remapping the p button and screwed everything (don't worry, i did something stupid), so I'm just in the process of reinstalling ubuntu. I will be using ubuntu 10.10 64 bit desktop. (May install netbook on top after). I'll post back some full instructions in plain english when it is installed.
    Last edited by bobthebob1234; November 20th, 2010 at 09:31 PM.
    Bedroom full of Ubuntu Computers!

  6. #6
    Join Date
    Jan 2008
    Beans
    35
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Need help with touchscreen

    Getting the touch screen to act as a touch screen

    1. Update!
    2. open a terminal
    3. Install dpkg dev (Note sure if this is absolutely necessary, but if you don't the step 5 moans.)
      Code:
      sudo apt-get install dpkg-dev
    4. Install xorg-deb (This is neccessary)
      Code:
      sudo apt-get install xorg-dev
    5. Download the source for evdev
      Code:
      sudo apt-get source xserver-xorg-input-evdev
      This will create a bunch of folders in the current directory (you home directory if this is a new terminal)
    6. Navigate into the src directory
      Code:
      cd xserver-xorg-input-evdec-2.3.2/src
    7. Open evdev.c in your favourite editor
      Code:
      sudo gedit evdev.c
    8. Find the line
      Code:
      if (num_buttons || TestBit(BTN_TOOL_FINGER, pEvdev->key_bitmask)) {
      (Line 1942 for me)
      and remove num_buttons || so the line should now look like
      Code:
      if (TestBit(BTN_TOOL_FINGER, pEvdev->key_bitmask)) {
      Save and close
    9. Navigate back
      Code:
      cd ..
    10. Now the fun bit. Compiling the driver.The following worked for me
      Code:
      sudo .configure
      Code:
      sudo make install
      This will say a load of stuff, but we are only interested in the line
      Code:
      Libraries have been installed in:
      Mine was /usr/local/lib/xorg/modules/input
    11. Now we need to copy the evdev_drv.so to /usr/lib/xorg/modules/input
    12. But first I made a back up of the original evdev_drv.so in /usr/lib/xorg/modules/input
      Code:
      cd /usr/lib/xorg/modules/input
      sudo mv evdev_drv.so evdev_drv.old
    13. Now copy new evdev_drv.old
      Code:
      If you haven't already:
      cd /usr/lib/xorg/modules/input
      
      Then
      
      cp /usr/local/lib/xorg/modules/input/evdev_drv.so ./
    14. Now apparently you need to remove input-tslib and evtouch, however these weren't present on my system.
      Code:
      sudo apt-get purge input-tslib evtouch
    15. Finally reboot, and now you have a working touch screen! Yay

    (Sources as above)
    Last edited by bobthebob1234; November 20th, 2010 at 10:47 PM.
    Bedroom full of Ubuntu Computers!

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

    Re: Need help with touchscreen

    Hi bobthebob1234,

    Sweet! Nice job.

    If you use the '--prefix=/usr' flag on the configure line the evdev X driver evdev_drv.so will probably end up in the right place:
    Code:
    ./configure --prefix=/usr
    Saves you a few steps anyway.

  8. #8
    Join Date
    Nov 2010
    Beans
    6

    Re: Need help with touchscreen

    Thanks! I tryed the steps and made the mistake of making a backup evdev_drv.old and i rebooted without cp the .so file so the keyboard on my laptop (and usb-keyboards) didn't work. I then tryed recovery mode and " sudo mv evdev_drv.old evdev_drv.so " and now it works! thanks for all help with my problem


    bobthebob1234, do you have multitouch for screen and touchpad in ubuntu 10.10?
    Last edited by Toffefe; November 23rd, 2010 at 10:42 AM.

  9. #9
    Join Date
    Jan 2008
    Beans
    35
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Need help with touchscreen

    I haven't got multi touch to work yet, but my touchscreen acts as a touchscreen now instead of a touchpad. Yes I'm using 10.10
    Bedroom full of Ubuntu Computers!

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

    Re: Need help with touchscreen

    Hi guys,

    If you want multitouch in Maverick try ginn. It would be something like the instructions in "1) Maverick: ... a)" on the N-trig HOW TO. I don't know if your touch screens would require the patched source code to work right or whether the untouched (so to speak) source code would work for you. Also ginn's actively being worked on so there might be an update already.

Page 1 of 2 12 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
  •