+ -
当前位置:首页 → 问答吧 → 自己编译的xfree4.1下的wacom驱动for Debian[原创:abby兄]

自己编译的xfree4.1下的wacom驱动for Debian[原创:abby兄]

时间:2002-09-01

来源:互联网


声明:本程序由abby兄弟原创,任何人可以自由使用或散发,在散发的过程中,请注明作者大名。尊重他人就是尊重自己。

致谢:多谢abby兄弟,兄弟的精神实在令弟兄们敬佩!!!同时也多谢弟兄弟测试及使用,并提宝贵建议!!!


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
正文:自己编译的xfree4.1下的wacom驱动[原创:abby]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


我用的是debian, 不论在稳定版的xfree4.1中、还是在实验版的xfree4.2,wacom驱动都不能用。(redhat和mandrake早就能用了)
办法是到这里下载:

http://people.mandrakesoft.com/~flepied/projects/wacom/

这里有个编译好的xfree4.2驱动,但是现在debian里面的xfree4.2存在很多问题,我自己就试过很多次X冻结住,要用"ctrl+alt+backspace"强行退出X。
我花了很多时间编译了xfree4.1的wacom驱动。
下面我写出怎样用usb接口的wacom。

0]下载:

http://www.linuxsir.org/driver/wacom_drv.o

1. 让内核支持usb和wacom。

在/etc/modules文件中加进几行
hid
usb-uhci #intel主板是这个,via的主板是usb-ohci
evdev
wacom

2. 修改/etc/fstab,加入一行

none /proc/bus/usb usbdevfs defaults 0 0

现在可以重新起动,如果/usb/bus/usb 里面有些文件或者目录,表示成功了。
现在配置xwin。

3. 修改/etc/X11/XF86Config-4, 加入下面的一段

Section "InputDevice"
Identifier "Stylus1"
Driver "wacom"
Option "Type" "stylus"
Option "Device" "/dev/input/event0"
Option "Mode" "Absolute"
Option "Threshold" "10" #这两行很重要,不加上就没有压感
Option "Suppress" "6" #man wacom的说明还有些参数,你的压力板支持的话就加上吧
Option "USB" "on"
EndSection
Section "InputDevice"
Identifier "Eraser1"
Driver "wacom"
Option "Type" "eraser"
Option "Device" "/dev/input/event0"
Option "Mode" "Absolute"
Option "USB" "on"
EndSection
Section "InputDevice"
Identifier "Cursor1"
Driver "wacom"
Option "Type" "cursor"
Option "Device" "/dev/input/event0"
Option "Mode" "Relative"
Option "USB" "on"
EndSection

还要在修改ServerLayout段,手动添加几行,下面看看我XF86Config-4那一段,做个例子:
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Stylus1" "AlwaysCore" #
InputDevice "Eraser1" "AlwaysCore" #这三行就是
InputDevice "Cursor1" "AlwaysCore" #手动添加的
EndSection

存盘退出,使用debian xfree4.1的朋友当然要把我编译的wacom_drv.o抄到 /usr/X11R6/lib/modules/input 。

重新启动Xwin,能动了。运行gimp1.2。
咦?还不能用压力?原来gimp本身也要设置一下:
选菜单 "文件 - 对话框 - 设备状态...",出现了一个对话框,写着 Core Pointer 和当前的设备状态。
现在选菜单 "文件 - 对话框 - 输入设备...",看见什么了?是刚才加进X配置文件的Cursor1,右边有个"模式",现在是"禁止",把它选成"屏幕";另外把Stylus1和Eraser1也选成"屏幕"。别忘了按"保存"。
大功告成。

作者: 北南南北   发布时间: 2002-09-01

wacom就是有压力的手写板,主要是那些画画的人用的。
有人不知道吗?
晕......

作者: abby   发布时间: 2002-09-01

哈哈哈哈哈,自己还真不知道
手写版没用过

作者: sd44   发布时间: 2002-09-01

还真没用过这玩艺.

作者: rotation   发布时间: 2002-09-01

http://www.unixart.org/index1.html

原文很精彩!!!

作者: qing   发布时间: 2003-03-15

汉王手写笔能用吗?
哈哈

作者: charlesbird   发布时间: 2003-03-27

how to make WACOM work with Maya?
my wacom have worked well in the Gimp,with pressure senditivity,and Maya clould also finds it,it seem ok.
however,when i use maya's paint effect,
it has no pressure sensitivity.
who to fix it?

作者: cobranail   发布时间: 2003-08-10

热门下载

更多