Please ignore/delete previous post - thanks

Correction to previous post - sorry, I was logged into
two machines and grabbed the wrong xorg.conf - this
post contains the one I'm using on my Toshiba. Note that

Option "ForceDevice" "ISDV4"

is very important - the TopX, TopY, BottomX, and BottomY
are probably not needed - They were a hangover from trying
to use the Mandriva-supplied driver - which had the symptoms
mentioned below - I've left these settings in in case they are
of any use to someone else.

Greetings,

This is for Mandriva 2006 - kernel 2.6.12 Toshiba R15 tablet.

first of all, added the following to /etc/X11/xorg.conf

Section "InputDevice"
    Identifier "cursor"
    Driver "wacom"
    Option "Device" "/dev/ttyS0"
    Option "Type" "cursor"
    Option "Mode" "absolute"
    Option "Tilt" "on"
    # Option        "Speed"         "3.0"
    Option "TopX" "0"
    Option "KeepShape" "on"
    Option "BottomY" "768"
    #Option "DebugLevel" "10"
    Option "ForceDevice" "ISDV4"
    Option "TopY" "0"
    Option "BottomX" "1024"
    Option "Threshold" "2"
EndSection
Section "InputDevice"
    Identifier "stylus"
    Driver "wacom"
    Option "Device" "/dev/ttyS0"
    Option "Type" "stylus"
    Option "Mode" "absolute"
    Option "Tilt" "on"
    Option "TopX" "0"
    Option "KeepShape" "on"
    Option "BottomY" "768"
    #Option "DebugLevel" "10"
    #Option "TiltInvert" "on"
    Option "ForceDevice" "ISDV4"
    Option "TopY" "0"
    Option "BottomX" "1024"
    Option "Threshold" "2"
EndSection
Section "InputDevice"
    Identifier "eraser"
    Driver "wacom"
    Option "Device" "/dev/ttyS0"
    Option "Type" "eraser"
    Option "Mode" "absolute"
    Option "Tilt" "on"
    Option "TopX" "0"
    Option "KeepShape" "on"
    Option "BottomY" "768"
    #Option "DebugLevel" "10"
    #Option "TiltInvert" "on"
    Option "ForceDevice" "ISDV4"
    Option "TopY" "0"
    Option "BottomX" "1024"
    Option "Threshold" "2"
EndSection

then, after some digging, I found the following setserial line worked:

/bin/setserial /dev/ttyS0 port 0x338 autoconfig

And I had pen motion - Yay!

But all was not well. It seems with the Mandriva-supplied wacom_drv.so
that the x and y are multiplied by 2 (or about) so that when the pen
is in the middle of the screen, the cursor is at the bottom right corner.

Yuck. I downloaded the package from LinuxWacom,

and renamed the Mandriva driver as follows:
/usr/X11R6/lib/modules/input/wacom_drv.so.ORIGINAL

then moved the LinuxWacom version of the driver to
/usr/X11R6/lib/modules/input/

Success. Now to get it working from boot.

The LinuxWacom Howto suggests putting the setserial line in:
/etc/rc.d/rc.local

This only sort of works - on Mandriva, if you are using the graphical
login, X, and the login are already running by the time /etc/rc.d/rc.local
runs. Not a big problem, but an annoyance - you have to remember to
restart X at the login screen, or X won't pick up on your pen port.

Here's what's better:

Since Mandriva seems to want to stick all the rc stuff in /etc/rc.d
(or, for some scripts, /etc/init.d) and symlink from there, and, since the
/etc/rc.sysinit, which is symlinked to /etc/rc.d/rc.sysinit has the
following code in it:

# Initialize the serial ports.
if [ -f /etc/rc.serial ]; then
     . /etc/rc.serial
fi

what I did was:

echo '/bin/setserial /dev/ttyS0 port 0x338 autoconfig' >
/etc/rc.d/rc.serial
note: maybe to do this the "Mandriva Way" I should have put this in
/etc/init.d ?...

chmod 755 /etc/rc.d/rc.serial
ln -s /etc/rc.d/rc.serial /etc/rc.serial

then I removed the setserial line I had put in /etc/rc.d/rc.local
(although it probably did no harm, I just like to clean up)

The pen now works on the screen without having to restart the
X-server at the login prompt. Ta-da.

Now, if Mandriva would only quit blowing away the LinuxWacom
driver with their own broken one every time there's an X upgrade...
grrrr.

Cheers,

Chris



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Linuxwacom-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

Reply via email to