I've been running Dapper for a while and thought I would test my system with
Hardy.  I installed Hardy on a separate partition so I can boot either
Dapper-magma or Hardy-rtai kernels.

One of the first things I've noticed is that there is a big delay
(about 0.5 sec) in responding to joypad actions.   The delay makes the joypad
unusable (not safe) for jogging since it occurs both starting and stopping
motion.

I tested using both hal_joystick and hal_input.  The joypad is a common USB
device that I got on ebay and it has worked fine with Dapper-magma.

After some experimenting, I came up with the folowing test that demonstrates
the behavior and can be run with no emc invocation.

1) issue a command to witness output of joypad:

   $ cat /dev/input/js0|dd ibs=1 obs=1 count=20000|xxd -c 8

   (this pipeline gives fast response and doesn't put non-printing chars
   to the terminal)

2) push buttons and the axis sticks and notice how fast it responds


Results:

system         input             result 
-------------  --------------    ----------------------
Dapper-magma   /dev/input/js0    instantaneous
Hardy-generic  /dev/input/js0    instantaneous
Hardy-rtai     /dev/input/js0    delayed (about 0.5sec)

Hardy-generic  /dev/input/mouse1 instantaneous
Hardy-rtai     /dev/input/mouse1 instantaneous


Several things seem to have changed with udev and /dev/input and it seems to me
there is something in the Hardy-rtai configuration that delays updates to the
js0 (joypad) device.  It is not common to all /dev/input devices since tests
with the mouse in Hardy-rtai are instantaneous plus I'm sure a user would
notice delays in mouse response.

The config files
  /boot/config-2.6.24-16-generic
  /boot/config-2.6.24-16-rtai
seem identical with respect to instances of  CONFIG_JOYSTICK_*, CONFIG_HID_*, 
and 
CONFIG_USB_HID*

Any ideas?  Is there something special about joydev.ko that makes it behave
differently with this rtai configuration?

dewey

-- 
Dewey Garrett    (925)447-9364


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to