From owner-freebsd-multimedia@FreeBSD.ORG Tue May 6 01:12:26 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4052837B404 for ; Tue, 6 May 2003 01:12:26 -0700 (PDT) Received: from gouda.acatysmoof.com (adsl-64-170-164-211.dsl.lsan03.pacbell.net [64.170.164.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0155D43F85 for ; Tue, 6 May 2003 01:12:25 -0700 (PDT) (envelope-from alex@acatysmoof.com) Received: from acatysmoof.com (localhost [127.0.0.1])h468COrF022299; Tue, 6 May 2003 01:12:24 -0700 (PDT) (envelope-from alex@acatysmoof.com) From: "Alex Teslik" To: "Alex Teslik" Date: Tue, 6 May 2003 00:12:24 -0800 Message-Id: <20030506080909.M46949@acatysmoof.com> In-Reply-To: <20030506065739.M40036@acatysmoof.com> References: <20030505070220.M38996@acatysmoof.com> <20030505213740.GF31681@cnd.mcgill.ca> <20030506045100.M57035@acatysmoof.com> <20030506052408.GH31681@cnd.mcgill.ca> <20030506065739.M40036@acatysmoof.com> X-Mailer: Open WebMail 1.90 20030218 X-OriginatingIP: 64.170.164.211 (alex) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 cc: list-freebsd-multimedia Subject: Re: Logitech Wingman Attack joystick X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2003 08:12:26 -0000 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" To: Mathew Kanner 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 > > 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 > To: Alex Teslik > 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 -------