Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
danmiddle2,
Here's a script I wrote to toggle the rotation of the screen:
Code:
#!/bin/bash
current=0
compiz=0
xrandr -q | grep 'right (' >/dev/null && current=90
ps -e | grep compiz >/dev/null && touch /tmp/compiz
test -e /tmp/compiz && compiz=1
if [ "$current" -eq 90 ]
then
# killall tablet6.en.pl
# killall onboard
xrandr --output LVDS --rotate normal
if [ "$compiz" -eq 1 ]
then
compiz --replace &
rm /tmp/compiz
fi
# ~/bin/tablet6.en.pl &
else
# killall tablet6.en.pl
xrandr --output LVDS --rotate right
metacity --replace &
# ~/bin/tablet6.en.pl -cw &
# onboard &
fi
exit=0
The script checks to see if desktop effects are active, disables them for a rotated screen, and re-enables them when toggling back to normal rotation. If desktop effects aren't enabled, it simply rotates between clockwise and normal orientations.
I used xbindkeys to attach the script to the rotation button on the screen bezel. I can share the details of that later, if you need them. I even have xbindkeys working with scripts to use the brightness function keys to control screen brightness.
If you look closely, I've commented out lines that I use to start and kill an on-screen keyboard program called "onboard". Also, you'll notice a Perl script called "tablet6.en.pl". That's another "driver" from Sam Engstrom that can be used for the P1510D touch screen and handles screen rotation properly. More info on that can be found here: http://samengstrom.com/nxl/3566/p151...n_page.en.html If you decide to try the Perl script as your touch screen driver, be sure to comment out the Fujitsu touch screen driver from the "ServerLayout" section in xorg.conf and restart X.
I initially tried Sam Engstrom's driver, had a bear of a time getting the X11:GUITest library compiled (but succeeded after going through dependency hell), and failed to get the script to work. I tried it again after recently failing to get the Fujitsu driver to rotate properly, and for some reason the Perl script worked. If I figure out what all I did to get it working, I'll post it here. The only problem I'm having with it now is getting it to restart automatically after suspending the laptop, which means I have to start it manually if I need it.
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
Just to say it works like a charm and to thanks concertedrxn and community for all this great work...
Good job mates long life to open source
:guitar:
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
Quote:
Originally Posted by
concertedrxn
danmiddle2,
Here's a script I wrote to toggle the rotation of the screen:
Worked like a charm, many thanks!
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
Quote:
Originally Posted by
danmiddle2
Rotate doesn't work if you are running compiz desktop effects. To see if this is your issue, try disabling compiz and then using the xrandr rotate command. This works fine for me.
I removed compiz and compiz-core using synaptic package manager, then ran ¨xrandr -o right¨
No joy .. the mouse is still being all crazy.
Thanks for the suggestion but it didn´t pay out.
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
danmiddle2, sorry I fell off the map for a while. Installing the build-essentials fixed up my problem, and running the script did enable the touchscreen ( that is I can see the pointer move when my pen gets close to the screen), however I think you are right that either the driver isn't totally compatible or I need to make adjustments in the xorg.conf because my x-y coordinates seem to be off. If I touch the center of my screen, the pointer is completely off the monitor. If i move the pen around, I can see the pointer reach the far edges of the screen sometimes.
You got me on my way though. I'll check out conan.de and see if they have a better driver for my model
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
ps concertedrxn, your rotate script works wonderfully with the t4010d. I've tried several other scripts that couldn't quite pull off the job but yours is spot on. Now if I could just get the coordinates for my pen control...
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
Well, I thought I was being really clever by changing the MaxX and MaxY values to my resolution size but you should never count on passing a test if you're guessing.
Option "MinX" "0"
Option "MinY" "0"
Option "MaxX" "1024"
Option "MaxY" "768"
I figure it couldn't hurt to include my xorg.conf file here in case anyone can r
ecognize some unneeded garbage that could be causing some trouble
Code:
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# 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" "us"
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 "cursor"
Option "Device" "/dev/ttyS0"
Option "ForceDevice" "ISDV4"
Option "Type" "cursor"
Option "Mode" "absolute"
Option "Speed" "3.0"
Option "Threshold" "2"
# Option "DebugLevel" "10"
# Option "MaxX" "24576"
# Option "MaxY" "18432"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/ttyS0"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "Tilt" "on"
Option "TiltInvert" "on"
Option "Threshold" "2"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
# Option "DebugLevel" "10"
Option "SendCoreEvents" "true"
EndSection
Section "InputDevice"
Identifier "touchscreen"
Driver "fujitsu"
Option "Device" "/dev/ttyS0"
Option "DeviceName" "touchscreen"
Option "MinX" "0"
Option "MinY" "0"
Option "MaxX" "1024"
Option "MaxY" "768"
Option "SendCoreEvents" "On"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/ttyS0"
Option "Type" "eraser"
Option "Mode" "absolute"
Option "Tilt" "on"
Option "TiltInvert" "on"
Option "Threshold" "2"
# Option "DebugLevel" "10"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
#Option "DRI" "false"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82852/855GM Integrated Graphics Device"
Monitor "Generic Monitor"
DefaultDepth 24
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "touchscreen"
# Uncomment if you have a wacom tablet
# TabletPC Pen Device
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
The scripts and instructions in the thread work amazingly well! Thanks for taking the time to figure out so many details.
I do have one issue though, and I'm wondering if others see the same. If I open an app like Gimp or another drawing program, I don't seem to be able to draw anything. The pointer moves around smoothly, but doesn't seem to register a click when I drag.
I'm currently at these settings trying to fix the problem:
Option "LongTouchTimer" "500"
Option "longtouched_button" "3"
Option "maybetapped_action" "click"
Option "maybetapped_button" "1"
Can anyone get their config to allow them to use the stylus to casually draw in a drawing app?
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
Quote:
Originally Posted by
DoItFast4U
The scripts and instructions in the thread work amazingly well! Thanks for taking the time to figure out so many details.
I do have one issue though, and I'm wondering if others see the same. If I open an app like Gimp or another drawing program, I don't seem to be able to draw anything. The pointer moves around smoothly, but doesn't seem to register a click when I drag.
I'm currently at these settings trying to fix the problem:
Option "LongTouchTimer" "500"
Option "longtouched_button" "3"
Option "maybetapped_action" "click"
Option "maybetapped_button" "1"
Can anyone get their config to allow them to use the stylus to casually draw in a drawing app?
works for me, but you have to press harder than perhaps you want to at first.
Re: [SOLVED] Fujitsu Lifebook P1510d Touchscreen stopped working in Hardy
Quote:
Originally Posted by
danmiddle2
works for me, but you have to press harder than perhaps you want to at first.
The fujitsu driver uses the libtouch library to emulate mouse button actions, and I don't find the way libtouch operates to be very intuitive. To emulate holding down the left mouse button, you have to press on one spot on the screen for a moment before dragging the stylus. That is what causes difficulty when trying to draw in the GIMP. It's not that you need more pressure to draw, but by exerting more pressure you probably spend just enough time in one spot to register a left mouse button down event.