ForceFeedback test utils missing

Bug #131422 reported by Ken Phillis Jr
2
Affects Status Importance Assigned to Milestone
joystick (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: joystick

basic information:
pretty much i install the Joystick utilities with the expectation of finding all of the following tools included, but instead i find the following missing:

ffmvforce
ffset
ffcfstress
evtest

steps to reproduce:
1) install joystick via apt-get and plug in a device meaning to be tested for force feedback.
2) type the commands, and they don't exist.

steps to fix:
download the joystick source files, and compile the code, but please note that it is not in the bin directory of the computer, and must be applied later.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Also for 8.04.1 and 8.10.

Changed in joystick:
status: New → Confirmed
Revision history for this message
Stephen Kitt (steve-sk2) wrote :

This bug is fixed in the latest version of joystick in Debian, 20051019-7, which includes all the requested force-feedback tools, along with manual pages. It also builds a separate evtest package containing the evtest tool. Usually the Ubuntu package tracks the Debian one fairly closely, so this bug should be fixed soon!

Revision history for this message
jessedyer (jessedyer) wrote :

Could you elaborate on how to work around this? I tried downloading the debian joystick package source, and I don't see the tools you mention.

Revision history for this message
jessedyer (jessedyer) wrote :
Download full text (4.9 KiB)

.. and promptly realized I should be pulling the _Ubuntu_ source package instead. Arg.
In any case, I tried building the source package, and it fails:

jdyer@Atom:~/Desktop/utils$ ls
acceltest.c ffcfstress.c fftest.c jscal.c remove-obsolete-files
cvmove ffmvforce.c gencodes.c jstest.c scancodes.h
evtest.c ffset.c inputattach.c Makefile
jdyer@Atom:~/Desktop/utils$ make
gcc -g -O2 -Wall -I../linux/include evtest.c -o evtest
gcc -g -O2 -Wall -I../linux/include inputattach.c -o inputattach
inputattach.c: In function ‘logitech_command’:
inputattach.c:95: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c: In function ‘magellan_init’:
inputattach.c:106: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c: In function ‘spaceball_waitcmd’:
inputattach.c:137: warning: pointer targets in passing argument 3 of ‘spaceball_waitchar’ differ in signedness
inputattach.c:117: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c: In function ‘spaceball_cmd’:
inputattach.c:151: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c:152: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c: In function ‘spaceball_init’:
inputattach.c:170: warning: pointer targets in passing argument 3 of ‘spaceball_waitchar’ differ in signedness
inputattach.c:117: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c:171: warning: pointer targets in passing argument 3 of ‘spaceball_waitchar’ differ in signedness
inputattach.c:117: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c: In function ‘stinger_init’:
inputattach.c:233: warning: pointer targets in initialization differ in signedness
inputattach.c: In function ‘main’:
inputattach.c:442: warning: pointer targets in passing argument 2 of ‘readchar’ differ in signedness
inputattach.c:52: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c:465: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
gcc -g -O2 -Wall -I../linux/include jstest.c -o jstest
gcc -g -O2 -Wall -I../linux/include -c -o jscal.o jscal.c
jscal.c: In function ‘wait_for_event’:
jscal.c:116: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
gcc -g -O2 -Wall -I../linux/include -lm jscal.o -o jscal
gcc -g -O2 -Wall -I../linux/include fftest.c -o fftest
fftest.c: In function ‘main’:
fftest.c:222: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
gcc -c -g -O2 -Wall -I../linux/include ffmvforce.c -o ffmvforce.o `sdl-config --cflags`
/bin/sh: sdl-config: not found
ffmvforce.c:37:17: error: SDL.h: No such file or directory
ffmvforce.c: In function ‘main’:
ffmvforce.c:117: error: ‘SDL_Surface’ undeclared (first use in this function)
ffmvforce.c:117: error: (Each undeclared identifier is reported only once
ffmvforce.c:117: error: for each function it appears in.)
ffmvforce.c:117: error: ‘screen’ undeclared (first u...

Read more...

Revision history for this message
Ken Phillis Jr (kphillisjr) wrote :

I just checked against 9.10... here's the key notes:

1) the package discription says it includes inputattach, but does not, this is instead it's own package, but the sources for this are in this package.

2) Force Feedback is not mentioned anywhere in package discription, however the package includes the force feedback utilities source, however the utilities for this are included in this package.

3) the following utilities are built by the joystick source package, but not installed by the deb, and also lack a man page:
 ffcfstress (Force Feedback: Constant Force Stress Test)
ffmvforce (Force Feedback: test orientation of forces )
ffset (Force Feedback: driver test Program), not sure on name of this exactly.
fftest ( Force Feedback: test Program. )

4) the force feedback utility of ffmvforce depends on libSDL.

Revision history for this message
Stephen Kitt (steve-sk2) wrote :

The sources in Debian should build on Ubuntu; try
    dget http://ftp.de.debian.org/debian/pool/main/j/joystick/joystick_20051019-9.dsc
and then build the package using dpkg-buildpackage
    dpkg-buildpackage -us -uc
This will tell you which packages you need to install in order to build the package (as mentioned above, you'll need libsdl1.2-dev).

The Debian version includes manpages for the force-feedback utilities. See http://packages.debian.org/sid/i386/joystick/filelist for the full contents.

Revision history for this message
Ken Phillis Jr (kphillisjr) wrote :

That may be so, however, when you look at the file list on the latest ubuntu packages, you see that these tools are missing on both the 32 and 64 bit flavors.
http://packages.ubuntu.com/karmic/i386/joystick/filelist

Revision history for this message
Stephen Kitt (steve-sk2) wrote :

I realise that, I was just trying to help by pointing out one way of working around the problem, as requested in comment #3.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package joystick - 20051019-9

---------------
joystick (20051019-9) unstable; urgency=low

  * Handle the various buffer sizes expected in kernels 2.6.27 to 2.6.30.8
    (2.6.28 changed the value of KEY_MAX, which changed the definition of
    a joystick-related ioctl; 2.6.31 fixed the problem by handling any
    buffer size - see ec8b4b7085605e801a7740a2c3c33256aebe249c in the
    kernel git repository, which was also shipped in 2.6.30.8). Correctly
    closes: #536013. Thanks to Krzysztof A. Sobiecki for help determining
    the actual cause of the behaviour seen in jstest!
  * Avoid treating positive return values from ioctl() as errors; kernels
    starting with 2.6.32 return buffer sizes in some cases (see
    999b874f4aa39b7abf45662ff0900f943ddb2d02 in the kernel git
    repository).
  * Standards-Version 3.8.3, no change required.
  * initscript stops in level 1 as well as 0 and 6. Note that the
    initscript will be going away soon, see #540680.

joystick (20051019-8) unstable; urgency=low

  * Avoid failing with an exit code of 1 in the initscript; thanks Sean
    Finney! Closes: #537804

joystick (20051019-7) unstable; urgency=low

  * Make evtest and inputattach conflict with previous versions of
    joystick, as suggested by LI Daobing.

joystick (20051019-6) unstable; urgency=low

  * Add Sahara Touch-iT213 support; thanks Claudio Nieder! LP: #338746
  * Package evtest and inputattach separately. Closes: #301009
  * Ship force-feedback tools. LP: #131422
  * Add initscript to save and restore calibration data. Closes: #144766
  * Switch from cdbs to dh 7.
  * Rewrite debian/copyright.
  * Rewrite manpages.
  * Standards-Version 3.8.2, no change required.
  * Allow mapping axes without mapping buttons, and remap calibration data
    when remapping axes; thanks Krzysztof A. Sobiecki! Closes: #529865
  * Avoid segfaulting when the button map reported by the kernel is
    incorrect; hopefully closes: #536013.
  * Add version to the dvb-utils conflict, since the version in Lenny is
    just a transitional package there is no conflict.
 -- Dmitrijs Ledkovs <email address hidden> Thu, 28 Jan 2010 09:25:46 +0000

Changed in joystick (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.