BedroomLANTilde~A: Alexios' HomepageSearch |
![]() |
||
USBTouchScreen PatchThis is a patch adding some extra functionality to the Linux USB touchscreen driver. It adds features useful in developing and testing applications on touch-screens, as well as the ability to reverse the x and/or y axes — not every tablet out there defines its axes the same way. InstallationDownload this patch and then run the usual: cd /usr/src/linux-kernel patch </tmp/touchscreen-patch # Or whatever you called it. Then compile your kernel as usual. If you're updating the module, you don't need to compile your entire kernel (but it's probably a good idea if you're not sure you know what this is): make modules modules_install SUBDIRS=drivers/input/touchscreen depmod -a rmmod usbtouchscreen modprobe usbtouchscreen How to Use ItSimply insert the driver as per usual. The touchscreen device is exposed as an event device ( There is one module option, Module options may be set in the What's NewThe patch adds three new options to this module:
All of these may be changed after the modules have been inserted by writing Y or N to the ‘files’ in directory /sys/module/usbtouchscreen. To enable those at module loading time, say something like this: modprobe usbtouchscreen swap_xy reverse_x no_mouse The PatchI have two versions of the patch tested against Linux 2.6.18 (the original one), and 2.6.25, where some event driver symbols got changed in the kernel. I'm unsure exactly when the change happened. If you have a kernel between 2.6.18 and 2.6.25 (why?), I recommend trying the newer patch first, then the older one if that doesn't work. |
|
|
|
Recent comments
7 weeks 4 days ago
8 weeks 1 day ago
17 weeks 3 days ago
18 weeks 4 days ago
19 weeks 4 days ago
21 weeks 2 days ago
21 weeks 6 days ago
23 weeks 2 days ago
28 weeks 1 day ago
28 weeks 1 day ago