Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old November 19th, 2005   #1
Ricapar
Just Give Me the Beans!
 
Ricapar's Avatar
 
Join Date: Jan 2005
Location: Old Bridge, New Jersey
Beans: 68
Send a message via AIM to Ricapar
An interesting idea I had, but having trouble with: Using joystick to control cursor.

I've searched around a bit on Google, and I was able to find this:
Code:
Section "InputDevice"
  Identifier "Joystick"
  Driver "mouse"
  Option "Device" "/dev/input/js0"
  Option "Protocol" "ImPS/2"
  Option "Buttons" "9"
  Option "SendCoreEvents"
EndSection
....
Section "ServerLayout"
  Identifier   "Layout"
  InputDevice  "Keyboard"
  InputDevice  "Mouse"
  InputDevice  "Joystick"
I put that into my xorg.conf file, and it did do something, but at the press of any key on the Joystick, the cursor goes crazy, jumping and clicking all over the place.

Anyone have any ideas or suggestions to get this to work? If it makes a difference, I have a Saitek P3000 Wireless Gamepad.
__________________
http://ricapar.ath.cx:89/
Ricapar is offline   Reply With Quote
Old November 27th, 2005   #2
etc
A Carafe of Ubuntu
 
Join Date: Oct 2005
Location: United States
Beans: 103
Edgy Eft Testing
Re: An interesting idea I had, but having trouble with: Using joystick to control cursor.

Bump because I'd also like to know this.
etc is offline   Reply With Quote
Old November 27th, 2005   #3
almahtar
Gee! These Aren't Roasted!
 
almahtar's Avatar
 
Join Date: Nov 2005
Location: North Idaho
Beans: 125
Ubuntu 8.04 Hardy Heron
Send a message via ICQ to almahtar Send a message via AIM to almahtar Send a message via MSN to almahtar
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

Oh now that IS a cool idea.... but I'm also clueless.
almahtar is offline   Reply With Quote
Old November 27th, 2005   #4
23meg
Ubuntu QA Team
 
Join Date: Mar 2005
Location: İstanbul
Beans: 5,807
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

I don't know whether what you want to do is practically doable but the reason the pointer jumps around is that you're stating in your xorg.conf file that you want to use the ps/2 mouse protocol and mouse driver with your gamepad, in these lines:
Code:
  Driver "mouse"
  Option "Protocol" "ImPS/2"
23meg is offline   Reply With Quote
Old November 27th, 2005   #5
etc
A Carafe of Ubuntu
 
Join Date: Oct 2005
Location: United States
Beans: 103
Edgy Eft Testing
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

Quote:
Originally Posted by 23meg
I don't know whether what you want to do is practically doable but the reason the pointer jumps around is that you're stating in your xorg.conf file that you want to use the ps/2 mouse protocol and mouse driver with your gamepad, in these lines:
Code:
  Driver "mouse"
  Option "Protocol" "ImPS/2"
http://freshmeat.net/projects/js2mou...ease_id=150597
Could this be used as the driver?
etc is offline   Reply With Quote
Old November 27th, 2005   #6
23meg
Ubuntu QA Team
 
Join Date: Mar 2005
Location: İstanbul
Beans: 5,807
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

Yes, it seems is emulates the ps/2 protocol and gives you an xorg joystick driver.
23meg is offline   Reply With Quote
Old April 12th, 2006   #7
polaren
First Cup of Ubuntu
 
Join Date: Mar 2006
Beans: 9
Xubuntu 6.10 Edgy
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

I'm bumping this one!
I have the same problem as Ricapar, and i have used the howto at: http://cedric.vincent.perso.free.fr/Projets/index.html

My xorg.conf looks like this:
Code:
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "aticonfig Screen 0" 0 0
	InputDevice    "Generic Keyboard"
	InputDevice    "Configured Mouse"
	InputDevice "Mouse2" "SendCoreEvents"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
	Option	    "CorePointer"
	Option	    "Device" "/dev/input/mice"
	Option	    "Protocol" "ImPS/2"
	Option	    "Emulate3Buttons" "true"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
	Identifier "Mouse2"
	Driver "mouse"
	Option "Protocol" "ImPS/2" #_PROTO_ is 'PS/2' or 'IMPS/2' or 'EXPS/2'
	Option "Device" "/dev/j2m_fifo"
	Option "ZAxisMapping" "4 5" #only if you use the 'IMPS/2' protocol
EndSection
I don't even know if im using the right protocol (imps/2), but i tought that was the one because the mouse uses it.

I can move the pointer up and to the right, but not down and to the left (it goes crazy and clicks). The buttons doesn't work either.

If there are other ways than using the JS2mouse software to solve this i would sure be happy


Oh, and my gamepad is a Saitek P880 Dual Analog.
polaren is offline   Reply With Quote
Old April 12th, 2006   #8
polaren
First Cup of Ubuntu
 
Join Date: Mar 2006
Beans: 9
Xubuntu 6.10 Edgy
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

Yes i got it to work!

I just edited my xorg.conf so it looked like this:

Code:
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "aticonfig-Screen[0]" 0 0
	InputDevice    "Generic Keyboard"
	InputDevice    "Configured Mouse"
	InputDevice "Mouse2" "SendCoreEvents"
	InputDevice    "stylus" "SendCoreEvents"
	InputDevice    "cursor" "SendCoreEvents"
	InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
	Option	    "CorePointer"
	Option	    "Device" "/dev/input/mice"
	Option	    "Protocol" "ExplorerPS/2"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
	Identifier "Mouse2"
	Driver "mouse"
	Option "Protocol" "PS/2" #_PROTO_ is 'PS/2' or 'IMPS/2' or 'EXPS/2'
	Option "Device" "/dev/j2m_fifo"
EndSection
As you can see, i changed the protocol for "mouse2" to PS/2 and removed the line "ZAxisMapping".

IT works GREAT! Weeehooo

Last edited by polaren; February 20th, 2007 at 01:34 PM..
polaren is offline   Reply With Quote
Old July 20th, 2007   #9
Chriss.Hi
5 Cups of Ubuntu
 
Join Date: Feb 2007
My beans are hidden!
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

do you use the js2mouse driver for that?
Chriss.Hi is offline   Reply With Quote
Old September 25th, 2007   #10
99bluefoxx
Way Too Much Ubuntu
 
99bluefoxx's Avatar
 
Join Date: May 2007
Location: Vancouver, Bc, Canada
My beans are hidden!
Re: An interesting idea I had, but having trouble with: Using joystick to control cur

can i get a how to for this, but for a microsoft sidewinder 3d pro plus
i cant seem to get to even work with jsconfig...
99bluefoxx is offline   Reply With Quote

Bookmarks

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


All times are GMT -4. The time now is 06:21 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry