Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2009, 02:46 PM
vaisarger vaisarger is offline
Member
 
Join Date: Apr 2008
Location: Italy
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Joystick in PC-BSD ( FreeBSD ) HOW-TO ?
Hi !

I'm a *BSD newbie, I have two analog joysticks ( for sound card port ).
- Micro$oft Sidewinder joypad
- Logitech Wingman joystick

1) I searched, but didn't find any how-to about using joystick in FreeBSD... is there one anywhere?

2) I found this ports:
/usr/ports/emulators/linux-padjoy
/usr/ports/emulators/linux-xjoypad
/usr/ports/x11-drivers/xf86-input-joystick
/usr/ports/devel/linux-js
/usr/ports/x11-toolkits/plib
Which one of these I need to make my joysticks work ?

Thanks !!
Reply With Quote
  #2  
Old 03-24-2009, 08:08 PM
thenrie thenrie is offline
Senior Member
 
Join Date: Jan 2008
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Joystick in PC-BSD ( FreeBSD ) HOW-TO ?
First off, look in /boot/defaults/loader.conf and look for something like:

ujoy_load="NO" (if it is set to "YES" then disregard the following paragraph)

or something like, that down in the section relating to USB drivers. DO NOT CHANGE THE SETTING IN THIS FILE!!! Copy it and go to /boot/loader.conf and paste it into that file. Now change the setting to "YES". The other required usb drivers should already be loaded in PCBSD.

Now reboot and see if your joystick works. It may not work with all the options unless you are able to identify and load the specific driver for that unit, but this may at least get you started.

You might try a google search or go to the manufacturer's website to find a Linux or FreeBSD driver for your joystick. If you can find a driver with a .ko suffix, put it into your /boot/kernel/modules directory and load it at boot by putting "driver name_load="YES"" in /boot/loader.conf.

Seems like I'm forgetting something. Maybe not.
Reply With Quote
  #3  
Old 03-25-2009, 08:24 AM
vaisarger vaisarger is offline
Member
 
Join Date: Apr 2008
Location: Italy
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Joystick in PC-BSD ( FreeBSD ) HOW-TO ?
Thanks thenrie for your reply!!

Two questions:

1) Is "ujoy" related to "usb joystick" ? because, if is that the case, it doesn't apply to my joysticks: they are both analogs through sound card "midi" port...

2) You wrote:
Quote:
find a Linux or FreeBSD driver for your joystick. If you can find a driver with a .ko suffix, put it into your /boot/kernel/modules directory and load it at boot by putting "driver name_load="YES"" in /boot/loader.conf
I already found Linux drivers for my joysticks, but question is: can I use them even in FreeBSD?

:roll:
Reply With Quote
  #4  
Old 05-19-2009, 11:52 AM
thenrie thenrie is offline
Senior Member
 
Join Date: Jan 2008
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Joystick in PC-BSD ( FreeBSD ) HOW-TO ?
Yup. That's for a usb joystick. Sorry, don't know how to handle the analog joystick. As for the driver, I am sure there is some adjustment to the code in the windows driver to make it work with BSD, but I'm not knowledgeable in that area. The linux drivers should work if installed properly in the linux compat directories. Good luck.
Reply With Quote
  #5  
Old 05-20-2009, 12:53 PM
vaisarger vaisarger is offline
Member
 
Join Date: Apr 2008
Location: Italy
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Joystick in PC-BSD ( FreeBSD ) HOW-TO ?
OK.

First, USB Joysticks work just plugged in. So, absolutely no problem for them.

For analog joysticks, you have to load Joy(4) driver
Code:
kldload joy.ko
unfortunately, Micro$oft Sidewinder joypad, even if connected equally to midi port like other ones, is NOT really an analog joystick ( actually is digital ).

About Linux joystick drivers, is not correct: for my experience is not possible using them in FreeBSD. The only thing you can do, is using a "driver-wrapper" called "linux_js" that NEEDS a FreeBSD joystick driver ( USB or analog ) already working, then, ABOVE IT, it creates a device /dev/input/jsX, only to make some linux games (needing such device) work.




By the way, I wrote a joy(4) driver modified to make it work with 3 axes and 4 buttons ( original one is only for 2 axes and 2 buttons )... if anyone is interested, contact me at e-mail in my site
http://webash.virtuale.googlepages.com




CIAO
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7-sta cristobal General Questions 2 07-11-2009 02:39 AM
Joystick - Gameport, Interact PC Commander - help me configu Creature Feature General Support 0 05-11-2008 08:20 PM
Dualboot: WinXP & FreeBSD;Want to replace FreeBSD with P laeva65 Installing PC-BSD 5 02-15-2007 05:03 PM
FreeBSD Announces Java JDK, JRE 1.5 Binaries for FreeBSD pcbsdusr General Questions 6 04-07-2006 09:01 AM


All times are GMT. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.