LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Panasonic Toughbook CF-18 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/panasonic-toughbook-cf-18-a-546167/)

elect 04-15-2007 03:58 AM

Panasonic Toughbook CF-18
 
(I decided to open this new thread to make things clear :D )

(I will try to update this first post)


TOUCHPAD

Quote:

Originally Posted by PPaFin
Thanks to Dimitri and Stan, I got now my CF-18 touchscreen and touchpad working. Touch screen is not calibrated but what is most important, touchpad is working. I did applied patch from Dimitri and it worked out, he can propably give some details how it was made.

Next thing is touchscreen calibration. How do I calibrate the screen?


Quote:

Originally Posted by PPaFin
I am sorry guys, I have been quite busy lately (I will try to arrange DMI information of those new Toughbooks for Stan and Dimitri).

What I did for this CF-18 was following;

1. Installed kubuntu 6.10
2. Everything was working nicely, until kernel upgrade (2 month ago) which messed up my touchpad (it started to act as relative pointer).
3. I reached Stan for help here and gave also some emails to Dimitri.
4. Guys proposed multiple solutions and I tried couple of those.
5. I got kernel 2.6.20 sources, reminded myself how to compile kernel and modules. It was good exercise anyhow, but in my normal business days I have no such time in my hands often.
6. What worked (as quick workaround) was patch to lifebook.c and re-compile kernel modules (to produce new psmouse.ko file).
7. Lifebook.c patch disabled only detection strings for CF-18 model and let system load non touch screen version of psmouse.ko (?)
8. More professional solution was to patch psmouse-base.c as proposed by Dimitri.

If some-one is still interested actual patch files, I can find them here or maybe Dimitri can give us some directions how to make this in right way. I personally think that it would be easier to disable just lifebook.c originated detection string of CF-18 model, but this actual psmouse-base.c patch did work and leaves touchpad and touchscreen working.

http://kernel.org/pub/linux/kernel/p...8-2.6.16.patch

samstar 04-16-2007 06:35 PM

Dtor's three patches for 2.6.18 and 2.6.20 kernels worked on my cf-18 running suse 10.2, with both the 2.6.18.8-0.1 and 2.6.20.7 kernels.

The sequential patches installed flawlessly, and both touchpad and touchscreen work as they should, without the need for calibration (arguably).

If anyone can offer advice on getting the front hotkeys to work, that'd be great.

Sam

PPaFin 04-23-2007 08:24 PM

Kubuntu 7.04 with CF-18 (CF-18DHAFBGS)
 
Ok, I managed to get these early morning hours into something usefull. I installed kubuntu 7.04 to this CF-18 and here is short summary:

1. Installed linux-source and linux-source-2.6.20 packages with adept.

2. Learned (once again) how to compile kernel from http://www.howtoforge.com/kernel_compilation_ubuntu

Something like:

--CUT--
sudo apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
sudo tar xjf linux-source-2.6.20.tar.bz2
sudo ln -s linux-source-2.6.20 linux
sudo cp /boot/config-`uname -r` ./.config
sudo make menuconfig
(and here some config opening and saving as described in article)

Then I patched with dimit patch:

sudo patch -p0 < lifebook-01-cf18-2.6.18.patch

(there is difference in path, so I have to give correct file manually: /usr/src/linux/drivers/input/mouse/lifebook.c

NOTE: There is problem with patch, I have to add stuff from patch file manually to lifebook.c (somebody can explain what those .rej files are meant to be ?)

sudo make-kpkg clean
sudo fakeroot make-kpkg --initrd --append-to-version=-ppa kernel_image kernel_headers

sudo dpkg -i linux-image-2.6.20.3-ubuntu1-ppa_2.6.20.3-ubuntu1-ppa-10.00.Custom_i386.deb
sudo dpkg -i linux-headers-2.6.20.3-ubuntu1-ppa_2.6.20.3-ubuntu1-ppa-10.00.Custom_i386.deb


And then reboot with new kernel.

After noticing that new kernel is not loading those ipw-firmwares, I did following:

cd /lib/firmware/
ln -s 2.6.20-15-generic/ 2.6.20.3-ubuntu1-ppa

So this brings firmware loadable with new kernel also.

--CUT--

Yes I know, this was dirty post but it shows you that getting this touchpad working with CF-18 and kubuntu 7.04 (2.6.20) can be done. I am really looking forward to have 2.6.22 with these patches included!

EDIT: I also noticed that with this new kubuntu and kernel I can access lcd brightness with Fn+F1/F2 which has never before been possible with Linux + CF-18.

samstar 04-24-2007 01:11 AM

Yes, I got lcd brightness buttons, suspend buttons, keyboard brightness buttons, mute, and volume buttons to work by using the Panasonic Hotkey drivers, located here:

http://www.da-cha.jp/letsnote

I couldn't compile the GUI provided because openSUSE 10.2 uses Berkeley's database 4, and the GUI needs version 3 to compile.

PPaFin:
Quote:

Then I patched with dimit patch:

sudo patch -p0 < lifebook-01-cf18-2.6.18.patch
PPaFin, even if it's just the CF-18, all three of Dtor's patches should be installed so there are no errors.

I patched them without errors by going to the lifebook.c directory, and, as root, simply typed:

Quote:

patch lifebook.c {path to patch files}/lifebook-01-cf18.patch
patch lifebook.c {path to patch files}/lifebook-02-cf28.patch
patch lifebook.c {path to patch files}/lifebook-03-use-secondary-device.patch
So that's the CF-18 patch, the CF-28 patch, and the "use-secondary-device" patch, in that order.

Located, as PPaFin said, here:
http://kernel.org/pub/linux/kernel/people/dtor/

One last thing before I sign out.
I loaded xorg 7.2 from openSUSE's extra repository, and it did not come with the evtouch driver, so for those of you whose xorg didn't come with that necessary Input-Event X driver, get it here:
http://stz-softwaretechnik.com/~ke/t...n/evtouch.html

Later all,
Sam

PPaFin 04-24-2007 02:44 AM

Quote:

Originally Posted by samstar
PPaFin, even if it's just the CF-18, all three of Dtor's patches should be installed so there are no errors.

Thanks for advice, I confirm that this is working (even without errors ;) ) So, now I patched lifebook.c with all those three patches and it works perfectly.

I still cannot understand how to calibrate touchscreen ? But this touchpad is good to have working.

samstar 04-24-2007 07:38 AM

The calibration utility comes with the conan.de X driver. You have to configure it with the --enable-ev_calibrate option (not sure if it's spelled right).

Before you "make" it, though, see my LAST post on this page:

http://www.linuxquestions.org/questi...=485053&page=7

Small editing is involved before you make the calibration program.

Finally, and this is important, only include the values for min X, max X, min Y, and max Y from out.txt into your xorg.conf. The rest of the calibration fixes really just make the pointer jump around.

Or, you can try my calibration values for your screen:

Quote:

Option "MinX" "68"
Option "MinY" "57"
Option "MaxX" "955"
Option "MaxY" "941"
Just put these in your xorg.conf inside the touchscreen's settings.

elect 04-25-2007 06:16 AM

Sry for my noob question, but how can i patch the kernel with lifebook.c of Dimitri? and so re-compile it?

samstar 04-25-2007 04:23 PM

Hi Elect,

Patching is straightforward. Just find lifebook.c somewhere in your kernel source directory.

Usually it's in usr/src/linux-<version>/drivers/input/mouse

Just go there, make a backup of the original file, then, as root, patch it with my instructions above.

All you need to enable in the kernel config is "psmouse".

That will take care of the kernel side of touchscreen support. You don't need to enable any other touchscreen drivers.

For my distro, it was easier to compile it with psmouse built in, instead of as a module. Works just as fine.

Sam


----------------------------
To whom it may apply,

I just want to mention this for anyone else with built-in GPS units in their CF-18.

To get that working, the device is a serial device, located at /dev/ttyS1.

If you want to use gpsdrive, or any other GPS linux software, add your user account to the group "uucp" (unless you have security issues I'm not aware of).

That will give you permissions to access the serial port and GPS unit.

samstar 04-26-2007 06:23 AM

Hi,

Some more helpful advice on running the CF-18 in linux.

This has to do with Intel's built-in wifi.

Often, I found that the connection would drop suddenly after some time spent connected to an access point. At the same time there would be firmware errors occurring.

The problem is that although the kernel releases are continually maintained, the Intel wifi modules that come with the latest kernel sources are terribly out-of-date. In fact, they do not seem compatible with the latest kernel versions.

The solution is to replace the ipw2200 and the ieee80211 modules with the very latest from these two sites:

http://ieee80211.sourceforge.net/
http://ipw2200.sourceforge.net/

In fact there's a note on the release of the latest ipw2200 driver that it updates compatibility with kernels 2.6.19 and up.

Recompiling the kernel is NOT necessary. Included with the drivers are tools that help automate the replacement of the modules.

Don't forget to also download the latest firmware too!

After updating, my CF-18 held a continuous connection all day :)

Sam

P.S.
Someone should get on the horn to the guys at kernel development and get those Intel sources updated.

dtor 04-26-2007 08:13 AM

Quote:

Originally Posted by elect
Sry for my noob question, but how can i patch the kernel with lifebook.c of Dimitri? and so re-compile it?

Most of the linux kernel patches are supposed to be patched with '-p1' option to discard the first element of the pathname (as everyone has different name for their working tree). So the command is:

Code:

patch -p1 -d /path/to/your/kernel/source < /path/to/the/patch
The '-d /path...' part is not needed if your current directory is root of kernel tree (which is usually the case as you are about to say "make && make modules_install && make install" so the command becomes:

Code:

patch -p1 < /path/to/the/patch
Hope this helps.

elect 05-18-2007 05:03 PM

I tried so many ways with no success...

At the end, the only way to get it working properly is patching the module-source lifebook.c and compile it...right?

If yes, some1 knows the commands under Ubuntu?

samstar 05-18-2007 05:54 PM

Quote:

Originally Posted by elect
I tried so many ways with no success...

At the end, the only way to get it working properly is patching the module-source lifebook.c and compile it...right?

If yes, some1 knows the commands under Ubuntu?

Why wouldn't it work for you? Can you be more specific? The commands under Ubuntu are the same as the commands under any other distro, because we're dealing with kernel sources. Is it that you don't know how to install Ubuntu's kernel source?

Now, though, you can grab the latest kernel source from kernel.org and patch it with the latest prepatch from the same place, version 2.6.22-rc1. That'll include the lifebook patch too, if you can't patch the Ubuntu kernel.

Sam

elect 05-19-2007 06:05 AM

Quote:

Originally Posted by samstar
Why wouldn't it work for you? Can you be more specific? The commands under Ubuntu are the same as the commands under any other distro, because we're dealing with kernel sources. Is it that you don't know how to install Ubuntu's kernel source?

Now, though, you can grab the latest kernel source from kernel.org and patch it with the latest prepatch from the same place, version 2.6.22-rc1. That'll include the lifebook patch too, if you can't patch the Ubuntu kernel.

Sam



I have the sources of my 2.6.20, i just need to know:

1) How to patch the lifebook.c and with which patch

2) How to compile ONLY the new lifebook.c to produce the module psmouse.ko

samstar 05-19-2007 05:18 PM

I don't know of any way to compile only the psmouse.ko module from a linux source tree. You'd need to compile the entire source in order to compile it as well. If you don't want to do that, I'd suggest you wait until a distro supports the new kernel 2.6.22. That will have the patches incorporated. Some distros, like opensuse, provide separate repositories for a pre-2.6.22 kernel. They usually don't document it, though, since it's experimental.

Sam

elect 05-20-2007 04:43 AM

Quote:

Originally Posted by samstar
Why wouldn't it work for you? Can you be more specific? The commands under Ubuntu are the same as the commands under any other distro, because we're dealing with kernel sources. Is it that you don't know how to install Ubuntu's kernel source?

Now, though, you can grab the latest kernel source from kernel.org and patch it with the latest prepatch from the same place, version 2.6.22-rc1. That'll include the lifebook patch too, if you can't patch the Ubuntu kernel.

Sam


If you give me your new psmouse.ko, should it work?


All times are GMT -5. The time now is 06:32 PM.