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/)

stan.distortion 07-16-2007 07:47 PM

Hi again :) Just done the same, downloaded 2.6.22 from kernel.org, compiled and installed. Other than unmaintained wifi drivers everything was fine, touchscreen was working immediately :)
Having a few issues though. Thought it was just me with the crashes. I've been having them as soon as the touchscreen was working, my system has been through 3 laptops and 4 hard disks so I was guessing it was something on my end, having a few doubts now though.
X freezes, the system stays up but nothing I have tried through ssh can kill, restart or find anything in the logs with X. Always with KDE (don't use gnome much) and always with touchscreen input. Usually with heavy system load and it almost seems like it happens after a certain number of taps. With normal use it will stay up for days or weeks but with a lot of searching through files and changing windows it will almost always crash within a few hours.
If anyone can guide me to some debug info or some way of finding out why I would appreciate it.
Another point, only a small one though. If the power goes off the input node changes (normally input3, changes to input2) after booting. Reboot normally and it goes back to where it should be, not a big problem but it wasn't happening with the patched 2.6.20 kernel.
Cheers

PPaFin 07-23-2007 01:11 AM

Just quick note: I got it once again working with small patch from Dmitri. It was great job from Dmitri to sort this issue out!

TomaCzar 08-06-2007 04:53 AM

Quote:

I got it once again working with small patch from Dmitri.
Any chance I could get access to this magical small patch as well. I've looked here but nothing is labeled fix-the-cf-18-touchscreen-kernel-panic.patch and furthermore all files are much older than PPaFin's post. I'm running 2.6.22.1 on Slackware and cannot gain any ground on the touchscreen issue. Any help would be appreciated.

Respectfully submitted,

TomaCzar

PPaFin 08-12-2007 01:14 AM

Quote:

Originally Posted by TomaCzar
Any chance I could get access to this magical small patch as well. I've looked here but nothing is labeled fix-the-cf-18-touchscreen-kernel-panic.patch and furthermore all files are much older than PPaFin's post. I'm running 2.6.22.1 on Slackware and cannot gain any ground on the touchscreen issue. Any help would be appreciated.

Sorry for the delay. This is patch that dimitri sent me:

---CUT---
--
Dmitry

Input: lifebook - fix an oops on Panasonic CF-18

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

drivers/input/mouse/lifebook.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: work/drivers/input/mouse/lifebook.c
===================================================================
--- work.orig/drivers/input/mouse/lifebook.c
+++ work/drivers/input/mouse/lifebook.c
@@ -109,7 +109,7 @@ static psmouse_ret_t lifebook_process_by
{
struct lifebook_data *priv = psmouse->private;
struct input_dev *dev1 = psmouse->dev;
- struct input_dev *dev2 = priv->dev2;
+ struct input_dev *dev2 = priv ? priv->dev2 : NULL;
unsigned char *packet = psmouse->packet;
int relative_packet = packet[0] & 0x08;


-------------------------------------------------------

---CUT---

So, there seems to be one line change in lifebook.c.

samstar 08-12-2007 03:19 PM

Hi, I've just been testing Gentoo's latest development 2.6.22 kernel on my CF-18, and the kernel panics after the touchscreen is pressed. Sounds like the same kernel panic problem that you've been experiencing, and happens 100% of the time. I'll try that patch, ppafin, and see if it works here.

Sam

edit: I've tried applying this patch normally, but I think there is a typo in it somewhere around line 12 and 13, so I am entering the changes by hand, and am compiling now.
PS. Have you ever tried navigating linuxquestions.org with 'lynx'? It is a &^!(#.
Sam

samstar 08-12-2007 05:06 PM

Ok, I tested the resulting kernel, and everything appears ok. I haven't installed X yet, so I don't know if the patch may have affected anything else yet. I submitted a bug report to Gentoo, since it was their kernel I was testing.

Sam

samstar 08-18-2007 04:36 PM

Modified xorg calibration
 
Hello again. I just wanted to share this with everyone using a touchscreen CF-18. I've been playing around with the touchscreen driver's calibration settings (the ones that are originally generated with the driver's calibration.sh program), and I've developed a set of values that work tremendously well for me. I just thought I'd share those values, and see if it works as well for anyone else too.

Replace (or put comment out your current calibration settings) with these, under the evtouch driver settings.

Option "MinX" "64"
Option "MinY" "57"
Option "MaxX" "954"
Option "MaxY" "937"
Option "x0" "-8"
Option "y0" "8"
Option "x1" "2"
Option "y1" "6"
Option "x2" "7"
Option "y2" "1"
Option "x3" "-6"
# Option "y3" "10"
# Option "x4" "10"
# Option "y4" "10"
Option "x5" "8"
# Option "y5" "10"
Option "x6" "-1"
Option "y6" "-4"
Option "x7" "-2"
Option "y7" "-4"
Option "x8" "1"
Option "y8" "-1"

The Options that are commented out, leave them commented out - I just leave them there for reference.

Sam

elect 10-18-2007 04:19 PM

Samstar, here my xorg of my new Gutsy Gibbon, where i should add ur settings?



# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "it"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
Driver "intel"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"
Identifier "Monitor Generico"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-160
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
Monitor "Monitor Generico"
DefaultDepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection

samstar 10-18-2007 11:58 PM

Well, you first need a section for your touchscreen driver. All the above fits into that section. It will look something like this:
Code:

Section "InputDevice"
    Identifier "touchscreen"
    Driver "evtouch"
    Option "Device" "/dev/input/event1"
    Option "DeviceName" "touchscreen"
    Option "ReportingMode" "Raw"
    Option "Emulate3Buttons"
    Option "Emulate3Timeout" "50"
    Option "SendCoreEvents" "On"
EndSection

(I got the above from www.conan.de)

Replace the generic mouse section with this, and point "Device" to the correct device (hint: check /proc/bus/input/devices). Then insert the options I listed. Hopefully they'll work as well for you as they did for me (if you're right handed).

Sam


All times are GMT -5. The time now is 06:51 AM.