You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Robert M. M. <rm...@sd...> - 2008-02-26 08:18:50
|
The Macally Icecad is a rebranded Acecad 302 tablet. I was able to get this working using the acecad driver by applying a simple patch to acecad.c in the linux-2.6.24 source. I had to manually unbind the USB device from the usbhid driver using sysfs before modprobing the acecad driver to get this working, but afterward it worked great. I have pressure-sensitive drawing in krita! Any chance this could get included in the main release? Thanks, Prof. Robert Marmorstein Longwood University Here's the diff: --- linux-2.6.24-gentoo-r2/drivers/input/tablet/acecad.c 2008-01-24 17:58:37.000000000 -0500 +++ linux-2.6.24-marmorstein/drivers/input/tablet/acecad.c 2008-02-26 02:03:31.000000000 -0500 @@ -44,8 +44,10 @@ MODULE_LICENSE(DRIVER_LICENSE); #define USB_VENDOR_ID_ACECAD 0x0460 +#define USB_VENDOR_ID_MACALLY 0x2222 #define USB_DEVICE_ID_FLAIR 0x0004 #define USB_DEVICE_ID_302 0x0008 +#define USB_DEVICE_ID_ICECAD 0x2520 struct usb_acecad { char name[128]; @@ -222,6 +224,16 @@ le16_to_cpu(dev->descriptor.idVendor), le16_to_cpu(dev->descriptor.idProduct)); break; + case 2: + input_dev->absmax[ABS_X] = 3000; + input_dev->absmax[ABS_Y] = 2250; + input_dev->absmax[ABS_PRESSURE] = 1024; + if (!strlen(acecad->name)) + snprintf(acecad->name, sizeof(acecad->name), + "USB Macally Icecad Tablet %04x:%04x", + le16_to_cpu(dev->descriptor.idVendor), + le16_to_cpu(dev->descriptor.idProduct)); + break; } input_dev->absfuzz[ABS_X] = 4; @@ -264,6 +276,7 @@ static struct usb_device_id usb_acecad_id_table [] = { { USB_DEVICE(USB_VENDOR_ID_ACECAD, USB_DEVICE_ID_FLAIR), .driver_info = 0 }, { USB_DEVICE(USB_VENDOR_ID_ACECAD, USB_DEVICE_ID_302), .driver_info = 1 }, + { USB_DEVICE(USB_VENDOR_ID_MACALLY, USB_DEVICE_ID_ICECAD), .driver_info = 2 }, { } }; |
From: <rad...@gm...> - 2007-02-07 18:54:52
|
Hello, first, I tried to browse through mail archive but there are only 6 messages left - which seems to be not complete archive. So I am sorry if I repeat a question or something. I have Pentagram QuadPen tablet, which seems to be simply rebranded Acecad Flair Tablet. (Windows drivers comes directly from acecad). I am trying to set up it on gentoo AMD64 box. I was able to make the driver see the tablet but whenever I try to use my stylus, the cursor goes berserk all over the screen, pressing random buttons. Any help would be appreciated. here are some details from my xorg.conf: ------------------------------------------------------------------- Section "InputDevice" Identifier "MyTablet" Driver "acecad" Option "Device" "/dev/input/event2" # Option "Device" "auto-dev" Option "Mode" "Absolute" Option "Model" "Flair" EndSection Section "ServerLayout" Identifier "Simple Layout" Screen "Screen 1" InputDevice "Keyboard1" "CoreKeyboard" InputDevice "Mouse1" "CorePointer" InputDevice "MyTablet" "SendCoreEvents" EndSection -------------------------------------------------------------------- And from X logs: --------------------------------------------------------------------- (II) Acecad Tablet xinput driver v4.00 (**) Acecad Tablet is in absolute mode (**) MyTablet Tablet is using standard button map (**) MyTablet Tablet model is Flair (**) Acecad Tablet reports 85 points/s (**) Option "SendCoreEvents" (**) MyTablet: always reports core events (II) XINPUT: Adding extended input device "MyTablet" (type: TABLET) (II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE) (II) XINPUT: Adding extended input device "Keyboard1" (type: KEYBOARD) xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compatibility { include "complete" }; xkb_symbols { include "pc(pc105)+pl" }; xkb_geometry { include "pc(pc105)" }; (**) Acecad Tablet Increment: 1 (II) Mouse1: ps2EnableDataReporting: succeeded (**) Option "Device" "/dev/input/event2" (EE) Unable to query/initialize Acecad hardware. (**) RADEON(0): RADEONSaveScreen(2) (--) Acecad Tablet MaxX:25869 MaxY:69 ProcXCloseDevice to close or not ? -------------------------------------------------------------------- Thank you in advance, Radek. |
From: Edouard T. <edo...@lo...> - 2007-01-19 07:33:51
|
Fleeky Flanco a =E9crit : > well edouard i did just that .. and the installation on ubuntu was=20 > pretty easy since the kernel was already compiled with acecad support=20 > + synaptic had the drivers for xorg so i simply installed that.. > > otoh i noticed on your page that flair II doesnt seem to be suported ?=20 > or does it ? i have a flair II gt-504 > > /dev/input/event3 did get the garbage when i did cat for it.. i=20 > modified what the howto said a bit .. since there were already wacom=20 > entrys in my xorg.conf i just replaced wherever it said driver with=20 > acecad , and then for the device instead of auto-dev (which returned=20 > errors) i put in /dev/input/event3 .. > > so is the problem that i configured xorg.conf wrong or that flair II=20 > gt-504 tablets are not supported yet? if that is so then is there a=20 > possibility for future support? I do not know the flair II gt-504. Acecad did not send any sample to me := -/ Could you send the result of lsusb or your kernel log, in order to see=20 if the driver did recognize the tablet. You should compile last xorg driver from source available in SVN. Please=20 follow instructions in http://acecad.sourceforge.net/install.html. Please subscribe and post to the mailing list for support request. Regard, Edouard > > > > (**) Option "Device" "/dev/input/event3" > (**) Acecad Tablet report 85 points/s > (EE) Unable to query/initialize AceCad hardware. > (EE) PreInit returned NULL for "stylus" > (**) Option "Device" "/dev/input/event3" > (**) Acecad Tablet report 85 points/s > (EE) Unable to query/initialize AceCad hardware. > (EE) PreInit returned NULL for "cursor" > (**) Option "Device" "auto-dev" > (EE) xf86OpenSerial: Cannot open device auto-dev > No such file or directory. > (EE) AceCad driver unable to open device > (EE) PreInit returned NULL for "eraser" > |
From: Edouard T. <edo...@lo...> - 2006-08-30 12:22:09
|
Hi all. I havn't success making my old acecad flair serial tablet work with that=20 driver since I switched to Linux 2.6... Maybe is it the same problem for=20 A-Series ? Debugging the driver with some log messages, it seems to receive strange=20 data, as if there was errors in parity handling. Some bytes are missing,=20 etc.... I did not took time to go deeper into the problem. Serial tablet=20 user are really rare, and I do not have any A-series. Hope this will help you to track that bug. Regards, Edouard Kevin Page wrote: > On Wed, 2006-08-30 at 07:08 +0200, St=C3=A9phane VOLTZ wrote: > =20 >> the model option is wrong in xorg.conf, it should be "A-Series". This= has a=20 >> direct effect on packet size and certainly would lead to the problem y= ou see. >> =20 > > Hello, > > Yes - I tried both values for "Model", starting with "A-Series" - I get > the same error for both. > > I also tried each of the allowed values of "ReportSpeed". > > I wondered whether the serial port settings were sane: > # setserial -a /dev/ttyS0 > /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4 > Baud_base: 115200, close_delay: 50, divisor: 0 > closing_wait: 3000 > Flags: spd_normal skip_test > > Would I be right to presume that of the following (from Xorg.0.log): > (**) Option "Device" "/dev/ttyS0" > (**) Option "BaudRate" "9600" > (**) Option "StopBits" "1" > (**) Option "DataBits" "8" > (**) Option "Parity" "Odd" > (**) Option "Vmin" "1" > (**) Option "Vtime" "10" > (**) Option "FlowControl" "Xoff" > (**) Option "ReportSpeed" "10" > (**) Acecad Tablet report 10 points/s > (EE) Unable to query/initialize AceCad hardware. > (EE) PreInit returned NULL for "Tablet0" > > All except Device and ReportSpeed (which I explicitly set) are default > values coming from the driver? > > Are they all sensible values? (I just tried setting BaudRate to 115200 > without effect). > > Thanks for your reply, > > Regards, > > kev > > > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Acecad-devel mailing list > Ace...@li... > https://lists.sourceforge.net/lists/listinfo/acecad-devel > =20 |
From: Kevin P. <ace...@kr...> - 2006-08-30 10:19:51
|
On Wed, 2006-08-30 at 07:08 +0200, St=C3=A9phane VOLTZ wrote: > the model option is wrong in xorg.conf, it should be "A-Series". This ha= s a=20 > direct effect on packet size and certainly would lead to the problem you = see. Hello, Yes - I tried both values for "Model", starting with "A-Series" - I get the same error for both. I also tried each of the allowed values of "ReportSpeed". I wondered whether the serial port settings were sane: # setserial -a /dev/ttyS0 /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4 Baud_base: 115200, close_delay: 50, divisor: 0 closing_wait: 3000 Flags: spd_normal skip_test Would I be right to presume that of the following (from Xorg.0.log): (**) Option "Device" "/dev/ttyS0" (**) Option "BaudRate" "9600" (**) Option "StopBits" "1" (**) Option "DataBits" "8" (**) Option "Parity" "Odd" (**) Option "Vmin" "1" (**) Option "Vtime" "10" (**) Option "FlowControl" "Xoff" (**) Option "ReportSpeed" "10" (**) Acecad Tablet report 10 points/s (EE) Unable to query/initialize AceCad hardware. (EE) PreInit returned NULL for "Tablet0" All except Device and ReportSpeed (which I explicitly set) are default values coming from the driver? Are they all sensible values? (I just tried setting BaudRate to 115200 without effect). Thanks for your reply, Regards, kev |
From: Kevin P. <ace...@kr...> - 2006-08-29 16:35:29
|
Hi, I'm using modular xorg on FC5, which includes package xorg-x11-drv-acecad-1.0.0.5-1.2 I have an old serial port based Acecat III, which the acecad driver claims to work with - but it's not working for me. If I cat /dev/ttyS0 I get data when I put the pen to the tablet. Section from my xorg.conf (I've also tried Model A-Series and various values of ReportSpeed): Section "InputDevice" Identifier "Tablet0" 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" "10" # 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 and the error from Xorg.0.log: (**) Option "Device" "/dev/ttyS0" (**) Option "BaudRate" "9600" (**) Option "StopBits" "1" (**) Option "DataBits" "8" (**) Option "Parity" "Odd" (**) Option "Vmin" "1" (**) Option "Vtime" "10" (**) Option "FlowControl" "Xoff" (**) Option "ReportSpeed" "85" (**) Acecad Tablet report 85 points/s (EE) Unable to query/initialize AceCad hardware. (EE) PreInit returned NULL for "Tablet0" Any ideas? Many thanks, kev |
From: Edouard T. <edo...@lo...> - 2006-02-20 07:23:12
|
Hello Arienadean. I also use Gentoo, on AMD64 too. The official xorg driver is outdated.=20 It does not support actual kernel usb driver with grab ioctl. Attached 2 files to the e-mail: x11-base.tbz2 is an archive you have to uncompress in your portage=20 overlay. This contains a modified ebuild for xorg-x11-6.8.2-r6 and=20 latest acecad xinput driver source. This will patch xorg tree before=20 compiling it. xorg.conf is my the xorg.conf I use on my system. It works. How to use: (as root) cd /usr/local/portage (or wherever your overlay is) tar xvfj /path/to/x11-base.tbz2 emerge =3Dx11-base/xorg-x11-6.8.2-r6 Change your xorg.conf as respect to the one attached.. Keep me informed. If it works well, I will release the ebuild on the web=20 site. Edouard Arienadean a =E9crit : >Hello there I found your name searching for info on >this driver. The pen does work under gentoo even >without altering of the xorg.conf. I have installed >the kernel driver for this(as built into the kernel) >and xconfig does offer acecad. However I'm having >problems with the button maping and sensitivity. I >was wondering if you might know what it is that I have >wrong in the xorg.conf. > >The relevant parts of my xorg.conf look like this: > >Section "InputDevice" > > Identifier "stylet" > Driver "acecad" > Option "Device" "/dev/input/event0" > Option "Mode" "Absolute" > Option "Model" "Flair" > Option "ButtonMap" "Acecad" > Option "Increment" "4" > Option "ReportSpeed" "85" ># 0003 for USB, 0460 for ACECAD, 0004 for flair ># Option "InputID" "0003:0460:0004" ># Option "InputID" "0004" > Option "HistorySize" "256" > >EndSection > > >Section "ServerLayout" > > Identifier "Simple Layout" > Screen "Screen 1" > InputDevice "Mouse1" "CorePointer" > InputDevice "Keyboard1" "CoreKeyboard" > InputDevice "stylet" "AlwaysCore" > >EndSection > >So far I have to reboot to windows to make much use of >my tablet. My tablet isn't sold as an acecad however. > It is an E3works 4x5 USB tablet but windows >identified it's driver as acecad. Looking through on >google images it looks a heck of alot like an AceCad >flair. In windows I've configured it so the tip >button has no function, pressing the lower portion of >the side button causes it to draw and pressing the >upper part of the side button causes it to offer the >right click menu. Pressing down with the stylus on >the pad does alter line thickness. However in gentoo >linux pressing on the pad alot causes it to draw, >there is no pressure sensitivity(pressing hard or soft >has same line result), the side button gets me the >right click menu or I think move.(+ with arrows on >it's ends) > >I wasn't aware until reciently about this driver.=20 >It's nice to see it out. One less reason to have to >keep rebooting. Thanks for any help you can offer on >how to fix the behaviour under X. > >- Sue > > >=09 > >=09 > =09 >__________________________________________________________=20 >Find your next car at http://autos.yahoo.ca > > =20 > |
From: <st...@mo...> - 2005-10-04 04:30:02
|
Le Mardi 4 Octobre 2005 00:55, Edouard TISSERANT a =E9crit=A0: > Hi all. > > I've uploaded project into CVS. > > One module (acecad-xinput) and one branch only. > > Imported directly actual acecad CVS Xorg. > > Then commited Carlo, Steph and Fred changes. > > rev acecad.c acecad.h acecad.man > Xorg 1.1 1.1 1.1 > Carlo 1.2 1.2 1.2 > Steph 1.3 1.3 1.3 > Fred 1.4 1.4 1.4 > Fred 1.5 > > Steph please tell me your opinion about putting all acecad stuff on SF ? > (your html pages and archives) > > Regards, > > Edouard > Hello, I think it's the best solution. I'm short on time currently, but I'll star= t=20 moving things this week. Regards, Stef |
From: Edouard T. <edo...@wa...> - 2005-10-03 22:55:42
|
Hi all. I've uploaded project into CVS. One module (acecad-xinput) and one branch only. Imported directly actual acecad CVS Xorg. Then commited Carlo, Steph and Fred changes. rev acecad.c acecad.h acecad.man Xorg 1.1 1.1 1.1 Carlo 1.2 1.2 1.2 Steph 1.3 1.3 1.3 Fred 1.4 1.4 1.4 Fred 1.5 Steph please tell me your opinion about putting all acecad stuff on SF ? (your html pages and archives) Regards, Edouard |
From: Frederic L. <fr...@st...> - 2005-09-24 19:41:11
|
Here is a small patch which add multihead support. The only drawback is that you have to use your mouse to go from a screen to another. It works the same way in Xinerama mode and thus, not properly for application which have a good use of Xinerama like The Gimp. I join the precedent patch, as I forgot to change X_NOT_IMPLEMENTED in X_INFO. Cheers, -- Frederic Leroy Lost in France |
From: Edouard T. <edo...@wa...> - 2005-09-16 13:51:32
|
>>Hotplug tools should be another module. Why not acecad-hotplug ? >> >> >Which hotplug tools ? > > The tools that Stef have wrote. See in his pages. http://perso.numericable.fr/~svoltzstup81/septieme/acecad/hotplugging.html Edouard |
From: Frederic L. <fr...@st...> - 2005-09-16 12:31:08
|
On Fri, 16 Sep 2005 09:52:35 +0000 Edouard TISSERANT <edo...@wa...> wrote: > Merci Fred for the patch. What do you mean about AceCadPrivate structure ? In xorg cvs, the device structure is named 'AceCadPrivate', whereas in Stef work it is named 'AcecadPrivate'. Notice the 'c' of Acecad. > Your patch have also patched my mind about CVS organisation. :) > I will commit xorg's acecad CVS version as HEAD initial commit for > acecad-xinput module. > > Then I'll commit the old acecad-3.1.tgz as second version of HEAD. > Differences between this two versions is carlo's A-series contrib and > button maps. > > Then I'll commit steph's 1.0.6 as third version of HEAD. Lot of changes > IOGrabs, lot of rewrites, new config parameters, hotplug, auto-dev etc... > > I wonder if it is still necessary to make a branch for Fred's changes. > I'll test them before commit. I think another branch isn't necessary as I can rewrite my work to fit our cvs. I'll go by small step so it'll easily reversible and reviewable. > Hotplug tools should be another module. Why not acecad-hotplug ? Which hotplug tools ? If I read correctly this page : http://wiki.x.org/wiki/XInputHotplug We need to fit deviceOn(), deviceOff() and others in deviceControl() to use xadddev, and xrmdev. If i understand correctly, XAddInputDevice() and others call deviceControl. This is still alpha work in xorg. Changing acecad driver to work with these is not a big change nor a big worK. Another cvs branch for hotplug is however good as device hotplug is not yet well defined in xorg. -- Frederic Leroy Lost in France |
From: Edouard T. <edo...@wa...> - 2005-09-16 07:53:52
|
Merci Fred for the patch. What do you mean about AceCadPrivate structure = ? Your patch have also patched my mind about CVS organisation. I will commit xorg's acecad CVS version as HEAD initial commit for acecad-xinput module. Then I'll commit the old acecad-3.1.tgz as second version of HEAD. Differences between this two versions is carlo's A-series contrib and button maps. Then I'll commit steph's 1.0.6 as third version of HEAD. Lot of changes IOGrabs, lot of rewrites, new config parameters, hotplug, auto-dev etc... I wonder if it is still necessary to make a branch for Fred's changes. I'll test them before commit. Hotplug tools should be another module. Why not acecad-hotplug ? Any objections ? Edouard. Frederic Leroy a =E9crit : >This patch adds options to reverse X or Y axis, or swap them. > >It is against Stef 1.0.6 version as I can't live without auto-dev ;) >I didn't touch Stef work.It modifies acecad.{c,h,man}. > >I notice Stef change the name of AceCadPrivate structure, so this patch >can't merge cleanly with the xorg driver. I will continue with the renam= ed >AcecadPrivate structure as it seems good to me. > > =20 > >------------------------------------------------------------------------ > >--- STEF/acecad.man 2004-08-14 07:22:04.000000000 +0200 >+++ acecad/acecad.man 2005-09-12 01:34:39.000000000 +0200 >@@ -66,6 +66,15 @@ > is similar to a standard mouse. Acecad mapping is an identity transform= ation; > if you want the same button mapping as in Xfree86 version 3, use this o= ption. > Default is Standard. >+.TP 4 >+.B Option \fI"InvX"\fP \fI"On"|"Off"\fP >+inverse horizontal axis. Left becomes right and right becomes left. >+.TP 4 >+.B Option \fI"InvY"\fP \fI"On"|"Off"\fP >+inverse vertical axis. Top becomes bottom and bottom becomes top. >+.TP 4 >+.B Option \fI"SwapXY"\fP \fI"On"|"Off"\fP >+swap axis. The horizontal axis becomes the vertical axis and vertical a= xis becomes horizontal axis. Best used with InvY=3DOn in order to rotate = tablet 90=B0 left. > .SH "SEE ALSO" > XFree86(1), XF86Config(__filemansuffix__), xf86config(1), Xserver(1), X= (__miscmansuffix__). > .SH AUTHORS >--- STEF/acecad.h 2005-02-26 21:19:39.000000000 +0100 >+++ acecad/acecad.h 2005-09-12 01:19:47.000000000 +0200 >@@ -63,6 +63,17 @@ > * Definitions > * structs, typedefs, #defines, enums > **********************************************************************= *******/ >+#define swap(x,y) (x^=3Dy,y^=3Dx,x^=3Dy) >+ >+/* driver flags */ >+#define flagSet(container,flag) (container =3D (container & ~(flag)) | = (flag)) >+#define flagUnSet(container,flag) (container =3D (container & ~(flag))) >+#define flagIsSet(container,flag) ((container & (flag)) =3D=3D (flag)) >+#define TABLET_INVX 0x00008 >+#define TABLET_INVY 0x00010 >+#define TABLET_SWAPXY 0x00020 >+ >+/* Tablet hardware relatives */ > #define ACECAD_PACKET_SIZE 7 > #define FLAIR_PACKET_SIZE 7 > #define A_SERIES_PACKET_SIZE 5 >--- STEF/acecad.c 2005-02-26 21:26:18.000000000 +0100 >+++ acecad/acecad.c 2005-09-12 01:52:32.000000000 +0200 >@@ -402,6 +402,35 @@ >=20 > xf86Msg(X_CONFIG, "Acecad Tablet reports %d points/s\n", speed); = =20 >=20 >+ /* >+ * InvX >+ */ >+ if (xf86SetBoolOption(local->options, "InvX", FALSE)) >+ { >+ flagSet(priv->flags, TABLET_INVX); >+ xf86Msg(X_NOT_IMPLEMENTED, "Acecad(%s) InvX : X axis is inversed\n", >+ local->name); >+ } >+ >+ /* InvY */ >+ if (xf86SetBoolOption(local->options, "InvY", FALSE)) >+ { >+ flagSet(priv->flags, TABLET_INVY); >+ xf86Msg(X_NOT_IMPLEMENTED, "Acecad(%s) InvY : Y axis is inversed\n", >+ local->name); >+ } >+ >+ /* SwapXY */ >+ if (xf86SetBoolOption(local->options, "SwapXY", FALSE)) >+ { >+ flagSet(priv->flags, TABLET_SWAPXY); >+ xf86Msg(X_NOT_IMPLEMENTED, "Acecad(%s) SwapXY : X axis swapped with Y= \n", >+ local->name); >+ } >+ >+ /* >+ * standard xorg option >+ */ > xf86ProcessCommonOptions(local, local->options); >=20 > local->flags |=3D XI86_CONFIGURED; >@@ -1065,11 +1094,40 @@ > int *x, > int *y) > { >- AcecadPrivatePtr priv =3D (AcecadPrivatePtr)(local->private); >+ AcecadPrivatePtr priv =3D (AcecadPrivatePtr)(local->private); >+ int MaxX=3Dpriv->acecadMaxX; >+ int MaxY=3Dpriv->acecadMaxY; >+ int screenWidth; >+ int screenHeight; >+ >+ screenWidth=3DscreenInfo.screens[0]->width; >+ screenHeight=3DscreenInfo.screens[0]->height; >=20 >- *x =3D v0 * screenInfo.screens[0]->width / priv->acecadMaxX; >- *y =3D v1 * screenInfo.screens[0]->height / priv->acecadMaxY; >- return TRUE; >+ /* >+ * swap xy >+ */ >+ if ( flagIsSet(priv->flags, TABLET_SWAPXY) ) >+ { >+ swap(v0,v1); >+ swap(MaxX,MaxY); >+ } >+ >+ /* >+ * InvX >+ */ >+ if ( flagIsSet(priv->flags, TABLET_INVX) ) >+ v0 =3D MaxX - v0; >+ >+ /* >+ * InvY >+ */ >+ if ( flagIsSet(priv->flags, TABLET_INVY) ) >+ v1 =3D MaxY - v1; >+ >+ *x =3D v0 * screenInfo.screens[0]->width / MaxX; >+ *y =3D v1 * screenInfo.screens[0]->height / MaxY; >+ >+ return TRUE; > } >=20 >=20 >@@ -1079,12 +1137,39 @@ > int y, > int *valuators) > { >- AcecadPrivatePtr priv =3D (AcecadPrivatePtr)(local->private); >+ AcecadPrivatePtr priv =3D (AcecadPrivatePtr)(local->private); >+ int MaxX=3Dpriv->acecadMaxX; >+ int MaxY=3Dpriv->acecadMaxY; >+ int screenWidth; >+ int screenHeight; >+ >+ screenWidth=3DscreenInfo.screens[0]->width; >+ screenHeight=3DscreenInfo.screens[0]->height; >=20 >- valuators[0] =3D x * priv->acecadMaxX / screenInfo.screens[0]->widt= h; >- valuators[1] =3D y * priv->acecadMaxY / screenInfo.screens[0]->heig= ht; >+ /* >+ * swap xy >+ */ >+ if ( flagIsSet(priv->flags, TABLET_SWAPXY) ) >+ { >+ swap(x,y); >+ swap(MaxX,MaxY); >+ } >+ >+ /* >+ * InvX >+ */ >+ if ( flagIsSet(priv->flags, TABLET_INVX) ) >+ x =3D screenWidth - x; >+ >+ /* >+ * InvY >+ */ >+ if ( flagIsSet(priv->flags, TABLET_INVY) ) >+ y =3D screenHeight - y; >=20 >- return TRUE; >+ valuators[0] =3D x * MaxX / screenWidth; >+ valuators[1] =3D y * MaxY / screenHeight; >+ return TRUE; > } >=20 >=20 > =20 > |
From: Frederic L. <fr...@st...> - 2005-09-14 19:35:52
|
This patch adds options to reverse X or Y axis, or swap them. It is against Stef 1.0.6 version as I can't live without auto-dev ;) I didn't touch Stef work.It modifies acecad.{c,h,man}. I notice Stef change the name of AceCadPrivate structure, so this patch can't merge cleanly with the xorg driver. I will continue with the renamed AcecadPrivate structure as it seems good to me. -- Frederic Leroy Lost in France |
From: Frederic L. <fr...@st...> - 2005-09-11 11:14:18
|
On Sun, 11 Sep 2005 12:07:51 +0000 Edouard TISSERANT <edo...@wa...> wrote: > Hi. > > Personnaly, I see 2 modules: current xfree driver and the one > > modified by > >Frederic. Optionally, we could have the regular xorg driver with patches, > >so that we could try to submit them to X.org. > 2 modules ? Couldn't we do that with branches ? > I would commit official xorg acecad.c .h .man as the HEAD branch. > Stef current version would be STEF branch > Fred work vould be FRED branch > What we want is only ONE branch, HEAD ! We have to merge all that stuff > and provide one unique version to Xorg isn't it ? Yes, Stephane works on usb-setup and hotplug, me on more driver option and multiple screen support. > Kernel driver will figure later in CVS, when we will make him evoluate. > This will be second module. It seems good. Maybe /sys support in order to choose which is right and middle button ? > Merging and generating a patch for Xorg staff would be clearly eased if > Fred was not changing everything in syntax, but it seems to late now... > Fred, are you sure this is not possible to publish modifications instead > of a total rewrite ? I can step backward and split my work into patchs. Should I make these patch against current xorg version or steph 1.0.6 version ? Xorg I think I plan to make 4 patchs, the last 3 depending on the first : - Use of driver->flags bits for ACECAD_USB, ACECAD_HOTPLUG, ACECAD ABSOLUTE, INVX, INVY ... do you agree ? - Option INVX, INVY, SWAPXY - Option Bordersize which reduce area of tablet in order to reach screen border - Multiple Head and Xinerama support > > Shall we start using the newly opened list ? Got registered to it. > Yes. You may have received this post 2 times, isn't-it ? This mean that > acecad-devel works ! I didn't yet receive this one through acecad-devel, but lets start using it. regards, -- Frederic Leroy Lost in France |