如何驱动并口的PS手柄?
-
- 帖子: 63
- 注册时间: 2005-10-09 12:58
如何驱动并口的PS手柄?
网上搜了不少,但全是要自己编译内核或者是已带驱动的2.4内核如何工作的。
但后者的方法在ubuntu5.10里没用,编译内核对我来说太恐怖了,下午研究编译了一个小模拟器就用了2个多小时,现在就编译系统内核也太恐怖了吧。
哪位在5.10里驱动了并口的PS手柄的朋友,能否详细说说方法?
谢了。
但后者的方法在ubuntu5.10里没用,编译内核对我来说太恐怖了,下午研究编译了一个小模拟器就用了2个多小时,现在就编译系统内核也太恐怖了吧。
哪位在5.10里驱动了并口的PS手柄的朋友,能否详细说说方法?
谢了。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 63
- 注册时间: 2005-10-09 12:58
-
- 帖子: 63
- 注册时间: 2005-10-09 12:58
发现重新编译的模块和本来的一样,都不能加载,本来的应该也是支持的,也是出在加载上。
$ sudo modprobe gamecon map=0,7
FATAL: Error inserting gamecon (/lib/modules/2.6.12-9-686/kernel/drivers/input/joystick/gamecon.ko): No such device
按照网上的两种参数加载都不行,现在的问题就出在gamecon模块如何加载了。$ sudo modprobe gamecon gc=0,7
FATAL: Error inserting gamecon (/lib/modules/2.6.12-9-686/kernel/drivers/input/joystick/gamecon.ko): Unknown symbol in module, or unknown parameter (see dmesg)
-
- 帖子: 63
- 注册时间: 2005-10-09 12:58
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 1
- 注册时间: 2005-11-16 9:21
并口的游戏手柄没有XP驱动,网上也找不到驱动了,高手们能帮我一下下吗?
我有一个仿SONY的并口playstation手柄,(不是用转接头,是直接连并口的那种),买的时候有一个win98的驱动,那时候还没有XP,好久没用了,现在怎么也装不上了,试了N种驱动都无果而终,请高手们支个招。
- 附件
-
- 照片A.jpg (11.45 KiB) 查看 5300 次
-
- 帖子: 63
- 注册时间: 2005-10-09 12:58
Re: 并口的游戏手柄没有XP驱动,网上也找不到驱动了,高手们能帮我一下下吗?
如果问的是XP的驱动,你去网上搜PSXPAD,就应该找到了。zzm815 写了:我有一个仿SONY的并口playstation手柄,(不是用转接头,是直接连并口的那种),买的时候有一个win98的驱动,那时候还没有XP,好久没用了,现在怎么也装不上了,试了N种驱动都无果而终,请高手们支个招。
如果问的是LINUX下的,我也没搞定,帮不了你。
- laborer
- 帖子: 1016
- 注册时间: 2005-10-25 11:15
- 联系:
Re: 如何驱动并口的PS手柄?
同情一下,我用usb手柄,内核直接能认出来。但是zsnes和snes9x两个模拟器在我机器上跑都很慢,不太理解为什么同样版本的windows版却能运行很好:(gxhunter 写了:网上搜了不少,但全是要自己编译内核或者是已带驱动的2.4内核如何工作的。
但后者的方法在ubuntu5.10里没用,编译内核对我来说太恐怖了,下午研究编译了一个小模拟器就用了2个多小时,现在就编译系统内核也太恐怖了吧。
哪位在5.10里驱动了并口的PS手柄的朋友,能否详细说说方法?
谢了。
编译内核也不算太恐怖,/boot/config-2.6.12-x-xxx是现成的配置文件,直接cp到内核源码目录下,改名成.config,也不用配置了。如果你只是要编译出与手柄相关的内核模块,那可以先把其它不需要的模块去掉
代码: 全选
grep -v "=m" /boot/config-2.6.12-x-xxx >.config
代码: 全选
make
大概就是这么个过程,就是别选错了gcc版本,cat /proc/version看看,breezy应该是gcc 3.4。
-
- 帖子: 63
- 注册时间: 2005-10-09 12:58
- laborer
- 帖子: 1016
- 注册时间: 2005-10-25 11:15
- 联系:
是不是有你那种手柄用的补丁我就不知道了。linux下的这些驱动也是没有办法,如果厂商不支持的话,要利用黑箱的方法编写一个驱动是非常难也很耗时的工作,只希望linux的影响越来越大,逼迫这些设备厂商同时开发出linux下的驱动就好了。我用的机器大约是3年前的主流机型,上面的设备linux基本都能支持很好。gxhunter 写了:谢楼上了
2.6.12还需要手柄补丁?哪有下载的?
我试过重新编译过手柄的那个模块,但在加载时也是出问题。
最近换了个刻录机,才发现驱动刻录机问题也多多,LINUX现在是越用越觉得好难,驱动这些硬件就头大死了。
ZSNES在设置分辨率的那个页面里,有可以打开OPENGL加速的选项,打开后,速度就可以快很多了,不知你是否已打开,这个选项在LINUX版里是可见的。
我用的是整合显卡,linux驱动也不完全支持它的硬件加速,opengl就不提了,用了肯定变慢。
-
- 帖子: 2
- 注册时间: 2007-08-25 13:48
一种解决办法
PS并口手柄的驱动(好像是要dapper以上)
1、用命令lsmod看看内核是否加载了parport, parport_pc, joydev, gamecon这四个模块。如果都加载了,就能用手柄了;没有则加载模块。一般来说,parport, parport_pc都已加载了
2、一般来说,如下两个模块都已经加载了,所以这一步可以省略,当然如果发现这两个模块没有加载,那么在终端输入如下命令:
modprobe parport
modprobe parport_pc
3、在终端输入如下命令:
modprobe joydev
rmmod lp //一般来说系统默认加载了lp模块,它占了电脑的并口,而这与并口手柄冲突,所以要卸掉该模块,它应该是并口打印机的模块
modprobe gamecon map=0,7
4、这样就可以用PS并口手柄,但重起后又不能用了,得把上述命令在输一次即可。
附英文原文:
PlayStation to Parallel Adapters
Manufacturer:Blaze and others
Comments:These adapters require a special driver. For Windows 98 and Windows Me users, the recommended driver is DirectPad Pro 5.0 for Win9x.For Windows 2000 and Windows XP, the recommended drivers are NTPAD and PSXPAD. One user reports that PSXPAD works better than NTPAD. The latest versions of these drivers has very little/no lag and no joystick axis problems, if you want to know moer,please visit Aldo's Tools.[http://www.aldostools.com/dpad.html]
Linux Support: requires at least kernel 2.6.11 (successfully tested on Ubuntu Dapper with one connected pad)
Simply make sure the following two modules are loaded (run these commands as root or using sudo):
1. modprobe joydev
2. modprobe gamecon map=0,8
Replace 0 with the parallel port number, 8 means "PSX DDR Controller" to the driver.
If this did not work, make sure that the "lp" module is not loaded, as it takes over the parallel port and prevents gamecon from working:
1. rmmod lp
1、用命令lsmod看看内核是否加载了parport, parport_pc, joydev, gamecon这四个模块。如果都加载了,就能用手柄了;没有则加载模块。一般来说,parport, parport_pc都已加载了
2、一般来说,如下两个模块都已经加载了,所以这一步可以省略,当然如果发现这两个模块没有加载,那么在终端输入如下命令:
modprobe parport
modprobe parport_pc
3、在终端输入如下命令:
modprobe joydev
rmmod lp //一般来说系统默认加载了lp模块,它占了电脑的并口,而这与并口手柄冲突,所以要卸掉该模块,它应该是并口打印机的模块
modprobe gamecon map=0,7
4、这样就可以用PS并口手柄,但重起后又不能用了,得把上述命令在输一次即可。
附英文原文:
PlayStation to Parallel Adapters
Manufacturer:Blaze and others
Comments:These adapters require a special driver. For Windows 98 and Windows Me users, the recommended driver is DirectPad Pro 5.0 for Win9x.For Windows 2000 and Windows XP, the recommended drivers are NTPAD and PSXPAD. One user reports that PSXPAD works better than NTPAD. The latest versions of these drivers has very little/no lag and no joystick axis problems, if you want to know moer,please visit Aldo's Tools.[http://www.aldostools.com/dpad.html]
Linux Support: requires at least kernel 2.6.11 (successfully tested on Ubuntu Dapper with one connected pad)
Simply make sure the following two modules are loaded (run these commands as root or using sudo):
1. modprobe joydev
2. modprobe gamecon map=0,8
Replace 0 with the parallel port number, 8 means "PSX DDR Controller" to the driver.
If this did not work, make sure that the "lp" module is not loaded, as it takes over the parallel port and prevents gamecon from working:
1. rmmod lp