Saturday, October 23, 2010

Compile the kernel to handle modifications to support the parallel port PS


PS modified the handle is connected to the parallel port printer port on the handle, compared to traditional multi-port connected to the analog sound card MIDI controller, it is purely digital, therefore the correct positioning (no need to adjust the image simulation to correct positioning of the handle), Moreover, the support of the keys can reach more than 10 (the handle much more than analog), can fully meet the needs of any game; handle because it is digital, so handle the circuit is very simple, low cost, here in Guangzhou, a pair of PS modified handle only 16, was sold through street has the effect was very good! (I believe many of my friends are using it!)

WIN version of PS handle very large drives, but under linux, its support has been very lack of information, the network also never seen people talk about; because I often play a variety of simulator under linux , which can not support the handle has been brooding on this matter. Recently, even unintentionally found among the kernel, in fact, has long provided support to some test + read kernel comes with documentation, and finally test success! introduce the following methods: System: Red 3.0desktop, kernel 2.4.18 (earlier one may also support, but I have not tested).

1. As the PS used the parallel port handles parallel port, but also handle equipment, so please check you have / dev / parport *, / dev / js *, / dev / input / js * These devices, if there can be ignored This step; If not, please set up, is:

cd / dev
rm js *
mkdir input
mknod input/js0 c 13 0
mknod input/js1 c 13 1
mknod input/js2 c 13 2
mknod input/js3 c 13 3
ln-s input/js0 js0
ln-s input/js1 js1
ln-s input/js2 js2
ln-s input/js3 js3

2. Into your kernel source file directory (for example mine is / usr/src/2.4.1, the implementation of the kernel make xconfig command configuration.

First configure the parallel port-related: the standard one is the best standard configuration into Y, M should also be selected, but not recommended; this function will be built parallel port support kernel, the kernel starts automatically detect parallel port and to / dev / parport * work.

3. Configuration input core support, to the local elections marked M, this function will be configured to handle the module, when loaded, so that / dev/js0 these works; Although the input core support of the help document that is to configure USB devices But in practice, these are universal handle equipment, do not configure it, you can not configure the next step (That's what I did not configure it, the results So now joystice the options are gray, it can not be configured )---- Configure compile step will generate input.o and joydev.o the two modules.

4. Configure joystick: Click the character device option in the joystick to enter the handle configuration window, choose the place marked M, is to configure sound card on a MIDI port (this should be omitted, according to documentation of the kernel is to support the analog controller , and the handle on the number of useless, but I have not tested), one PSX controller configuration support ---- This step will generate gameport.o and gamecon.o compile the two modules.

5. Save the configuration out, recompile the kernel and modules and install, here is not wordy, and the information on this site compiled kernel "Technology Forum" there is a lot.

6. Enter "/ lib / modules / your kernel / kernel / drivers /" (for example mine is / lib/modules/2.4.18/kernel/drivers) directory, see the input directory should have input.o and joydev.o two modules; char / joystick directory should have gamecon.o and gameport.o module.

7. Edit / etc / modules.conf file, add the following two lines:

alias pspad gamecon
options gamecon gc = 0,7,7,7,7,7

The first line means that the module starting to gamecon.o individual names pspad, then you can use this command to load modprobe pspad; the second line means to add this module gc gamecon this parameter, where "0,7 , 7,7,7,7 "and" 0 "indicates that the handle is connected in the first printer port (/ dev/parport0), if your handle is connected to the second, then with 1, analogy; behind the first a "7" represents the first handle, the handle type is converted PS, the second "7" represents the second handle, the handle type is PS, as the parallel port can simultaneously access the handle 5, so there is 5 7, If you have only one connected, just write a "7" on it (a term representing the super-modified handle, two handles represent the red and white conversions, 6 represents the modified N64 controller, 7 on behalf of PS converted handle); this two very important, especially the second line, without this parameter, then the module will get an error that loaded gamecon parameter error!

8. Restart, use the new kernel, the boot process, you will find a parallel port test message appears, because the parallel port support functions already in the kernel work; into the system, open a terminal window, execute the following command sequence:

modprobe input
modprobe joydev
modprobe pspad

Without any error message, then click again lsmod to confirm which input, joydev and gamecon three modules, one of the gameport usually automatically loaded with the sound card driver.

9. Run jstest / dev/js0 (if your system does not have this command, please visit www.rpmfind.net search keywords joystick to install a package called joystickxxx.rpm there will be a), when you click the button handle If there is a corresponding change in the screen output, then congratulations you handle drive completely successful!

10. You can now look at a simulator, or other games, with game controller feature set look, you can immediately use; such as epsxe this emulator, you can use ammo joydevice pad driver of this plug-in, click on configuration can be used, where / dev/js0 on behalf of a handle, / dev/js1 on behalf of the second handle, so on! After I test, all can be applied to the handle of the programs can handle the normal function to achieve the effect class! after you Step 8 can be in three lines that load modules modprobe command to rc.local in it with the boot from the load, then one can use the handle into the system after it! or written a script it needs to be further implementation can be!

Much of the information above is from the documentation that comes with the kernel, what if you do not understand, please read the kernel source directory under Documentation / input directory joystick.txt and joystick-parport.txt document.






Recommended links:



"Dream Zhu Xian," How the experience card



"Blue Collar" Talent Shortage Wages Rose More Than "white Collar"



Expert Q & A: formation of six key issues WLAN



Best System MAINTENANCE



windows will not open exe files how to repair



LISTS Debugging



3G operators SCRAMBLE for promotion blind users Costly



Investment Tools Specialist



for you Web SERVERS



Do not heat to high speed fully Raiders Summer Thunder



ASF to AVI



You Will enter the English phonetic it?



DAT to WMV



Used to create automatic play MUSIC listening Pros CD



3GP to AVI



Zhu Pengju: CAD is even more "integration" OF the operation



"Dragon Century: Origins," the official prequel novel Translation Preview



2 comments:

  1. There would be a couple of options with a car leasing scheme; one could return the car to the hire company at the end of the contract or the consumer may choose
    to buy off the car from the hire company.
    The private car leasing is considered best among the various methods available.
    You may also be charged at the end of your lease for excessive mileage,
    damages, and unusual wear-and-tear.

    Feel free to surf to my site Best Car Leasing Deals

    ReplyDelete
  2. Make sure you get a good mix of essential fatty acids to your diet.
    Organic skin care products are available for the face and other body parts as well.
    Cleaning may be the very first thing in facial skincare program.



    Here is my webpage :: serious skin care

    ReplyDelete