LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 06-24-2012, 11:37 AM   #1
xp19375
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 33

Rep: Reputation: Disabled
Panasonic Toughbook CF-27 Mk. 4 Touchscreen Working and Calibrated


After many months of trying to get the touchscreen on an old CF-27 mk. 4 working, I was finally able to. The problem I ran into while searching for solutions was that the CF-27 mk. 4 uses a different touchscreen than the other CF-27's. It uses the same one as the CF-28 mk. 1, specifically a Fujitsu Lifebook B-series touchscreen. The touchscreen is multiplexed with the touchpad, and both are connected to the PS/2 port.

The good news is that Linux already has the driver! The bad news is that Linux doesn't know how to use it.

To get this to work, I modified the lifebook.c file and recompiled the psmouse.ko module. lifebook.c is found in drivers/input/mouse in the Linux source code.
In lifebook.c, replace:

Code:
/* Panasonic CF-28 */
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
			DMI_MATCH(DMI_PRODUCT_NAME, "CF-28"),
		},
		.callback = lifebook_set_6byte_proto,
with
Code:
	/* Panasonic CF-28 */
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
			DMI_MATCH(DMI_PRODUCT_NAME, "CF27"),
		},
		.callback = lifebook_set_6byte_proto,
and compile the psmouse module. My makefile looks like this:
Code:
#
# Makefile for the psmouse driver from old kernel sources
#
obj-m := psmouse.o
psmouse-objs := psmouse-base.o synaptics.o alps.o lifebook.o trackpoint.o logips2pp.o elantech.o hgpk.o sentelic.o 
#touchkit_ps2.o

all:  
	$(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` modules
clean:
	$(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` clean
	$(RM) Module.markers modules.order
Note that the Linux headers are required to build this. There should then be something in /lib/modules/<Distro>/build.
Also note that this is not a proper solution, as now CF-28 touchscreens will not work, but it gets the job done.

The newly build psmouse module goes in /lib/modules/<Distro>/kernel/drivers/input/mouse. On Arch, it needs to be gzip'ped. The module then needs to be reloaded with
Code:
modprobe -r psmouse
modprobe psmouse
That should activate the touchscreen, but it will be uncalibrated. The calibration utility I found, which works quite well, is xinput_calibrator. Download and install this, read the directions, and the touchscreen should be calibrated.

I recompiled the module on Arch with the 3.4.2 kernel, but I believe the same (or very similar) procedure will work with any kernel. I recall doing this sucessfully on Debian 6.0, with the default 2.6.32 kernel. I have only tried xinput_calibrator on Arch.

I hope this helps someone.
 
Old 07-26-2012, 01:50 PM   #2
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
Nice work. I used to have several of those old laptops, they were great.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Panasonic Toughbook CF-29HTM50BM touchscreen problems supermagnum Linux - Laptop and Netbook 1 06-08-2010 02:08 PM
Touchscreen on Fujitsu Lifebook B series Can't be Calibrated mradtke Slackware 1 05-18-2010 10:18 PM
Touchscreen Drivers - Toughbook CF-19 w/Red Hat 5.3 (Fujitsu USB Touchscreen) bsheridan Linux - Laptop and Netbook 0 11-17-2009 10:54 AM
Panasonic ToughBook CF-28 TouchScreen Under Linux - Solved and Working. james_jenkins Linux - Laptop and Netbook 5 04-27-2007 01:08 PM
Touchscreen - Panasonic Toughbook CF-29 Azizcoos Linux - Hardware 14 04-26-2007 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 09:07 PM.

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