Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49927 - Two or more PSX joysticks attached to a parallel port don't work at all
Summary: Two or more PSX joysticks attached to a parallel port don't work at all
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-03 20:05 UTC by Tiago Pierezan Camargo
Modified: 2004-06-30 22:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Peter Nelson's gamecon patch (gamecon.diff,11.53 KB, patch)
2004-05-03 20:07 UTC, Tiago Pierezan Camargo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Pierezan Camargo 2004-05-03 20:05:05 UTC
The gamecon implementation is broken. It, actually, initializes more than one PSX joysitck but only read the first one. I had written a simple patch to correct the problem but, after some research, found a much better patch (from Peter Nelson<pnelson_at_andrew.cmu.edu>) with some nice add-ons. Author's annoucement:

  * Adds support for more than one controller.  Previously more than
     one controller was initialized and the docs said they worked, but
     only one was actually read.
   * Removes unnecessary detection on initialization.  This allows the
     module to be initialized without controllers plugged in (hot
     swapping controllers works).  This removes a warning if the user
     has an unrecognized controller plugged in, but the only
     unrecognized controller I have been able to find information about
     online is the PSX mouse, which I've never actually seen.
   * Adds a gc_psx_ddr option to have direction presses register as
     buttons instead of axes.  Allows the module to be used for Dance
     Dance Revolution emulators like Stepmania.
   * Adds gc_psx_* to documentation.

The author have submitted his patch to he LKML mailing-list but I don't know if it was commited to the 2.6 kernel tree. His changes to the 2.4 series work gracefully.

Reproducible: Always
Steps to Reproduce:
1. Attach two or more joysticks to the parport;
2. Load the gamecon modules with the necessary parameters: i.e.:gamecon gc=0,7,7;


Actual Results:  
The second joystick does not work.

Expected Results:  
I would like to be able to use the second joystick. :)
Comment 1 Tiago Pierezan Camargo 2004-05-03 20:07:20 UTC
Created attachment 30663 [details, diff]
Peter Nelson's gamecon patch
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-21 13:55:17 UTC
This needs to go in through upstream, send it to the input subsystem kernel
maintainer please.
Comment 3 Tiago Pierezan Camargo 2004-06-27 17:33:33 UTC
I guess the original author already has done that but it hasn't been commited to the main kernel tree. It's possible that the 2.6 already has these corrections but I've to check. I thought that this patch could be included as a gentoo-sources add-on as long as the 2.6 isn't stable.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-30 16:28:51 UTC
We are trying to get 2.6 stable :)
Comment 5 Tiago Pierezan Camargo 2004-06-30 18:55:36 UTC
That patch has been accepted by the input subsystem kernel maintainer and will appear in the official 2.6 tree soon. 
Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-30 22:03:43 UTC
yeah, thanks for verifying it.