On Fri, Dec 26, 2008 at 4:48 AM, Holger Freyther <[email protected]> wrote: > On Friday 26 December 2008 06:24:21 Nelson Castillo wrote: >> Hello. >> >> With the latest kernel we can use the Touchscreen with no further >> user-space filtering. I'd like to test this. >What is the benefit?
Briefly stated: We think it's better if the driver sends only good data to the applications. If there are multiple distributions for a device (there are quite a few for the GTA02) they can share a tuned in-kernel configuration. We also save a lot of kernel mode/user mode transitions and data transmission allowing us to consider more samples for each reported event. http://wiki.openmoko.org/wiki/Touchscreen_Filters#Why_are_we_doing_filtering_in_kernel_space.3F I guess it will be up to the distributors whether to use in-kernel linear transformation or not. In either case I would like to test it. > How is the /etc/pointercal loaded? The following entries are created: /sys/class/i2c-adapter/i2c-0/0-0073/s3c2440-ts/calibration/0 /sys/class/i2c-adapter/i2c-0/0-0073/s3c2440-ts/calibration/1 ... /sys/class/i2c-adapter/i2c-0/0-0073/s3c2440-ts/calibration/6 I tried with this program: #!/usr/bin/python #TODO: Write me in C please (0.46 seconds!) prefix = '/sys/class/i2c-adapter/i2c-0/0-0073/s3c2440-ts/calibration' a = open('/etc/pointercal').readline().strip().split(" ") for i in range(0, len(a)): f = open('%s/%s' % (prefix, i), 'w') f.write(a[i]) f.close() _______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel
