Linux平台wacom產品使用指南

來源:互聯網
上載者:User

CintiQ 21UX相信是眾多CG設計者夢寐以求的設計工具,在業界甚至流傳這樣一句話:“不認識wacom的設計師不是好設計師”。如果得知駭客帝國、泰坦尼克號等經典巨作都是使用unix-like系統來製作的,相信各位朋友會很情願自己的wacom產品可以在Linux上使用自如。
而來自sourceforge的Linux Wacom Project正是致力於開發Linux下的wacom產品驅動。

首頁:http://linuxwacom.sourceforge.net/
本文的部分內容來自http://linuxwacom.sourceforge.net/index.php/howto/howto
如果在安裝驅動時遇到任何問題,強烈推薦翻閱該HOWTO。

在Linux Wacom Project裡有兩個驅動:wacom.o和wacom_drv.o。第一個驅動是USB核心驅動,第二個驅動是xFree86(或xorg)的wacom驅動。串口裝置的使用者只需要關注第二個驅動,而USB裝置的使用者則需要這兩個驅動。(There are two drivers in the Linux Wacom Project- wacom.o and wacom_drv.o. The first driver is the USB kernel driver. The second driver is the XFree86 Wacom driver. Serial users need only be concerned with the wacom_drv.o driver. USB users need both.)

如果使用者使用的Linux沒有官方提供的linuxwacom安裝包,那麼需要手動編譯linuxwacom驅動。驅動的原始碼可以在http://linuxwacom.sourceforge.net/找到。

首先,如果XF86Config/XF86Config-4或者xorg.conf已經有與wacom相關的行,應該注釋或者刪除它們。完成相關操作後,請重新啟動X。
(First, if you have Wacom related lines in your XF86Config/XF86Config-4 or xorg.conf files already, you should comment them out or remove them. When that's done, restart X.)

注意:如果系統使用的是2.4核心,而沒有任何需求非要使用2.4核心,升級核心到2.6.8或者更新的版本可以省略升級wacom核心相關模組的步驟。如果使用2.6的FC3或者Mandriva,在配置linuxwacom之前需要在核心原始碼目錄配置wacom和hid相關模組。(Note: If your system is running a 2.4 kernel and you don't have any application required to run on kernel 2.4, upgrading your kernel to version 2.6 (preferablely 2.6.8 or later) may save you the steps to update wacom kernel related modules.If you are running on FC3 or Mandriva for kernel 2.6, you need to configure the kernel modules (wacom and hid) under your kernel source directory before configuring linuxwacom.)

編譯核心模組,需要在系統中安裝核心原始碼。如果使用的是Redhat或者Mandriva,可以安裝名稱為kernel-source的RPM包。(In order to build kernel modules, you will need the kernel source installed on your system. If you are running on Redhat or Mandriva, you can get it by installing the kernel-source RPM.)

如果遇到任何核心不能識別wacom產品的問題,可以嘗試使用linuxwacom原始碼src目錄下的相關檔案替換核心檔案,重新編譯並安裝核心。

可以使用以下命令檢查核心是否正確控制wacom裝置。
more /proc/bus/usb/devices
more /proc/bus/input/devices

特別注意,如果顯示wacom裝置的driver=usbhid或者driver=(none)而不是driver=wacom,官方推薦使用linuxwacom原始碼src目錄下的相關核心目錄裡的hid-core.c替換核心原始碼裡的hid-core.c。

當核心方面的問題解決後,可以開始編譯並安裝linuxwacom的原始碼,這與安裝linux下一般的原始碼無異,這裡就不敷述了。之後可以使用linuxwacom預設安裝的wacdump工具測試wacom產品在核心驅動方面的工作,即使核心沒有正確識wacom產品,也可以先編譯這個工具來測試以協助發現問題。

之後正確配置一下XF86Config/XF86Config-4或者xorg.conf,重新啟動,就可以使用wacom產品了。
具體配置可查看以下連結。
http://linuxwacom.sourceforge.net/index.php/howto/inputdev
http://linuxwacom.sourceforge.net/index.php/howto/srvlayout

特別注意,Option "Device" "*"中的"*"在不同的條件下是不同的,使用more /proc/bus/input/devices命令,Handlers=一項將會顯示/dev/input下哪個裝置屬於數位板。

在gimp的檔案-喜好設定-輸入裝置-擴充輸入裝置中,有stylus、eraser、cursor(各人的命名可能不同)等裝置的設定選項,可以按個人喜好進行設定。

下面提一下和X驅動相關的測試載入器:xidump。這個工具也是linuxwacom預設安裝的。

自從xidump使用和gimp還有gsumi一樣的XInput介面來接收數位板資料,在xidump裡顯示的值和gimp還有gsumi接收到的是一樣的。如果在gimp裡有與壓感有關的問題,xidump裡應該也會顯示相同的問題,xidump不需要root許可權。(Since xidump uses the same XInput interface that gimp and gsumi use to get tablet data, the values displayed in xidump should be identical to what they are receiving. If you are having trouble with pressure in gimp, chances are that xidump will demonstrate the same problem. xidump does not require root access to use.)

wacomcpl是wacom裝置的參數設定工具。

最後再提一遍,如果在使用上有任何問題,使用man或看HOWTO是非常推薦的行為。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.