Hi Here I have a very early draft for setting the Intuos4 OLED display by means of xsetwacom.
It defines a new pseudo-property "Wacom Button Image". When XChangeDeviceProperty is called with a 2049 octet data, the first octet is taken as the button number, and the remaining 2048 octets are taken as the image. Basic working principle: * In wcmUSB.c, at device start (usbStart) the corresponding USB-FS bus and device number is derived from the event device. This is done by exploiting the layout of "sysfs". Starting at the event char device "/sys/dev/char/major:minor" and going into the fourth parent directory "../../../.." "busnum" and "devnum" can be read from USB-FS. * In wcmXCommand, the Image is sent to the USB device by means of USB-FS. * xsetwacom reads a PGM image file for setting the button image Current rough edges: * Relies on sysfs being present * Relies on sysfs being accessible using "/sys/dev/char/%d:%d/../../../../%s" * Relies on USB-FS "mounted" on /dev/bus/usb * No error checks yet * No comments The current version of this patch is not for inclusion into the x11 wacom driver, but to show a "Proof of Concept" and to support discussion if LED support can be included in xsetwacom, and how it has to be done. Questions: * Is it possible to link to further libraries? E.g. it might be convenient to have xsetwacom setting directly "text" to the buttons. * It might be better to use libsysfs to access sysfs. Can we link against it? * Should all the Image functions be moved into a separate file (e.g. wcmButtonImage.c)? * Can we use the rendering capabilities of the X-server and send an PIXMAP by means of XChangeDeviceProperty? thanks, Eduard
led.diff
Description: Binary data
------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
