アキバをぶらついて、衝動買いで中古のタブレットPCを購入してしまいました。
実験台は、HP(Compaq)TC4200 です。
ベースを LUPQ-511 + lang_pack_ja-lupq-0.5.pet としました。
1.仮想キーボードは別にメッセージをポストした、xvkbdを利用しました。
viewtopic.php?f=25&t=1898
xvkbd-3.1.pet、libXaw3d.so.8.pet、libXp.so.6.pet を使います。また、起動時のキーボードレイアウトを日本語に設定変更しておきます。
日本語IMEの制御が出来ないことを避ける為に、ウィンドマネジャは icewm-1.3.7pre2-lupq.pet を利用して切り替えておきます。
自動起動させる為にスクリプトを作ります。/root/Startup/zz-xvkbd
コード: 全て選択
#!/bin/sh
/usr/X11/bin/xvkbd &
2.タッチパネルはドライバーの指定とxorg.confへの追記で動作しました。
ドライバーはブートマネージャで wacom_w8001 を指定します。このドライバーはシリアル接続用のものらしく、USB接続の場合は wacom を使うようです。
(2010.11.25 追記)
このPCの場合、ブートマネージャへドライバーの追加指定を行わなくても動作します。不十分なテストですいません。
画面転回を行う為には次のpetを導入しておきます。
xf86-input-wacom-0.10.8.pet http://murga-linux.com/puppy/viewtopic. ... &start=165 のスレッドから拾ってください。xの立ち上がりが早くなります。また、xsetwacomも変更されています。
/etc/X11/xorg.conf は次のようにします。(シリアル接続の場合の例です)
コード: 全て選択
#Special base config file used in Puppy Linux.
# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
Load "synaptics"
# This loads the DBE extension module.
Load "dbe" # Double buffer extension
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# This loads the font modules
# Load "type1"
# Load "freetype"
# This loads xtrap extension, used by xrandr
# Load "xtrap"
# This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable...
Load "glx" #LOADGLX
# This loads dri module (if present). 7.4 loads it by default, have to disable...
Load "dri" #LOADDRI
# Disable "dri"
EndSection
# **********************************************************************
# Files section. This allows default font paths to be set
# **********************************************************************
Section "Files"
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
FontPath "/usr/share/X11/fonts/misc/"
FontPath "/usr/share/X11/fonts/Type1/"
FontPath "/usr/share/X11/fonts/TTF/"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"
# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12). This allows clients to receive these key
# events.
# Option "DontVTSwitch"
# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...
Option "RandR" "on"
# With this, Xorg won't talk to HAL to add evdev devices and you'll be back
# with the old Xorg behavior (pre-7.4)...
Option "AutoAddDevices" "false"
# For no-Hal, kirk also suggests this...
# Option "AllowMouseOpenFail" "true"
# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...
Option "DontZap" "false"
EndSection
#everything past here is auto-generated by Puppy's Xorg Wizard...
Section "ServerLayout"
InputDevice "Synaptics Mouse" "AlwaysCore"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "stylus" "SendCoreEvents" <--- 追記
InputDevice "eraser" "SendCoreEvents" <--- 追記
InputDevice "cursor" "SendCoreEvents" <--- 追記
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp" #xkeymap0
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2" #mouse0protocol
Option "Device" "/dev/mouse"
#Option "Emulate3Buttons"
#Option "Emulate3Timeout" "50"
Option "ZAxisMapping" "4 5" #scrollwheel
EndSection
Section "InputDevice"
Identifier "Synaptics Mouse"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "220"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.10"
Option "MaxSpeed" "0.30"
Option "AccelFactor" "0.0030"
Option "SHMConfig" "on"
#Option "Repeater" "/dev/ps2mouse"
EndSection
Section "InputDevice" <--- 追記
Driver "wacom" <--- 追記
Identifier "stylus" <--- 追記
Option "Device" "/dev/ttyS0" <--- 追記
Option "Type" "stylus" <--- 追記
Option "ForceDevice" "ISDV4" <--- 追記
Option "Button2" "3" <--- 追記
EndSection <--- 追記
Section "InputDevice" <--- 追記
Driver "wacom" <--- 追記
Identifier "eraser" <--- 追記
Option "Device" "/dev/ttyS0" <--- 追記
Option "Type" "eraser" <--- 追記
Option "ForceDevice" "ISDV4" <--- 追記
Option "Button2" "3" <--- 追記
EndSection <--- 追記
Section "InputDevice" <--- 追記
Driver "wacom" <--- 追記
Identifier "cursor" <--- 追記
Option "Device" "/dev/ttyS0" <--- 追記
Option "Type" "cursor" <--- 追記
Option "ForceDevice" "ISDV4" <--- 追記
Option "Button2" "3" <--- 追記
EndSection <--- 追記
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-61
VertRefresh 56-71
#UseModes "Modes0" #monitor0usemodes
Option "PreferredMode" "1024x768"
EndSection
Section "Modes"
Identifier "Modes0"
#modes0modeline0
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "intel" #card0driver
Option "LinearAlloc" "6144"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
#Option "metamodes" "1024x768_60 +0+0" #METAMODES_0
Subsection "Display"
Depth 16
Modes "1024x768"
EndSubsection
EndSection
#PuppyHardwareProfile=Intel_r_915GM_910ML_915MS_Graphics_Chip
/root/my-applications/bin/xrandr-ccw
コード: 全て選択
#!/bin/sh
#270 度の回転 (反時計回り、ポートレート):
xrandr -o left && xsetwacom --set stylus Rotate CCW && xsetwacom --set eraser Rotate CCW
コード: 全て選択
#!/bin/sh
#90 度の回転 (時計回り、ポートレート):
xrandr -o right && xsetwacom --set stylus Rotate CW && xsetwacom --set eraser Rotate CW
コード: 全て選択
#!/bin/sh
#180 度の回転 (ランドスケープ):
xrandr -o inverted && xsetwacom --set stylus Rotate HALF && xsetwacom --set eraser Rotate HALF
コード: 全て選択
#!/bin/sh
#通常の向き (0 度の回転):
xrandr -o normal && xsetwacom --set stylus Rotate NONE && xsetwacom --set eraser Rotate NONE
画面の回転ボタンが生きるとカッコイイですから・・・
本家のフォーラムには、How to set up a Wacom Tablet の書き込みがあって、結構参考になるものがあります。