Compaq-HP TC1100
CAUTION: These are my own personal notes, so, expect to do some work because some of the code is broken.
Files needed:
xorg.conf
NOTE: Possibly broken, back up the existing xorg.conf. Try this first, it works when added to a unbroken xorg.conf: xorg-addon and then do some trial and error.
#/etc/X11/xorg.conf
# Modified by: SU_PyRoW
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
EndSection
Section "ServerLayout"
Identifier "Safe"
Screen 0 "ScreenSafe" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
EndSection
Section "ServerLayout"
Identifier "Rotated"
Screen 0 "Rotatedscreen" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "cursorCCW" "SendCoreEvents"
InputDevice "stylusCCW" "SendCoreEvents"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/ttyS1"
Option "Type" "cursor"
Option "Mode" "absolute"
Option "ForceDevice" "ISDV4"
Option "ButtonsOnly" "on"
Option "Button2" "3"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/ttyS1"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "ForceDevice" "ISDV4"
Option "PressCurve" "0,0,100,100"
Option "ButtonsOnly" "on"
Option "Button2" "3"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursorCCW"
Option "Device" "/dev/ttyS1"
Option "Type" "cursor"
Option "Mode" "absolute"
Option "ForceDevice" "ISDV4"
Option "Rotate" "CCW"
Option "TopX" "5260"
Option "TopY" "0"
Option "BottomX" "21240"
Option "BottomY" "21240"
Option "ButtonsOnly" "on"
Option "Button2" "3"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylusCCW"
Option "Device" "/dev/ttyS1"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "ForceDevice" "ISDV4"
Option "Rotate" "CCW"
Option "TopX" "5260"
Option "TopY" "0"
Option "BottomX" "21240"
Option "BottomY" "21240"
Option "ButtonsOnly" "on"
Option "Button2" "3"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1024x768"
HorizSync 31.5 - 48.5
VertRefresh 60.0 - 60.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
EndSection
Section "Device"
Identifier "nv"
Driver "nv"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
EndSection
Section "Device"
Identifier "Rotatednv"
Driver "nv"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
Option "Rotate" "CCW"
Option "RandRRotation" "on"
Option "NvAGP" "1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "ScreenSafe"
Device "nv"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Rotatedscreen"
Device "Rotatednv"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
ADDON
This works
OR add this to xorg.conf (Pay attention to the Sections.) just to simplify and see if wacom is working before you work on rotation
Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "stylus" "SendCoreEvents" InputDevice "pad" "SendCoreEvents" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "stylus" Driver "wacom" Option "Device" "/dev/ttyS1" Option "Type" "stylus" Option "PressCurve" "0,0,100,100" EndSection Section "InputDevice" Identifier "pad" Driver "wacom" Option "Device" "/dev/ttyS1" Option "Type" "pad" Option "ButtonsOnly" "on" Option "Button2" "3" EndSection
wacom
This works
> tar cjf linuxwacom-0.8.1-6.tar.bz2 > cd linuxwacom-0.8.1-6 > ./configure --enable-wacom --enable-wacomdrv NOTE: the configuration list at the bottom should say "wacom" and "wacomdrv" are included. > make > make install > modprobe wacom
Key mapping to "Q" button
xbindkeys, khotkeys and this script is needed for rotation to work
Needs some work
#!/bin/sh
#/sbin/rotate
position=`xrandr --query | grep "Current Position" | awk '{print $4}'`
if [ "$position" = "normal" ]; then
xrandr -o left
xsetwacom set stylus Rotate CCW
else
xrandr -o normal
xsetwacom set stylus Rotate none
fi
exit 0
if that doesnt work
#!/bin/sh
#/sbin/rotate2
if [ -n "$(xrandr | grep 768x1024)" ]; then
xrandr -o normal
xsetwacom set "stylus" Rotate NONE
else
xrandr -o left
xsetwacom set "stylus" Rotate CCW
fi
exit 0
PID
Known problem when starting from a bad restart when using Slax with the "changes=/slax" cheatcode.
Add this to /etc/rc.d/rc.6 BEFORE the filesystems are umounted
echo "Removing pid files from /var/run/dbus" /bin/rm /var/run/dbus/*pid
Add the same thing to the bottom of /etc/rc.d/rc.local, if it doesnt exist add it to /etc/rc.d/rc.4
echo "Removing pid files from /var/run/dbus" /bin/rm /var/run/dbus/*pid

