On Mon, Jan 2, 2012 at 4:10 AM, Mike Rolland <none...@gmail.com> wrote:
> Missing 2, 3 things:
> first (this for Favux), ASUSTek is the origanal name of ASUS.

Okay, and since hid-ids.h is using:
#define USB_VENDOR_ID_ASUSTEK           0x0b05

> ### hid-core.c diff :
>
> Index: drivers/hid/hid-core.c
> ===================================================================
> --- drivers/hid/hid-core.c
> +++ drivers/hid/hid-core.c 2011-12-31 18:38:54.749353151 +0400
> @@ -1908,6 +1908,7 @@
> { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS)
> },
> { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY)
> },
> { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY)
> },
> + { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, 0x179f) },
> { }
> };

I also have:
+       { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, 0x179F) },
in hid-core.c's hid_ignore_list.  I've been trying to follow along
with the code changes in preparation to making patches.

> something else, ASUS EeeNote specs relate this :
> DisplaySize: 8", 3:4
> Resolution: XGA, 768x1024, 64 grayscale
> Hardness: 3H, designed for pen
> Anti-GlareTouch ScreenTouch pen: 256 levels pressure to express different
> words weight
> Resolution: 0.01mm (2540dpi)
> Accuracy: ±0.4mm with pen vertical / ±3mm with pen tilt 50 degree

The LCD and the digitizer are two separate devices sandwiched/layered
together.  So the pixel dimension of the LCD is independent of the
digitizer's dimensions.

> So in wacom_wac.c, I made this change for RES :
>
>
> Index: drivers/input/tablet/wacom_wac.c
> ===================================================================
> --- drivers/input/tablet/wacom_wac.c
> +++ drivers/input/tablet/wacom_wac.c 2012-01-02 13:42:47.069127035 +0400
> @@ -1501,7 +1501,10 @@
> { "Wacom Bamboo 2FG 6x8 SE", WACOM_PKGLEN_BBFUN,  21648, 13530, 1023,
>   63, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>
> static const struct wacom_features wacom_features_0x6004 =
> - { "ISD-V4",               WACOM_PKGLEN_GRAPHIRE,  12800,  8000,  255,
> + { "ISD-V4-Lenovo Digitizer", WACOM_PKGLEN_GRAPHIRE,  12800,  8000,  255,
>
> +   0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
> +static const struct wacom_features wacom_features_0x179F =
> + { "ISD-V4-ASUSTek Digitizer", WACOM_PKGLEN_GRAPHIRE,  10240,  7680,  255,
>   0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>
> #define USB_DEVICE_WACOM(prod) \
>
> @@ -1517,6 +1520,10 @@
> USB_DEVICE(USB_VENDOR_ID_LENOVO, prod), \
> .driver_info = (kernel_ulong_t)&wacom_features_##prod
>
> +#define USB_DEVICE_ASUSTEK(prod) \
> + USB_DEVICE(USB_VENDOR_ID_ASUSTEK, prod), \
> + .driver_info = (kernel_ulong_t)&wacom_features_##prod
> +
> const struct usb_device_id wacom_ids[] = {
> { USB_DEVICE_WACOM(0x00) },
> { USB_DEVICE_WACOM(0x10) },
> @@ -1607,6 +1614,7 @@
> { USB_DEVICE_WACOM(0xE6) },
> { USB_DEVICE_WACOM(0x47) },
> { USB_DEVICE_LENOVO(0x6004) },
> + { USB_DEVICE_ASUSTEK(0x179F) },
> { }
> };
> MODULE_DEVICE_TABLE(usb, wacom_ids);

Again from your...
### lsusb with module unload :

[root@hpm mike]# lsusb -vvv -d 0b05:179f

Bus 002 Device 008: ID 0b05:179f ASUSTek Computer, Inc.
....
                            Direction-X
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Push, data=none
            Item(Global): Unit Exponent, data= [ 0x0d ] 13
                            Unit Exponent: 13
            Item(Global): Unit, data= [ 0x33 ] 51
                            System: English Linear, Unit: Inch^3
            Item(Global): Physical Minimum, data= [ 0x00 ] 0
            Item(Global): Physical Maximum, data= [ 0x58 0x19 ] 6488
            Item(Global): Logical Maximum, data= [ 0x60 0x40 ] 16480
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position
Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x31 ] 49
                            Direction-Y
            Item(Global): Physical Maximum, data= [ 0x15 0x13 ] 4885
            Item(Global): Logical Maximum, data= [ 0x7a 0x30 ] 12410
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position
Non_Volatile Bitfield
            Item(Global): Pop, data=none
            Item(Global): Usage Page, data= [ 0x0d ] 13
                            Digitizer
            Item(Local ): Usage, data= [ 0x30 ] 48
                            Tip Pressure
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255

We're being told:
X:            Item(Global): Logical Maximum, data= [ 0x60 0x40 ] 16480
Y:            Item(Global): Logical Maximum, data= [ 0x7a 0x30 ] 12410
Z or Pressure:            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255

Which is how I came up with:
+static const struct wacom_features wacom_features_0x179F =
+       { "ASUSTek Wacom ISDv4 179F", WACOM_PKGLEN_GRAPHIRE, 16480,  12410,  
255,
+         0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };

If I am confused about that Chris or Ping can correct me.  And your
using "ISD-V4-Lenovo Digitizer" and "ISD-V4-ASUSTek Digitizer" is
certainly another option.  Just means another keyword needs to be
added to the wacom.conf match.

> M.

Favux

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to