![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Quad Shot of Ubuntu
![]() Join Date: Apr 2005
Beans: 420
Ubuntu 9.04 Jaunty Jackalope
|
HOWTO: Set up a parallel port SNES pad
This guide is for the few of us who like to play SNES games with a real SNES controller. If you're one of these people, you've followed the various online guides available and have wired up an SNES pad with a parallel port adapter. There are guides available that explain how to set up one of these pads with older Linux kernels, but some stuff was changed in the 2.6.10 kernel that made previous procedures quit working. I have done some experimenting and have found a way to make them work with the 2.6.10 kernel that is used by Ubuntu Hoary.
First, open up your favorite text editor and paste this to create a shell script that will enable our pad: Code:
#!/bin/sh modprobe -r lp modprobe gamecon map=0,1,0,0,0,0 modprobe gamecon gc=0,1 We need make our shell script executable: Code:
chmod +x snespad Code:
sudo cp snespad /bin Code:
sudo modprobe lp If you'd like to have your system execute the script on startup to have your pad always ready to go, copy the script to your /etc/init.d directory: Code:
sudo cp /bin/snespad /etc/init.d/snespad Code:
sudo ln -s /etc/init.d/snespad /etc/rc2.d/S99snespad Last edited by NTolerance; May 11th, 2005 at 11:13 PM.. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() |
Re: HOWTO: Set up a parallel port SNES pad
I followed your instructions, but whenever I run ZSNES after initializing the pads, my kernel panics. This also happens when I run jstest from the Debian joystick package. Both ZSNES and SNES9x run fine when the joystick is not initialized. Any suggestions?
-Devarien |
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2006
Beans: 2
|
Re: HOWTO: Set up a parallel port SNES pad
Hi!
I'm having the same problem... Is there any solution???? Bye |
|
|
|
|
|
#4 | |
|
Quad Shot of Ubuntu
![]() Join Date: Apr 2005
Beans: 420
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Set up a parallel port SNES pad
Holy crap, I didn't think anyone used my guide. Apparently something has changed in the newer kernels that breaks this. I suspect it's one of these two commands that is the culprit:
Code:
modprobe gamecon map=0,1,0,0,0,0 modprobe gamecon gc=0,1 http://www.tolaris.com/snes-to-parallel/ Apparently the whole script process that I described above isn't actually necessary to make the SNES pad persistant after a reboot, so forget all that. This line in /etc/modules would take care of that: Code:
modprobe gamecon gc=0,1 Code:
modprobe gamecon map=0,1,0,0,0,0 modprobe gamecon gc=0,1 Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|