Debian Linux AMD64 中安装HP tc4400的手写笔驱动
1、从源中安装 wacom-tools 和 xserver-xorg-input-wacom 。
2、下载最新的驱动,编译、安装。http://linuxwacom.sourceforge.net/index.php/dl
./configure --enable-wacom
make
make install
将编译出来的./src/`uname -r`/wacom.ko 覆盖旧的/lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko
3、在/etc/X11/xorg.conf中加入如下内容:
# Add: Load "wacom" to the 'Module' section
Section "Module"
Load "wacom"
EndSection
# Add the Stylus:
Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/ttyS0"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"
Option "Button2" "3"
EndSection
# Add the Eraser
Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/ttyS0"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"
Option "Button2" "3"
EndSection
# --This bit of code is for when you want to rotate your screen your cursor will be able to rotate equally.
# Add the Cursor:
Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/ttyS0"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"
EndSection
# Add to 'Server Layout':
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection
4、reboot
5、新建一个控制屏幕旋转的脚本:
#!/bin/sh
if [ $(xrandr --dryrun|awk '/LVDS connected/ {print $5}') = "normal" ]; then
xrandr -o right
xsetwacom set "stylus" Rotate CW
xsetwacom set "eraser" Rotate CW
else
xrandr -o normal
xsetwacom set "stylus" Rotate None
xsetwacom set "eraser" Rotate None
fi
……