LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-09-2006, 07:35 AM   #1
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Rep: Reputation: 16
Question Touchscreen - Panasonic Toughbook CF-29


The touchscreen worked under Windows. After installing Debian Etch, I have been unable to locate the touchscreen device. After trying various things, I modprobed all the modules in .../input/touchscreen. The mk712 failed to load, saying;

Code:
# modprobe mk712
FATAL: Error inserting mk712 (/lib/modules/2.6.16-2-686/kernel/drivers/input/touchscreen/mk712.ko): No such device
So I have modules elo, gunze, mtouch and ads7846 loaded. Then I looked for device output with od and catted /proc/bus/*. I can find no output from it.

cat /proc/bus/input/devices has:

I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio4/input0
S: Sysfs=/class/input/input2
H: Handlers=event2 mouse0 ts0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

while cat /proc/bus/input/handlers says:

N: Number=0 Name=kbd
N: Number=1 Name=evdev Minor=64
N: Number=2 Name=mousedev Minor=32
N: Number=3 Name=tsdev Minor=128

Note the "ts" elements. But od </dev/input/ts0 produces output from the touchPAD, not the touchSCREEN.
The only serial port that exists is /dev/ttyS0, which goes to a DB9 external connector. od <ttyS{anything but zero} produces an I/O error indicating that it doesn't exist.

According to the (scarce) information available, older Toughbooks in this series used serial touchscreens. There is some indication that the CF-29 uses the same or similar touchscreen as the Fujitsu Lifebook B-series, which supposedly uses a PS-2 port. Panasonic lists no touchscreen specs. There is no indication of a USB touchscreen, which would, of course, be easy to find. I tried the setup recommended for the Lifebooks, but it is obviously hopeless without knowing where to find the device.

To summarize, the device is not found as:
/dev/ttyS*
/dev/input/*
/dev/bus/usb/*

Xi Graphics is selling a driver for $149US, so the touchscreen can be made to work with Linux. The question is: How?
 
Old 09-20-2006, 10:25 AM   #2
Nobles
LQ Newbie
 
Registered: Sep 2006
Location: Canada
Posts: 19

Rep: Reputation: 0
CF29 TouchScreen

I have been looking for an answer to this for almost a year as well. The only other information I can add to what you have is that a pre-installed Distro called Emperor Linux also has support for the touchscreen on the CF-29 but they only sell it with the laptops they sell or if you send yours in to be installed by their staff. They use a custom kernel which you can get some information on (as well as some source code) in the downloads section of their site:

downloads.emperorlinux.com/support/kernel/

Maybe if you are able to decipher what they have done with their kernel you can figure this out - if you do please post back.
 
Old 09-20-2006, 08:15 PM   #3
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Nobles
Maybe if you are able to decipher what they have done with their kernel you can figure this out
I looked at everything available from their site, and downloaded a kernel. There are no touchscreen modules with it that aren't available elsewhere. In fact there are fewer than come with Debian Etch. My guess is that they are using the XI Graphics proprietary driver.

Here is another angle that needs to be investigated. I was trying to hook up a serial GPS to /dev/ttyS0. I checked for output from the GPS using
Code:
od /dev/ttyS0
Nothing came through until I started gpsd, even though there was output from the GPS on the line being simultaneously monitored on an oscilloscope. This proves that it is possible to have a live device talking on a serial interface that od will fail to show!

If this same thing can happen on other interfaces, it might mean that you couldn't find the touchscreen unless a working driver is installed. It might also mean that we are doing it wrong.
 
Old 09-20-2006, 08:47 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
If the serial port is not configured correctly i.e. baud rate, parity etc. then you probably will not see any data output. I would assume that gpsd configures the serial port. Instead of gpsd use setserial to configure the port and then try the od command. BTW the output of the receiver is probably NMEA183 protocol which is plain ASCII text.

I found nothing on the CF-29 touchscreen but this might help. Check the BIOS to see if the touchscreen is enabled and maybe it has some settings that might give us a clue on the interface. If it really is a serial port you could always create one for ttyS3 and see what happens.
http://users.libero.it/hpstr/cfm34-linux.html
 
Old 09-21-2006, 07:28 AM   #5
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
settings?

Quote:
Originally Posted by michaelk
If the serial port is not configured correctly i.e. baud rate, parity etc. then you probably will not see any data output. I would assume that gpsd configures the serial port.
Gpsd does indeed configure the port. The implication of this for finding the touchscreen on an unknown interface using unknown protocols is not good. If we need to know the exact communications settings for the device before we can even locate it, where do we start?

There is an enabled/disabled switch in the BIOS for the touchscreen, but no other settings that I'm aware of. Also, since the touchscreen worked under Windows, and I haven't changed any BIOS settings, there shouldn't be any BIOS-level stuff blocking it now.
 
Old 09-21-2006, 07:37 AM   #6
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
Kick me for not trying the obvious first. Panasonic tech support says that the touchscreen is on a PS2 interface. It's a start.
 
Old 09-21-2006, 03:00 PM   #7
Nobles
LQ Newbie
 
Registered: Sep 2006
Location: Canada
Posts: 19

Rep: Reputation: 0
Touchscreen - Panasonic Toughbook CF-29

It sounds like you are on the right track - the Toughbook uses a combination touchpad/touchscreen device and others have managed to get a similiar type multiplexed PS2 type input device (or psaux device as they call it) working with Linux on notebooks like that use a similiar device (like Fujitsu Lifebook B142 notebook that is discussed in the link below) using previous kernels and then with some kind of patch to the 2.6 kernel (since kernel 2.6 did away with dev/psaux that let this work in the past they say). The link at the bottom of this article leads to a link where you can get the module - it looks like it is going to take a bit of work to put this together to work with the lastest kernels but it sounds like you have a fair bit of knowledge of kernels and modules.

informatik.uni-freiburg.de/~danlee/fun/psaux/

Note put a www and . in front of the above - this forum will not yet let me post urls until I post three times.
 
Old 09-23-2006, 08:32 AM   #8
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
After chasing several leads...
According to 2.6.13 ChangeLog, as of kernel 2.6.13, the Fujitsu Lifebook B-series touchscreen driver patch to the psmouse module was added into the kernel source, so all we should need to do with that is check to see if it is loaded.

Now how to build/install the evtouch driver?
I have tried several approaches, none have worked. Downloaded binary copies of evtouch_drv.o in both /usr/X11R6/lib/modules/input/ and /usr/lib/xorg/modules/input/ fail to load, probably due to xserver version discrepencies. I have not figured out how to get a successful build, since the additional source requirements are entirely unclear.
 
Old 09-23-2006, 01:08 PM   #9
Nobles
LQ Newbie
 
Registered: Sep 2006
Location: Canada
Posts: 19

Rep: Reputation: 0
One more issue with using the Fujitsu B-series patch/driver as written by Kenan Esau and Vojtech Pavlik even if it is now included in the kernel might be that it is using DMI to ensure that the laptop is a "LIFEBOOK B Series" before it will attempt to initialize the hardware - see the discussion at the link below - they mention adding the Toughbook to the DMI table but I don't believe they ever got that far with it.

http://linux.derkeiler.com/Mailing-L...5-02/3138.html

The source of the patch on www.conan.de includes the following which is then used later on as a test in a conditional statement before the driver is setup:

+static struct dmi_system_id lifebook_dmi_table[] = {
+ {
+ .ident = "Fujitsu Siemens Lifebook B-Sereis",
+ .matches = {
+ DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK B Series"),
+ },
+ },
+ { }
+};
+

I would have to say that this appears to be one of the most challenging hardware items ever to get working with Linux.
I noticed that even with the touchscreen driver from XI Graphics that you have to tinker around and compile it yourself if you are using a 2.6 kernel - so even that route would not be easy.
 
Old 09-23-2006, 04:08 PM   #10
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
kernel driver DMI

They got around to it, but it waited until 2.6.17. Doesn't mention the CF-29... Ahhh, life on the bleeding edge!
Time to read the source, I guess.
It's a rather bizarre situation to have to wait for your specific system to be listed in the kernel source code in order to be able to use an existing driver!

Quote:
commit 47ce56edb8ecdd4ec2bbec4e8683f3ba91de72e3
Author: Kenan Esau <kenan.esau@conan.de>
Date: Mon May 29 23:31:12 2006 -0400

Input: psmouse - DMI updates for lifebook protocol

Added different lifebook-versions and the CF-18 to the corresponding
dmi-table.

Signed-off-by: Kenan Esau <kenan.esau@conan.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
 
Old 09-23-2006, 08:33 PM   #11
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
kernel module patch

This is in progress here at the moment, so it has not yet proven to accomplish anything.
You will need the complete kernel source, and the capability to build a kernel.

In {kernel-source-dir}/drivers/input/mouse/lifebook.c, add:
Code:
       {
               .ident = "CF-29",
               .matches = {
                       DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"),
               },
       },
Where it belongs will become obvious when you edit the file. Kernel version must be at least 2.6.13, since that is the first kernel version in which lifebook.c appears.
 
Old 09-25-2006, 07:08 AM   #12
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
See: bugzilla.kernel.org for an update.
 
Old 10-03-2006, 02:33 PM   #13
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
had a few questions but posted it to the wrong thread:
http://www.linuxquestions.org/questi...ht=touchscreen
feeling foolish now
good luck with it
stan
 
Old 11-12-2006, 07:51 AM   #14
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
One more tidbit

I received a reply to a message I sent to a mailing list months ago, from someone at Trident Technology Solutions . Trident writes and sells custom touchscreen drivers. He said:
Quote:
The CF-29 touchscreen is multiplexed through the i8042 (fujitsu) PS/2 controller. You may be able to get a driver for a Lifebook (using this controller) to work.
After the controller is sent a proprietary configuration code sequence, then the touchscreen data comes merged with touchpad data.
Obviously the missing piece is the "proprietary configuration code sequence".
 
Old 04-26-2007, 06:51 AM   #15
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
The development of a solution has progressed to successes with at least the CF-18,27,28 and 29 models. The discussion can be found on this thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux/GUI suggestions for Panasonic toughbook CF-71 1,000_naymes Linux - Laptop and Netbook 5 07-12-2006 07:21 PM
Panasonic ToughBook Wireless ultrabots2002 MEPIS 1 06-01-2005 10:34 AM
Sound on Panasonic CF-27 Toughbook erraticassassin Linux - Hardware 2 12-02-2004 01:32 PM
Replacing Mandrake with Slack on a Panasonic Toughbook erraticassassin Slackware 5 07-04-2004 01:49 PM
cisco aironet wireless on panasonic toughbook rainmann Linux - Wireless Networking 2 01-25-2004 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration