Logitech Wingman Attack joystick

Alex Teslik alex at acatysmoof.com
Tue May 6 01:12:26 PDT 2003


In case anyone is wondering, I wanted to add this back into my kernel because
I prefer not to load modules. Adding the line:

device joy

to my kernel conf and recompiling worked. Strange that the joy device doesn't
appear in my dmesg, but appears in pciconf -lv...
Either way, it works for me.

Thanks,
Alex


---------- Original Message -----------
From: "Alex Teslik" <alex at acatysmoof.com>
To: Mathew Kanner <mat at cnd.mcgill.ca>
Sent: Mon, 5 May 2003 23:15:19 -0800
Subject: Re: Logitech Wingman Attack joystick

> Hello,
> 
>     Mat got this working for me off-list, but I said I would post the final
> results for the list. Keep in mind that I re-compiled my kernel, taking out
> device pcm and device joy because I'm loading them as kernel modules. Of
> course, you also want to make sure you have joy devices in your /dev which you
> can do with
> /dev/MAKEDEV joy*
> before you load the modules.
> 
> 1) Change src/sys/modules/joy/Makefile to add pci
> --- Makefile.old        Mon May  5 23:59:50 2003
> +++ Makefile    Mon May  5 21:14:18 2003
> @@ -2,7 +2,7 @@
>  
>  .PATH: ${.CURDIR}/../../isa
>  KMOD   = joy
> -SRCS   = bus_if.h device_if.h isa_if.h joy.c
> +SRCS   = bus_if.h device_if.h isa_if.h pci_if.h joy.c
>  MAN    = joy.8
>  
>  afterinstall:
> 
> 2) Apply the attached patch to src/sys/isa/joy.c.  This patch adds pci support
> to the joystick driver (if I understand it correctly). This patch is against
> 4.8-RELEASE joy.c. Note the attached patch is slightly different than Mat's
> first patch. He changed a line off-list. All credit goes to Mat on this, none
> of the work in this patch is mine.
> 
> 3) rebuild the joy module.
>      cd src/sys/modules/joy
>      make
> 
> 4) Move the new joy.ko into /modules
> 
> 5) kldload -v joy
> 
> 6) kldload -v <your_soundcard_module>
> 
> So, thats it. You should be able to configure the joystick by running
> "/usr/X11R6/bin/joycal /dev/joy0"
> 
> Xmame still is not working with this joystick, but at least the joystick
> works. I know it works because of the perl test line I ran:
> 
> perl -e
>
'open(JOY,"/dev/joy0")||die;while(1){sysread(JOY,$x,16);@j=unpack("iiii",$x);print
> "@j\n";sleep(1);}'
> 
> which I grabbed from the joy(4) man page.
> 
> Thanks Mat!
> 
> HTH,
> Alex
> 
> ---------- Original Message -----------
> From: Mathew Kanner <mat at cnd.mcgill.ca>
> To: Alex Teslik <alex at acatysmoof.com>
> Sent: Tue, 6 May 2003 01:24:08 -0400
> Subject: Re: Logitech Wingman Attack joystick
> 
> > On May 06, Alex Teslik wrote:
> > > ...
> > 	Another thought.  The new joy module has to be loaded *before*
> > the sound driver.
> > 
> > 	--Mat
> > 
> > -- 
> > Brain: Are you pondering what I'm pondering?
> > Pinky: Uh... yeah, Brain, but where will we get rubber pants our size?
> ------- End of Original Message -------
------- End of Original Message -------



More information about the freebsd-multimedia mailing list