Panasonic ToughBook CF-28 TouchScreen Under Linux - Solved and Working. Touch Screen
I just wanted to start a new thread that was better suited as being searchable and pointing to the thread that has the answer.
http://www.linuxquestions.org/questi...=485053&page=3
I was finally able to get the touchscreen working. It really needs some work to make it 100%, but it works "More Than Good Enough"(TM) for the needs I had hoped to address. I just hope this will motivate someone that is better suited for the task of making it right. "AND", if someone was able to get it to install as a RPM on a current version of Suse with the 2.6 kernel, I would personally commission a lifesize statue of this person and have it erected on the lawn of our county courthouse so that future generations would always be reminded of this great deed.
James
Here is a quote of my original post:
***********************************
Here is some of the details until I can put more together.
1. Distro: Slackware 11. Just swap and /. All defaults, FULL package install. About as plain and generic as it gets. No updates of any kind were ran, just straight off of the CD's. The 2.4 kernel is the KEY to this. I picked Slack 11 because it is a current supported version that still uses the 2.4 kernel. The problem with the 2.6 kernel is that support for raw output was removed from the kernel. Unless you put it back in with a patch of some kind, your not going to get far because you can not initialize the touchscreen. We all know how useless computer hardware that fails to initialize is......
2. Driver is lbtouch-0.7.3.tar.gz that I got from this address:
http://stz-softwaretechnik.com/~ke/t...h-0.7.3.tar.gz
Copy "lbtouch_drv.o" to "/usr/X11R6/lib/modules/input".
DO NOT USE lbtouch-0.7.4.tar.gz. You will be sad because it will cause your cursor to jump around like it is on crack. It will allow you to get raw output from "od /dev/psaux" so you see that your screen is putting out, but if you use lbtouch-0.7.3, you will be much happier.
3. This is my xorg.conf:
Section "ServerLayout"
Identifier "X.org Configured"
Screen "Screen 1"
InputDevice "touchscreen" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
load "GLcore"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
Load "freetype"
Load "v4l"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us_intl"
Option "RightAlt" "ModeShift"
EndSection
Section "InputDevice"
Identifier "touchscreen"
Driver "lbtouch"
Option "Device" "/dev/psaux"
Option "DeviceName" "touchscreen"
Option "MinX" "134"
Option "MinY" "89"
Option "MaxX" "944"
Option "MaxY" "1022"
Option "ReportingMode" "Raw"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
Option "SendCoreEvents"
Option "x0" "4"
Option "y0" "-78"
Option "x1" "3"
Option "y1" "-77"
Option "x2" "2"
Option "y2" "-70"
Option "x3" "-2"
Option "y3" "-38"
Option "x4" "2"
Option "y4" "-35"
Option "x5" "2"
Option "y5" "-35"
Option "x6" "1"
Option "y6" "1"
Option "x7" "0"
Option "y7" "1"
Option "x8" "2"
Option "y8" "2"
# Option "Calibrate" "1"
EndSection
Section "Monitor"
Identifier "My Monitor"
HorizSync 31.5 - 50.0
VertRefresh 40-90
EndSection
Section "Device"
Identifier "VESA Framebuffer"
Driver "vesa"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "VESA Framebuffer"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "800x600"
EndSubsection
Subsection "Display"
Depth 16
Modes "800x600"
EndSubsection
Subsection "Display"
Depth 24
Modes "800x600"
EndSubsection
Subsection "Display"
Depth 32
Modes "800x600"
EndSubsection
EndSection
Section "DRI"
Mode 0666
EndSection
4. Your xorg.conf has to have the calibration points in it or your so far off that you won't be able to use the top half of the screen. Start with mine to get you going. Notice that the calibrate line is remarked out. Leave it that way unless you are actually at init 3 and running the calibration program. Read the readme's that come with lbtouch. You'll be glad you did. One thing that I found was that the calibrate program didn't quite work as advertised all the way through, but I was able to figure out the dump file and use the correct numbers and make up the ones that it totally screwed up. They are obviously wrong, plus when you get in certain sections of the screen you will suddenly be off quite a bit.
5. Please remember that my CF-28 is the 12 inch TRANSFLECTIVE touchscreen at 800x600. I use it outdoors on wireless broadband installations so I have to be able to read it outside. If your lcd runs at 1024x768, it is the 13.3 inch TRANSMISSIVE touchscreen. You will need to adjust your xorg.conf accordingly for the correct resolution.
6. You will notice in the xorg.conf that there is no reference to the touchpad. That is because the lbtouch driver does both, and if you load a mouse they conflict. You will love that your touchscreen now works, but you will probably not be happy with how the touchpad works. It will work just like a little touchscreen. You can not sweep from one side to the other, and do it again to finish getting your cursor where you want. When you put your finger on the touchpad, it will always move the cursor to that spot on the screen, always, no matter where it was. Basically you just about can not get the cursor to the outer edges of the screen with the touchpad. I made a xorg.conf that has no touchscreen and just switch real quick if I have to use the touchpad.
7. When you are bitching about how the touchpad doesn't work right, just keep reminding yourself how long you worked on getting the touchscreen working, and how nothing else would matter once it worked, and how much you hate those stupid touchpads anyway. That's what I've been doing. And since I'm an IBM tech for ThinkPad's, I really do HATE them. No TrackPoint is the only thing that keeps Toughbooks from being perfect. Rant done.
8. Yes, the touch screen on the CF-28 and 29's are the same as the Toshiba B-series Lifebooks.
9. Someone needs to work on the driver so you can move the cursor incrementally across the screen. The calibration need some work. I'm sure that it probably works like it's suppose to on a Toshiba,but it would be nice to have full funtionality on the Toughbooks.
9. I would also like to see a "Tap and Hold" right click context menu, just like my iPaq. If I could "right click" I would cover the touchpad up with bondo and life would be good.
10. I hope this helps you guys out and gives some of you clever guys some clues that allows you to code some improvements to help us all out.
11. Let me know if you need any logs or outputs, or any further clarifications on anything.
James