Debian Linux AMD64 中安装HP tc4400的手写笔驱动

 

 

首页Linux编程

背景:

阅读新闻

Debian Linux AMD64 中安装HP tc4400的手写笔驱动

[日期:2010-08-27]   来源:Linux社区  作者:jiyeqian   [字体:]  

1、从源中安装 wacom-tools 和 xserver-xorg-input-wacom 。

2、下载最新的驱动,编译、安装。
./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


……

加速Linux程序编译

Linux 2.6.22.6移植到S3C2440之通过NFS启动QT并添加USB鼠标支持

相关资讯       Linux教程 

   

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwssjp.html