On Tuesday 08 December 2009 11:41:24 Thibaut VARENE wrote: > I'm considering orphaning lomoco. >
If you want to update the packages, patches are attached. Well lomoco in this
state is finished. You just have to deal with the udev crap. New mice have to
be configured differently and I couldn't reverse engineer the protocol
completely yet. There is still a bit missing to identify cordless mice.
-- andreas
Index: lomoco-1.0/src/lomoco.c
===================================================================
--- lomoco-1.0.orig/src/lomoco.c
+++ lomoco-1.0/src/lomoco.c
@@ -42,6 +42,7 @@ mouse_t mice [] = {
{0xc012, "MouseMan Dual Optical", "M-BL63B", 0, 1, 0, 0, 0},
{0xc01d, "MX510 Optical Mouse", "M-BS81A", 0, 1, 1, 1, 0},
{0xc01e, "MX518 Optical Mouse", "M-BS81A", 0, 1, 1, 0, 0},
+ {0xc051, "MX518 Optical Mouse-2", "M-BS81A", 0, 1, 1, 0, 0},
{0xc024, "MX300 Optical Mouse", "M-BP82", 0, 1, 0, 0, 0},
{0xc01b, "MX310 Optical Mouse", "M-BP86", 0, 1, 0, 0, 0},
{0xc025, "MX500 Optical Mouse", "M-BP81A", 0, 1, 1, 1, 0},
Index: udev/toudev.awk
===================================================================
--- udev/toudev.awk.orig
+++ udev/toudev.awk
@@ -3,13 +3,15 @@ BEGIN {
FS = ","
print "ACTION != \"add\", GOTO=\"lomoco_end\""
print "SUBSYSTEM != \"usb\", GOTO=\"lomoco_end\""
- print "SYSFS{idVendor} != \"046d\", GOTO=\"lomoco_end\""
+ print "ENV{DEVTYPE} != \"usb_device\", GOTO=\"lomoco_end\""
+ print "ATTR{idVendor} != \"046d\", GOTO=\"lomoco_end\""
+
print ""
}
$1 ~ /0xc[a-f0-9][a-f0-9][a-f0-9]/ {
print "# " substr($3, index($3, "\"")) ", " $2
- print "SYSFS{idProduct}==\"" substr($1, index($1, "x")+1) \
+ print "ATTR{idProduct}==\"" substr($1, index($1, "x")+1) \
"\", RUN=\"lomoco\""
}
tohal.awk
Description: application/awk
signature.asc
Description: This is a digitally signed message part.

