LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 04-14-2007, 12:08 PM   #106
Nobles
LQ Newbie
 
Registered: Sep 2006
Location: Canada
Posts: 19

Rep: Reputation: 0

Since this thread is getting extremely long and contains almost too much information now, could somebody post a detailed reply or a start a new thread with the complete how-to of how to get the touchscreens working with the newer 2.6 kernels. To keep things simple and make it easy for those trying to follow the instructions detailed here with varying Linux expertise, I would suggest pick a distribution, pick a toughbook model (preferrably either the CF-28 or CF-29 since those seem to be the models that require the most fooling around to get to work properly) and provide all the details (including where to get the latest patches) in one message much like James Jenkins did when he detailed how he got a CF-28 working with Slackware and the older 2.4 kernel.
 
Old 04-14-2007, 03:12 PM   #107
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 30
Quote:
Originally Posted by dtor
Hi guys,

I have 3 patches for PS/2 Fujitsu touchscreens that I am thinking about sending for 2.6.22 and it would be great if they receive some testing. The patches are called lifebook-*.patch and located here:

http://www.kernel.org/pub/linux/kernel/people/dtor/

Remember that evtouch X driver is recommended for use with touchscreens.

Thank you in advance.

Dtor, I used your CF-18 patches for kernel 2.6.18.8-0.1 (suse 10.2 kernel). There were errors with both, so I manually edited lifebook.c with the patch info. If you want to make any changes to the patches, are there any files you need from me such as my original lifebook.c or the .rej file?

I'm about to compile, wish me luck!

(PS for anyone compiling or new to compiling, when configuring, it is a good idea to start with the default config file located in /boot. It has the same configuration as the default kernel from the distro (assuming that most distros do this), so you won't miss any important areas that you may otherwise not notice)

Last edited by samstar; 04-14-2007 at 03:13 PM.
 
Old 04-15-2007, 12:47 AM   #108
james_jenkins
Member
 
Registered: Feb 2007
Location: Missouri - USA
Distribution: Usually Suse or SLED, usually.
Posts: 35

Rep: Reputation: 15
Quote:
Originally Posted by Nobles
Since this thread is getting extremely long and contains almost too much information now, could somebody post a detailed reply or a start a new thread with the complete how-to of how to get the touchscreens working with the newer 2.6 kernels.
I think that Nobles is correct that we need to start farming some of this information out of the thread, and his reasons were the same reasons that I did it myself. I certainly don't want to kill the thread or anything, as it has taken on it's own "life", and I think I would miss it.

So I created this Wiki, http://toughbooks.wikidot.com/ to that end. I would like to keep the thread going, but start to fill the Wiki up with completed content that was created as a result of the thread. This of course is NOT something that I want to do by myself, so I am asking if anyone is interested in helping. I have also activated the forums and setup some preliminary groups.

Let me know what you think, or if your interested in helping.

James

Last edited by james_jenkins; 04-15-2007 at 01:14 AM.
 
Old 04-15-2007, 10:47 AM   #109
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Rep: Reputation: 15
Why not use the LQ Wiki?

I just tried the fujitsu-serial-ts.patch against 2.6.18:
Quote:
~/src/linux-source-2.6.18$ patch -bp1 <fujitsu-serial-ts.patch
...
patching file drivers/input/touchscreen/Kconfig
Hunk #1 succeeded at 39 (offset -5 lines).
Hunk #2 succeeded at 49 (offset -5 lines).
...
patching file drivers/input/touchscreen/Makefile
Hunk #1 FAILED at 5.
...
patching file include/linux/serio.h
Hunk #1 FAILED at 209.
Sorry for the delay. My CF-29 was with me in a sailboat at sea for the last two weeks. Internet access was infrequent and unreliable, and I was unwilling to risk messing it up.
 
Old 04-15-2007, 12:07 PM   #110
dtor
Member
 
Registered: Jun 2004
Location: Indiana, US
Distribution: Used to be RedHat 8
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by Azizcoos
I just tried the fujitsu-serial-ts.patch against 2.6.18:
Could you please patch again (with failures) and then manually add:

- to include/linux/serio.h
Code:
#define SERIO_FUJITSU  0x34
- to drivers/input/touchscreen/Makefile
Code:
obj-$(CONFIG_TOUCHSCREEN_FUJITSU)      += fujitsu_ts.o
This should allow us to work around differences between the latest trees and older one.

Thanks!
 
Old 04-15-2007, 12:13 PM   #111
dtor
Member
 
Registered: Jun 2004
Location: Indiana, US
Distribution: Used to be RedHat 8
Posts: 43

Rep: Reputation: 15
Because people use different distributions and older kernels it does not look like patches for lifebook module work well. Because of that I just uploaded the latest version of lifebook.c here:

http://www.kernel.org/pub/linux/kern...tor/lifebook.c

It should get out to the mirrors in the next hour or so. Please try downloading it and replacing /path/to/your/kernel/sources/drivers/input/mouse/lifebook.c
with this new file. If it gives you errors when recompiling please send me (dtor@insightbb.com) your original version of lifebook.c and I will patch it for you.

Thanks!
 
Old 04-15-2007, 02:00 PM   #112
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 30
Well, I know I'm only making this thread larger, but two questions for dtor about recompiling.

First, does CONFIG_INPUT_TOUCHSCREEN need to be set, even though lifebook.c isn't a subset of it?

Second, do those edits to "include/linux/serio.h" and "drivers/input/touchscreen/Makefile" that you just posted need to be added as well, or is that just for the CF-29?

Just in - dtor, the lifebook.c file you linked to didn't help either. Got this message in kernel make:

CC [M] drivers/input/mouse/lifebook.o
/usr/src/linux-2.6.18.8-0.1/drivers/input/mouse/lifebook.c: In function ‘lifebook_create_relative_device’:
/usr/src/linux-2.6.18.8-0.1/drivers/input/mouse/lifebook.c:255: error: request for member ‘parent’ in something not a structure or union
/usr/src/linux-2.6.18.8-0.1/drivers/input/mouse/lifebook.c: In function ‘lifebook_init’:
/usr/src/linux-2.6.18.8-0.1/drivers/input/mouse/lifebook.c:295: warning: assignment from incompatible pointer type
make[4]: *** [drivers/input/mouse/lifebook.o] Error 1
make[3]: *** [drivers/input/mouse] Error 2
make[2]: *** [drivers/input] Error 2
make[1]: *** [drivers] Error 2
make: *** [_all] Error 2

Last edited by samstar; 04-15-2007 at 02:08 PM.
 
Old 04-15-2007, 03:41 PM   #113
dtor
Member
 
Registered: Jun 2004
Location: Indiana, US
Distribution: Used to be RedHat 8
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by samstar
Well, I know I'm only making this thread larger, but two questions for dtor about recompiling.

First, does CONFIG_INPUT_TOUCHSCREEN need to be set, even though lifebook.c isn't a subset of it?
No, you will only need it if you want to use fujitsu_ts module, not lifebook.
Quote:
Second, do those edits to "include/linux/serio.h" and "drivers/input/touchscreen/Makefile" that you just posted need to be added as well, or is that just for the CF-29?
No, again these are for fujitsu_ts.

Quote:
Just in - dtor, the lifebook.c file you linked to didn't help either. Got this message in kernel make:
I believe I got your mail with original lifebook.c, I will try to patch it later tonight.
 
Old 04-15-2007, 04:10 PM   #114
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Rep: Reputation: 15
Received the following error building fujitsu_ts.c:
Quote:
CC [M] drivers/input/touchscreen/fujitsu_ts.o
drivers/input/touchscreen/fujitsu_ts.c:172: warning: initialization from incompatible pointer type
drivers/input/touchscreen/fujitsu_ts.c: In function ‘fujitsu_init’:
drivers/input/touchscreen/fujitsu_ts.c:183: error: void value not ignored as it ought to be
make[3]: *** [drivers/input/touchscreen/fujitsu_ts.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
Line 183 here reads:
Quote:
return serio_register_driver(&fujitsu_drv);
 
Old 04-16-2007, 10:33 AM   #115
dtor
Member
 
Registered: Jun 2004
Location: Indiana, US
Distribution: Used to be RedHat 8
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by Azizcoos
Received the following error building fujitsu_ts.c:

Line 183 here reads:
return serio_register_driver(&fujitsu_drv);
Please change it to read:
Code:
serio_register_driver(&fujitsu_drv);
return 0;
Also please change from:
Code:
static irqreturn_t fujitsu_interrupt(struct serio *serio,
               unsigned char data, unsigned int flags)
to
Code:
static irqreturn_t fujitsu_interrupt(struct serio *serio,
               unsigned char data, unsigned int flags,
               struct pt_regs *regs)
Note the addition of "struct pt_regs *regs" - newer kernels do not need this parameter but older ones do.
 
Old 04-16-2007, 01:59 PM   #116
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Rep: Reputation: 15
Dmitry-
You have finally convinced me to switch to a new kernel.
What exact version should I get for maximum compatibility with your work?
 
Old 04-16-2007, 03:11 PM   #117
dtor
Member
 
Registered: Jun 2004
Location: Indiana, US
Distribution: Used to be RedHat 8
Posts: 43

Rep: Reputation: 15
I would just download 2.6.20.7 and use it. I just tried applying my patch to it, it gave me a bit of fuzz in Kconfig and serio.h files but otherwise built just fine.

Sorry it being such a pain for you guys.
 
Old 04-16-2007, 07:28 PM   #118
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 30
Well, I patched both my suse's 2.6.18.8-0.1 kernel and the 2.6.20.7 standard kernel on my CF-18, using the three patch files from dtor. Recompiling and booting, I have to report a complete success!

No fuzz or errors in patching, and touchpad and touchscreen availability upon booting. There wasn't even any need to calibrate the touchscreen.
 
Old 04-17-2007, 10:45 AM   #119
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Rep: Reputation: 15
I fetched 2.6.20.7, the fujitsu_ts.patch applied cleanly. The new kernel is built and booted. But 8250 and 8250_pnp did not get built as modules. It appears that they are in the kernel. Loaded modules serport and fujitsu_ts.
Quote:
# inputattach -fjt /dev/ttyS1
inputattach: device initialization failed
(Same for all ttyS*)
# setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
ttyS0 is known to be the DB9 serial port.

I now have more items in /dev/input/ than with 2.6.18:
event0 event1 event2 event3 event4 event5 mice mouse0 ts0
(event3,4 and 5 are new)
Test results using od:
event0 - keyboard
event1 - unknown/no response
event2 - touchpad
event3 - unknown/no response
event4 - unknown/no response
event5 - unknown/no response
mice - touchpad
mouse0 - touchpad
ts0 - touchpad

But still no output from the CF-29 touchscreen. Back to lifebook.c?
 
Old 04-17-2007, 11:46 AM   #120
dtor
Member
 
Registered: Jun 2004
Location: Indiana, US
Distribution: Used to be RedHat 8
Posts: 43

Rep: Reputation: 15
Coudl you try doing

setserial /dev/ttyS1 -v autoconfig
setserial /dev/ttyS2 -v autoconfig
.. etc?

Also, could you please send me your dmesg to dtor@insightbb.com? And dump of /proc/acpi/dsdt? Thanks!
 
  


Reply

Tags
cf, panasonic, touchscreen, toughbook


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Touchscreen - Panasonic Toughbook CF-29 Azizcoos Linux - Hardware 14 04-26-2007 07:51 AM
Linux/GUI suggestions for Panasonic toughbook CF-71 1,000_naymes Linux - Laptop and Netbook 5 07-12-2006 08:21 PM
Panasonic ToughBook Wireless ultrabots2002 MEPIS 1 06-01-2005 11:34 AM
Sound on Panasonic CF-27 Toughbook erraticassassin Linux - Hardware 2 12-02-2004 02:32 PM
Replacing Mandrake with Slack on a Panasonic Toughbook erraticassassin Slackware 5 07-04-2004 02:49 PM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration