设为首页 加入收藏

TOP

Debian Linux AMD64 中安装HP tc4400的手写笔驱动
2014-11-24 03:22:25 来源: 作者: 【 】 浏览:1
Tags:Debian Linux AMD64 安装 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



……


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇加速Linux程序编译 下一篇给Android增加分享库.so文件

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·常用meta整理 | 菜鸟 (2025-12-25 01:21:52)
·SQL HAVING 子句:深 (2025-12-25 01:21:47)
·SQL CREATE INDEX 语 (2025-12-25 01:21:45)
·Shell 传递参数 (2025-12-25 00:50:45)
·Linux echo 命令 - (2025-12-25 00:50:43)