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"
    Driver        "wacom"
    Identifier    "Waccursor"
    Option        "Device"        "/dev/ttyS0"
    Option        "Mode"          "Absolute"
    Option        "Type"          "cursor"
  EndSection
  Section "InputDevice"
    Driver        "wacom"
    Identifier    "Wacstylus"
    Option        "Device"        "/dev/ttyS0"
    Option        "Type"          "stylus"
  EndSection
  Section "InputDevice"
    Driver        "wacom"
    Identifier    "Waceraser"
    Option        "Device"        "/dev/ttyS0"
    Option        "Type"          "eraser"
  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