Author Topic: slackware 13.1 flybook touch screen  (Read 21695 times)

zuliani71

  • Newbie
  • *
  • Posts: 14
slackware 13.1 flybook touch screen
« on: March 07, 2011, 00:09:48 AM »
Hi,
I've just installed Slackware 13.1 on my flybook V33i. Most of the hardware has been recognized and now I'd like to use the touchscreen. I've compiled and loaded the touchscreen module penmountlpc 1.1. I've also downloaded xf86-input-plpevtouch-0.5.0 and installed with the command:
./configure --prefix=/usr/X11R6 && make && make install (I've X11R6 and not X11R7).

After that, as slackware use HAL to config X11 and doesn't use a xorg.conf as default, I've started xorgsetup to create a good xorg.conf for my laptop. startx, with that new xorg.conf, gives me a stable and well configured machine (both for video, mouse and keyboard). Adding the Section "InputDevice" and the Section "ServerLayout" suggest at: http://www.plop.at/en/touchscreen.html
gives me a working desktop but mouse and keyboard don't work. Even the pen on the screen has no effects. On the web I've found another config to use inside xorg.conf:

Section "InputDevice"
        Identifier "touchscreen"
        Driver "plpevtch"
        Option "Device" "/dev/input/event7"
        Option "DeviceName" "touchscreen"
        #Option "MinX" "47"
        #Option "MinY" "49"
        #Option "MaxX" "982"
        #Option "MaxY" "981"
        Option "Calibrate"
        Option "Debug"
        Option "ReportingMode" "Raw"
        Option "Emulate3Buttons"
        Option "Emulate3Timeout" "50"
        Option "SendCoreEvents"
        Option "MoveLimit"  "2"
EndSection

and for the "ServerLayout" I've used:
     InputDevice        "touchscreen" "SendCoreEvents"


With that config I've the same results (mouse and keyboard don't work) but the pen is alive. It's not calibrated but when I touch the screen the cursor moves in a new position (no tracking anyway). Can you help me?


Thanks in advance

David

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #1 on: March 07, 2011, 08:52:02 AM »
hi,
don't use plpevtch. the default xorg evdev driver should work fine. calibrate with http://www.freedesktop.org/wiki/Software/xinput_calibrator (thanks to manuel u.)

regads
elmar

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #2 on: March 07, 2011, 15:40:18 PM »
hi,
don't use plpevtch. the default xorg evdev driver should work fine. calibrate with http://www.freedesktop.org/wiki/Software/xinput_calibrator (thanks to manuel u.)

regads
elmar

Hi Elmar, thanks for answering me.
I've downloaded and untar the xinput_calibrator, I run ./autogen.sh and make, it seems there are no problems with that.
When I run the xinput_calibrator I get "No calibratable devices found" What to do?
I've tried with and without xorg.conf (if I remove xorg.conf slackware uses HAL).
When I use the xorg.conf I change the line

Driver "plpevtch"

into

Driver "evdev"

Both tests gave me the same result.
Bye
David

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #3 on: March 09, 2011, 22:19:05 PM »
hi,
don't use plpevtch. the default xorg evdev driver should work fine. calibrate with http://www.freedesktop.org/wiki/Software/xinput_calibrator (thanks to manuel u.)

regads
elmar

Hi Elmar, thanks for answering me.
I've downloaded and untar the xinput_calibrator, I run ./autogen.sh and make, it seems there are no problems with that.
When I run the xinput_calibrator I get "No calibratable devices found" What to do?
I've tried with and without xorg.conf (if I remove xorg.conf slackware uses HAL).
When I use the xorg.conf I change the line

Driver "plpevtch"

into

Driver "evdev"

Both tests gave me the same result.
Bye
David

Hi Helmar do you have any suggestion for me.

Thanks

David

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #4 on: March 09, 2011, 22:22:34 PM »
currently not. i dont use hal

regards
emar

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #5 on: March 10, 2011, 21:49:31 PM »
Ok, what about the error:
"Error: No calibratable devices found." ??? Any ideas?

Max

  • Newbie
  • *
  • Posts: 4
Re: slackware 13.1 flybook touch screen
« Reply #6 on: March 10, 2011, 23:33:22 PM »
Ok, what about the error:
"Error: No calibratable devices found." ??? Any ideas?

First: even if not calibrated, the touchscreen should respond to the input in some way. Do you see any notification on the output of dmesg?

Are you sure the kernel module is loaded?

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #7 on: March 11, 2011, 16:01:04 PM »
Hi Helmar,

after a more careful check at dmesg I've found the right penmountlpc entry;
PenmountLPC TouchScreen as /devices/virtual/input/input8

I've changed the lines inside my xorg.conf like this:
        Option "Device" "/dev/input/event8"
and after that I was able to use the xinput_calibrator.


I've 2 more questions
a) which the best starting script/place to put the xinput command with configs coming from xinput_ccalibrator?

b) now I'm trying the pen and, after using a manual xinput run from the shell, the cursor goes under the tip after I touch the screen, Anyway I'm not able to slide the cursor together with the tip (just tapping the screen works). Can you suggest me something?




Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #8 on: March 11, 2011, 17:35:18 PM »
hi,

disable xorg start
unload penmounlpc
use "modprobe penmoutlpc debug=1"
tab the four screen corners
run "dmesg > dmesg.txt"
and post the dmesg.txt

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #9 on: March 11, 2011, 22:06:48 PM »
Hi Elmar,

how to disable xorg?

David

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #10 on: March 11, 2011, 22:09:14 PM »
i am no slackware user but try "init 3"

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #11 on: March 11, 2011, 23:28:12 PM »
Ok Elmar so I need to work in a so called "TEXT MODE", I think it's the same to press CTRL-ALT-BACK SPACE, Is it right?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #12 on: March 11, 2011, 23:36:59 PM »
yes

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #13 on: March 12, 2011, 10:03:20 AM »
Ok Elmar, this is my sequence
a) disabled xorg (I worked in terminal or text mode, no graphic)
b) from the console I've unloaded penmounlpc: rmmod penmountlpc
c) Then I've reloaded penmount as you told me:  modprobe penmoutlpc debug=1
    unfortunately that command doesn't work, it gave me: FATAL: Error inserting penmountlpc (/lib/modules/2.6.33.4-smp/extra/penmountlpc.ko): Unknown symbol in module, or unknown parameter (see dmesg)
d) I've tried the commnad modprobe penmountlpc `debug=1` and I've had no more error messages (so I think it has been loaded corrrectly)
e) I've tapped the 4 corners of the display with the pen (the display reacts to the tapping)
f) I run "dmesg > dmesg.txt" and the dmesg output is here attached

I've two questions
1) why the "modprobe penmoutlpc debug=1" doesn't work? I've used a differenet one
Is it correct the comand "modprobe penmountlpc `debug=1`"
« Last Edit: March 12, 2011, 11:23:03 AM by Elmar »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #14 on: March 12, 2011, 11:23:47 AM »
c) Then I've reloaded penmount as you told me:  modprobe penmoutlpc debug=1
    unfortunately that command doesn't work, it gave me: FATAL: Error inserting penmountlpc (/lib/modules/2.6.33.4-smp/extra/penmountlpc.ko): Unknown symbol in module, or unknown parameter (see dmesg)

i forgot the "n" in penmountlpc

Quote
Is it correct the comand "modprobe penmountlpc `debug=1`"

yes, its correct

which version of penmountlpc do you use?
« Last Edit: March 12, 2011, 11:26:06 AM by Elmar »

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #15 on: March 12, 2011, 11:54:27 AM »
Elmar

I know you forgot the n in your command so I've corrected it but anyway if I use:
modprobe penmoutlpc debug=1 it doesn't work.
At the end the right command is: modprobe penmountlpc `debug=1`

did you take a look at my dmesg.txt?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #16 on: March 12, 2011, 12:41:05 PM »
currently i cannot test the penmountlpc driver on my flybook, but the ' should be not required for the parameter.

i looked at the dmesg.txt but i saw no debug info. which penmountlpc version do you use?

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #17 on: March 12, 2011, 13:23:50 PM »
I use penmountlpc ver 1.1

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #18 on: March 12, 2011, 14:00:22 PM »
that version does not have the debug parameter

use the penmountlpc driver from http://download.plop.at/files/flybuntu/flybuntu-development-20080922.tgz

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #19 on: March 12, 2011, 14:37:17 PM »
Ok, downlaode and installed, now the dmesg can track the debugging. Attached yoy can find the new dmesg.txt

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #20 on: March 15, 2011, 09:40:00 AM »
Ok, downlaode and installed, now the dmesg can track the debugging. Attached yoy can find the new dmesg.txt

Hi Elmar did you take a look at my log?

Bye

David

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #21 on: March 15, 2011, 10:20:51 AM »
yes

the driver reads the data from the touchscreen, but there is a problem with the event handler. currently i cannot say more. i have to do some tests, but i have no time now.

regards
elmar

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #22 on: March 16, 2011, 23:43:59 PM »
Elmar

may be it's the evdev that isn't working properly. I've used plpevtch as I told you but the keyboard and the mouse don't work with that.

David

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: slackware 13.1 flybook touch screen
« Reply #23 on: March 16, 2011, 23:52:42 PM »
hmm, yes, maybe its a problem with evdev. maybe my plpevtch is the solution, but  i had no time to fix the conflict with the keyboard and mouse.

i have to install the environment you use to find a solution, but bug searching is time expensive

zuliani71

  • Newbie
  • *
  • Posts: 14
Re: slackware 13.1 flybook touch screen
« Reply #24 on: March 17, 2011, 14:23:39 PM »
Ok, may be we can work together. I've the system up and running and you could direct me. It'll be a slow process but it's better than nothing.