歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Ubuntu 8.10下安裝配置友基數位板

Ubuntu 8.10下安裝配置友基數位板

日期:2017/3/2 16:41:37   编辑:Linux服務器
Ubuntu默認已經帶了Wacom的驅動,但不是每個人都用得起大廠的產品。如果你與我一樣囊中帶澀地用著並喜愛著友基這個廣州石牌出品的土品牌,請看此文。

Ubuntu 8.10下安裝配置友基數位板

Step 1 編譯驅動

–下載 wizardpen-0.7.0-alpha1.tar.gz
–解碼並執行: tar -zxvf wizardpen-0.6.0.2.tar.gz
–下載必須的包: sudo aptitude install xutils libx11-dev libxext-dev build-essential xautomation xinput xserver-xorg-dev
–進入解碼出來的目錄: cd wizardpen-0.7.0-alpha1
–編譯安裝驅動: ./configure –with-xorg-module-dir=/usr/lib/xorg/modules && make && sudo make install
–檢查是否安裝成功(看看有沒有 wizardpen_drv.la 和 wizardpen_drv.so兩個文件): ls /usr/lib/xorg/modules/input/wizardpen_drv.*

Step 2 配置數位板
–插好數位板
–找出你的數位板的設備名字: grep -i name /proc/bus/input/devices (比如我的設備就是N: Name=”UC-LOGIC Tablet WP8060U”)

–也可以這樣找: lshal | less
–創建這個文件 /etc/hal/fdi/policy/99-x11-wizardpen.fdi UC-LOGIC Tabliet WP8060-U是我上面找到的的設備名字,請自己替換為自己板子的設備名,下面的配置是8*6 SIZE的配置
<?xml version="1.0" encoding="ISO-8859-1" ?>
<deviceinfo version="0.2">
<device>
<!-- This MUST match with the name of your tablet -->
<match key="info.product" contains="UC-LOGIC Tablet WP8060U">
<merge key="input.x11_driver" type="string">wizardpen</merge>
<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<merge key="input.x11_options.TopX" type="string">126</merge>
<merge key="input.x11_options.TopY" type="string">188</merge>
<merge key="input.x11_options.TopZ" type="string">0</merge>
<merge key="input.x11_options.BottomX" type="string">32666</merge>
<merge key="input.x11_options.BottomY" type="string">32413</merge>
<merge key="input.x11_options.BottomZ" type="string">1023</merge>
<merge key="input.x11_options.MaxX" type="string">32666</merge>
<merge key="input.x11_options.MaxY" type="string">32413</merge>
<merge key="input.x11_options.MaxZ" type="string">1023</merge>
</match>
</device>
</deviceinfo>

–重啟一下,應該可以當mouse使了。

Step 3 開啟GIMP下的畫筆壓感
–Edit-Preferences-Input Devices-Extend Input Devices-Configure Extended Input Devices
&n

bsp; –在Devices中選數位板的設備名,在Mode中選Screen(其實Window也行),在Axes中把X,Y,Pressure分別設成1,2,3
–隨便打開個支持壓感的工具,比如Paintbrush,在Brush Dynamics中的Pressure的那些項選中,再調一下畫筆的Scale和Brush(調大一點比較容易看出效果,我開始時用默認Scale,老畫不出線)
–Enjoy it.
另一個選擇,在虛擬機上用數位板

如果你與我一樣喜歡用VirtualBox和有足夠的內存與CPU資源,可以嘗試下面的方法:

–需要一個VirtualBox,必須是非OSE版本,即非開源版本(Ubuntu源裡的那個肯定是開源的了),如果你還沒有,可以到Sun或VirtualBox的網站下載。
–在VirtualBox下安裝Windows。
–把Setting裡的USB選擇Enable USB Controller開啟。
–在Devices的USB Devices勾選你的數位板。
–像在Windows一樣安裝數位板驅動。
–這些數位板已經可以動了,但指針可能不會跟隨,這時可以在Machine裡選擇Disable Mouse Intergation,把鼠標整合關了。
–打開OpenCanvas,默認有壓感了,Enjoy it。
–在虛擬機使用數位板時,主系統就暫時不能用了。

Copyright © Linux教程網 All Rights Reserved