Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(I decided to open this new thread to make things clear )
(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.
--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 ?)
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.
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:
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
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.
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:
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:
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.
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:
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:
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:
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.
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.