Plop Forum

General Category => Outdated: plpevtch - Xorg Touchscreen Driver, Flybook => Topic started by: zuliani71 on March 07, 2011, 00:09:48 AM

Title: slackware 13.1 flybook touch screen
Post by: zuliani71 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
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar 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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 on March 07, 2011, 15:40:18 PM
Quote from: Elmar 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

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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 on March 09, 2011, 22:19:05 PM
Quote from: zuliani71 on March 07, 2011, 15:40:18 PM
Quote from: Elmar 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

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
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar on March 09, 2011, 22:22:34 PM
currently not. i dont use hal

regards
emar
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 on March 10, 2011, 21:49:31 PM
Ok, what about the error:
"Error: No calibratable devices found." ??? Any ideas?
Title: Re: slackware 13.1 flybook touch screen
Post by: Max on March 10, 2011, 23:33:22 PM
Quote from: zuliani71 on March 10, 2011, 21:49:31 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?
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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?



Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar 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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 on March 11, 2011, 22:06:48 PM
Hi Elmar,

how to disable xorg?

David
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar on March 11, 2011, 22:09:14 PM
i am no slackware user but try "init 3"
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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?
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar on March 11, 2011, 23:36:59 PM
yes
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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`"
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar on March 12, 2011, 11:23:47 AM
Quote from: zuliani71 on March 12, 2011, 10:03:20 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?
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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?
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar 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?
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 on March 12, 2011, 13:23:50 PM
I use penmountlpc ver 1.1
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar 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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 on March 15, 2011, 09:40:00 AM
Quote from: zuliani71 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

Hi Elmar did you take a look at my log?

Bye

David
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar 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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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
Title: Re: slackware 13.1 flybook touch screen
Post by: Elmar 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
Title: Re: slackware 13.1 flybook touch screen
Post by: zuliani71 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.