友基的板子的晶片是UC-LOGIC.....我的系統 Ubuntu 13.04 64BIt
第一部分
ubuntu通過軟體源的方法裝數位板驅動
ubuntu 10.04以上
ppa:doctormo/xorg-wizardpen
sudo apt-get update
sudo apt-get install xserver-xorg-input-wizardpen
ubuntu 9.04
deb http://ppa.launchpad.net/doctormo/xorg-wizardpen/ubuntu jaunty main
deb-src http://ppa.launchpad.net/doctormo/xorg-wizardpen/ubuntu jaunty main
sudo apt-get update
sudo apt-get install xserver-xorg-input-wizardpen
ubuntu 通過下載源碼裝數位板驅動的方法(不分ubuntu版本
sudo apt-get install xutils libx11-dev libxext-dev build-essential \
xautomation xinput xserver-xorg-dev xutils-dev libtool \
autoconf
sudo apt-get install bzr
bzr branch lp:wizardpen
cd wizardpen
./autogen.sh
./configure --with-xorg-module-dir=/usr/lib/xorg/modules
make && sudo make install
如果以上沒錯的話.繼續執行以下指令
ls /usr/lib/xorg/modules/input/wizardpen_drv.*
如果有以下資訊的話.就代表數位板源碼編譯安裝成功。
/usr/lib/xorg/modules/input/wizardpen_drv.la
/usr/lib/xorg/modules/input/wizardpen_drv.so
第二部分
其實驅動安裝好了.並不能就立即使用.還要配置好相關的系統的配置才能使用.
ubuntu 9.04
grep -i name /proc/bus/input/devices
你會看到 你的板子的名字.記一下.
sudo gedit /etc/hal/fdi/policy/99-x11-wizardpen.fdi
在其末尾添加一下文本
<?xml version="1.0" encoding="ISO-8859-1" ?>
<deviceinfo version="0.2">
<device>
<!-- This MUST match with the name of your tablet obtained -->
<!-- in Step 2 specified previously -->
<match key="info.product" contains="你的板子的名字">
<merge key="input.x11_driver" type="string">wizardpen</merge>
<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<!-- Modify these configuration accordingly -->
<!-- See CONFIGURATION OPTIONS section for the full-set of -->
<!-- configurable options -->
<merge key="input.x11_options.TopX" type="string">0</merge>
<merge key="input.x11_options.TopY" type="string">0</merge>
<merge key="input.x11_options.BottomX" type="string">2000</merge>
<merge key="input.x11_options.BottomY" type="string">2000</merge>
</match>
</device>
</deviceinfo>
儲存,重啟,就可以使用了.
ubuntu 10.04或更新的版本
我這裡只針對友基的板子去配置ubuntu系統相關檔案
相關知識:Xorg負責管理滑鼠、鍵盤、顯卡、顯示器...
相關知識:ubuntu 9.04 以後Xorg並不需要/etc/X11/xorg.conf 檔案的配置就可以啟動了.在系統啟動的時候.Xorg就可以根據硬體去自動設定最好的設定.但是有時候這個自動設定的的效果不盡人意......如果系統在啟動的時候有這個檔案/etc/X11/xorg.conf 就說明是使用者自己配置的.一切按照這個檔案的配置設定.如果這個檔案配置出錯就進不了圖形介面...這需要在控制台下刪除或者重新命名這個檔案.一般我會重新命名為/etc/X11/xorg.conf.bak. 重啟一下,Xorg會找不到該檔案,從而使用自動設定,就可以進入系統了.
好的.既然Xorg自動設定的效果不好,需要我們配置.
我們需要用到以下指令來產生一個預設配置的 xorg.conf的檔案。
sudo Xorg -configure
這個指令會在我們的home目錄下產生一個 xorg.conf.new
開啟 xorg.conf.new
sudo gedit /home/你的使用者名稱/xorg.conf.new
這時候需要配置我們的輸入裝置.例如的我的是友基-1000L
我們需要在
Section "ServerLayout"
............
EndSection
下面加上我們的數位板的配置.
////////////////////////////////
Section "ServerLayout"
............
EndSection
Section "InputDevice"
Identifier "UGEE-1000L"
Driver "wizardpen"
Option "Protocol" "auto"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/by-id/usb-UC-LOGIC_ugee-1000L-event-mouse"
Option "TopX" "0"
Option "TopY" "200"
Option "BottomX" "2000"
Option "BottomY" "2000"
EndSection
//////////////////////////////////
Identifier "UGEE-1000L" 是我們的數位板的名字
/dev/input/by-id/usb-UC-LOGIC_ugee-1000L-event-mouse 這是什麼來的呢?
通過這個指令 ls /dev/input/by-id/
就會顯示一些輸入裝置的資訊.我需要找的是有 *-event-mouse (不包含if01.if02等等)
最後在 Section "ServerLayout" 裡添加一條語句
Section "ServerLayout"
.......
InputDevice "UGEE-1000L"
EndSection
儲存退出,最後把檔案另存新檔
sudo cp /home/你的使用者名稱/xorg.conf.new /etc/X11/xorg.conf
重啟就可以使用友基1000L了.但是有點不足的地方是.不插上數位板的話.Xorg配置會找不到 "/dev/input/by-id/usb-UC-LOGIC_ugee-1000L-event-mouse"
就進入不了圖形介面了..
...暫時告一段落..