Problem solved, in two parts.

First of all, upgrading to a stock 2.4.23 kernel and using uhci caused my remote to (basically) work. As-is, the keyboard part works, and the mouse jumps to the screen corners.

For whatever reason, it wasn't working with these kernels:

kernel-2.4.20-24.9
kernel-2.4.20-20_29.rh9.at
(Red Hat 9 base.)

The second part is fixed by a patch from Norbert Federa, who was kind enough to quickly respond with the patch off-list when I mailed him privatly.

"Here is a solution for 2.4.22:
You need to edit drivers/usb/hid-core.c
and add following lines to the very end of the
hid_add_field() function, directly before the
line "return (0);"

if(field->logical_minimum==field->logical_maximum)
{
  field->logical_minimum=-1;
  field->logical_maximum=1;
}

here is a patch for 2.4.22:

--- hid-core_orig.c    Mon Dec  8 23:11:58 2003
+++ hid-core.c    Mon Dec  8 23:14:33 2003
@@ -272,6 +272,11 @@
     field->unit_exponent = parser->global.unit_exponent;
     field->unit = parser->global.unit;

+    if(field->logical_minimum == field->logical_maximum) {
+        field->logical_minimum = -1;
+        field->logical_maximum = 1;
+    }
+
     return 0;
 }
"

I used this patch in 2.4.23. I applied it by hand, I don't know if the patch works directly on the current version of the file. Perhaps someone could get this change into the official version of hid-core.c?

All is working well with my Shuttle PN31 remote on my Shuttle SB51G system now. Is there any other documentation I can provide for anyone looking in the future, or any other tests I might perform?

BB



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to