具体方法和原理我是参见的这篇文章:
http://blog.aliencam.net/2008/10/ubuntu ... let-setup/
照顾一下E文不好的同志,我稍稍解释一下。Ubuntu支持触摸屏,但默认没有打开,我们要做的就是改改配置文件让它启用就可以了。
x61t是Lenovo ThinkPad的一款Tablet Laptop,其它的触摸屏笔记本应该类似。
不多说了,直接上配置文件,同款本本的同志们直接覆盖掉/etc/X11/xorg.conf的原有内容就可以了。
附件是我用笔在屏幕上写字的效果(compiz-fusion支持屏幕画图):
因为配置文件内容贴上后行首的tab消失了,特此说明一下,以Section和EndSection开头的行行首都没有空格或tab,其它行除了空行外行首都有且只有一个tab。
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
#BEGIN TABLET SECTION
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "stylus"
Option "USB" "on" # USB ONLY
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "Button2" "3" # Added for stylus click
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "eraser"
Option "USB" "on" # USB ONLY
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "Button3" "2" # Added for eraser working
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "cursor"
Option "USB" "on" # USB ONLY
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
# This section is for the TabletPC that supports touch
Section "InputDevice"
Driver "wacom"
Identifier "touch"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "touch"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on" # USB ONLY
EndSection
#END TABLET SECTION
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
# InputDevice "Synaptics Touchpad"
#added to get tablet working
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "touch" "SendCoreEvents"
EndSection