歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 8.04如何安裝WACOM驅動

Ubuntu 8.04如何安裝WACOM驅動

日期:2017/2/28 16:55:12   编辑:Linux教程

Windows不能給我們帶來什麼,除了開QQ和網銀。

WACOM 到目前為止還沒有在光盤或網絡上提供正式的WACOM數位板驅動程序,平時在WINDOWS下用PS+BAMBOO 作圖,到LINUX下 自然要換成 GIMP+BAMBOO,如何安裝WACOM的驅動,今天終於在參照Ubuntu Community 安裝成功:

HOWTO: Wacom in 8.04

實際上根據步驟來,基本上不需要這些我的這些翻譯提示

根據以下步驟安裝配置

保證時間充足,你可能需要保存這篇文章,應為在安裝過程中計算機可能會重啟,如果出現錯誤,參看文章末尾的 troubleshooting section
插入你的tablet打開終端,按如下步驟輸入代碼並按下確認鍵,如果被要求輸入密碼,當然,輸入它並按下確定。
lsusb | grep -i wacom 我得到 "056a:0017"的結果,開始是 "056a"
mkdir wacom
cd wacom
sudo apt-get update
sudo apt-get install linux-headers-`uname -r` build-essential x11proto-core-dev libxau-dev libxdmcp-dev x11proto-input-dev x11proto-kb-dev xtrans-dev libx11-dev x11proto-xext-dev libxext-dev libxi-dev linux-libc-dev libc6-dev libncurses5-dev xserver-xorg-dev tk-dev tcl-dev -y
wget http://prdownloads.sourceforge.net/linuxwacom/linuxwacom-0.8.0-3.tar.bz2
tar xjf linuxwacom-0.8.0-3.tar.bz2
cd linuxwacom-0.8.0-3 也有說是0.8.0,實際上我測試了一下,已經沒有0.8.0這個版本了,所以我根據The Linux wacom project 裡面的版本改成了0.8.0-3
sudo ln -s /usr/include/pixman-1/pixman.h /usr/include/pixman.h
sudo ln -s /usr/include/pixman-1/pixman-version.h /usr/include/pixman-version.h

./configure --enable-wacom
make
sudo make install
cd ..
cp /etc/X11/xorg.conf .
gksudo gedit /etc/X11/xorg.conf
將下面的文本行寫進開頭部分,確認他們被安置在"Synaptics Touchpad" Section 之前 Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "pad"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
EndSection

找到下面section ,他們大約在文件末尾處
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
Inputdevice "Synaptics Touchpad"
EndSection
在找到的地方inputdevice後面繼續添加下面的代碼行
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "pad"
保存(CTRL+S)關閉(CTRL+Q)
cp /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko wacom.ko.`uname -r`
sudo cp linuxwacom-0.8.0-3/src/2.6.24/wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko
返回可能會報錯,記錄下來提示,如果最後TABLET不能工作,再把錯誤反饋給我(或者其他人)這樣大家便能幫助你了
sudo depmod -e
cd linuxwacom-0.8.0-3/prebuilt
sudo ./uninstall
sudo ./install
wget 'http://git.debian.org/?p=users/ron/wacom-tools.git;a=blob_plain;f=debian/xserver-xorg-input-wacom.udev;hb=master' -O wacom.udev
cp /etc/udev/rules.d/50-xserver-xorg-input-wacom.rules wacom.udev.backup
sudo cp wacom.udev /etc/udev/rules.d/50-xserver-xorg-input-wacom.rules
sudo apt-get remove wacom-tools xserver-xorg-input-wacom -y
sudo apt-get install wacom-tools xserver-xorg-input-wacom -y
sudo ./uninstall
cd ..
sudo make install

重新啟動計算機
這個時候,我的tablet開始工作了,如果你還沒有,記錄下問題,看看後面的trubleshooting
Troubleshooting

1.問題:第一次重新啟動後x.org不工作了
解決:
1.重新啟動一次,你可以按住你的電源鍵不動或試下Ctrl+Alt+Delete.
2. 當出現"GRUB Loading... Please Wait" 按Esc
3. 重啟動進入 "Recovery mode"模式,一般系統啟動時候第2個選項
4. 如果啟動信息停在那裡了,輸入下面命令,在任意行按下確認鍵, 記住修改 "USERNAME" 為你自己的用戶名. 要是你不記得了,看第2個問題吧

cp /etc/X11/xorg.conf /etc/X11/xorg.conf.wacom_modified
cp /home/USERNAME/wacom/xorg.conf /etc/X11/xorg.conf
重啟

2.問題: 你不記得你的用戶名了 ....
解決: 運行下面的代碼,可能你會重新得到
Code:
cat /etc/passwd | grep "/home" | cut -d: -f1


完畢,希望給需要GIMP+WACOM工作的藝術工作者們帶來一些幫助。

Copyright © Linux教程網 All Rights Reserved