歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 下友基數位板驅動和配置

Ubuntu 下友基數位板驅動和配置

日期:2017/2/28 14:46:08   编辑:Linux教程

友基的板子的芯片是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"

就進入不了圖形界面了..

...暫時告一段落..

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved