Ubuntu 下友基数位板驱动和配置


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

就进入不了图形界面了..

...暂时告一段落..

相关内容

    暂无相关文章