Driver for Acecad "Acecat Flair" (serial and USB models) and A-Series models Version 3.0 ************************************* Introduction: * ************************************* This file explain you how to build driver and how to configure your system in case of Serial or USB acecat flair or A-Series tablet. Xfree code should now be integrated acecad driver. Xfree CVS at 08/02/02 include version 2.0 (without A-series support). ************************************* How to build from sources : * ************************************* PREPARE YOUR ENVIRONEMENT ------------------------ - Make a special directory $ mkdir my_dir - Unpack acecad_3.0.tgz with $ cd my_dir $ tar xvfz acecad_3.0.tgz XFREE DRIVER MODULE --------------------- If you have already built X from an Xfree tree which is still present on your system, go to step 6. If not, start from step 1. 1) Download Xfree 4.x source (exemple for 4.1.0, make sure to download the same version yo are running) $ ncftpget ftp://ftp.xfree86.org/pub/XFree86/4.1.0/source/X410src-1.tgz 2) and unpack them in the directory. $ tar xvfz X410src-1.tgz 3) Replace content of acecad driver in Xfree tree by content of xfree_driver $ rm -rf xc/programs/Xserver/hw/xfree86/input/acecad/* $ cp acecad_src/* [your_dir]/xc/programs/Xserver/hw/xfree86/input/acecad 4) Optionally, edit xc/config/cf/host.def and add "acecad" in the #define XInputDrivers directive. This will make step 6 unnecessary 5) Build Xfree (this should be very long (1-2 hours) and finish without any errors) $ cd xc $ make World 6) If you have not followed instructions in step 4, or you have already built X from an Xfree tree still present on your system, build Acecad Driver: $ cd programs/Xserver/hw/xfree86/input/acecad $ xmkmf ../../../../../../ $ make Note: xmkmf will build the Makefile from Imakefile. A Makefile is already included; depending on your configuration, however, the generated Makefile might be different from the included Makefile 7) Copy the driver in your Xfree input driver modules directory (as root !!) $ su $ cp acecad_drv.o /usr/X11R6/lib/modules/input/ KERNEL DRIVER MODULE -------------------- This is needed only if you have the USB interface. -Make sure that thart curently running kernel source are installed (rpm package or tgz original source) $ rpm -qa |grep -i kernel kernel-source-2.4.3-20mdk <-- this mean you have kernel source installed ... -Build directly in the kernel_driver directory $ cd kernel_driver $ /usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DMODULE -c -o acecad.o acecad.c - Copy the module in the kernel USB drivers modules directory $ cp acecad.o /lib/modules/`uname -r`/kernel/drivers/usb/ patch your /etc/X11/XF86Config-4 ************************************* How to configure your systeme * ************************************* This have been tested on a Linux Mandrake 8.0 with Xfree 4.1.0 an kernel 2.4.3-20mdk SERIAL TABLET CONFIG: -------------------- 1) Be root. 2) Copy acecad_drv.o in /usr/X11R6/lib/modules/input/ 3) Edit XF86Congif-4: [...] Section "ServerLayout" [...] InputDevice "stylet" "AlwaysCore" EndSection [...] Section "InputDevice" Identifier "stylet" Driver "acecad" # Absolute or Relative (I don't have test Relative yet) Option "Mode" "Absolute" # Model can be Flair or A-Series Option "Model" "Flair" # You can choose report speed between 2, 10, 85 and 120 report/second. # 120 is very fine but need a lot of CPU. Option "ReportSpeed" "120" # This lets you choose how the buttons are mapped. Only tested for # A-Series model. Choices are Standard or Acecad Option "ButtonMap" "Acecad" # Choose your port Option "Device" "/dev/ttyS0" EndSection [...] 4) Be carefull : maybe it will crash your X server... So, if it start automaticaly at boot time, edit tour /etc/inittab and comment the last line : [...] # Run xdm in runlevel 5 # xdm is now a separate service # x:5:respawn:/etc/X11/prefdm -nodaemon 5) Restart your X server: init 4 (now X should be down, log as root again) init 5 (if you skip (4) X should start now) startx 6) if it works, uncomment the last line in inittab to get X back at boot time. USB TABLET CONFIG: -------------- 1) Be root. 2) Copy acecad_drv.o in /usr/X11R6/lib/modules/input/ 3) Copy acecad.o in /lib/modules/[kernel ver]/kernel/drivers/usb/ 4) insmod acecad (maybe after a "rmmod usbmouse") insmod evdev 6) Edit XF86Congif-4: [...] Section "ServerLayout" [...] InputDevice "stylet" "AlwaysCore" EndSection [...] Section "InputDevice" Identifier "stylet" Driver "acecad" Option "Device" "/dev/input/event0" EndSection [...] 4) Be carefull : maybe it will crash your X server... So, if it start automaticaly at boot time, edit tour /etc/inittab and comment the last line : [...] # Run xdm in runlevel 5 # xdm is now a separate service # x:5:respawn:/etc/X11/prefdm -nodaemon 7) Restart your X server, by hand: init 4 (now X should be down, log as root again) init 5 (if you skip (4) X should start now) startx 6) if it works, uncomment the last line in inittab and prepare your system to load usb modules correctly every boot time. - Edit /etc/usb/default.conf and add before the first line: vendor 0x0460 prio 3 kmod acecad [...] - Edit /etc/modules.conf and add before the first line: pre-install acecad modprobe evdev [...] That's all ! Have Fun, Edouard edouard.tisserant@wanadoo.fr ======== Note: for A-Series related requests or bugs, contact Carlo Vittoli