User Tools

Site Tools


ubuntu:joystick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:joystick [2020/04/14 00:04] peterubuntu:joystick [2023/06/26 19:33] (current) peter
Line 1: Line 1:
 ====== Ubuntu - Joystick ====== ====== Ubuntu - Joystick ======
 +
 +[[Ubuntu:Joystick:Troubleshooting|Troubleshooting]]
 +
 +----
 +
 +===== Install the Joystick Driver =====
 +
 +<code bash>
 +sudo apt-get install xboxdrv
 +</code>
 +
 +----
 +
 +===== Set permissions =====
  
 <code bash> <code bash>
 sudo chmod 666 /dev/uinput sudo chmod 666 /dev/uinput
 +</code>
 +
 +----
 +
 +===== Use the Joystick =====
 +
 +<code bash>
 sudo xboxdrv sudo xboxdrv
 </code> </code>
 +
  
 When you move the joystick, you should see the numbers change. When you move the joystick, you should see the numbers change.
Line 12: Line 34:
  
 ===== Run quite ===== ===== Run quite =====
 +
 +Change the **sudo xboxdrv** live as above to the following to run quite.
  
 <code bash> <code bash>
 sudo xboxdrv --silent --detach-kernel-driver --daemon sudo xboxdrv --silent --detach-kernel-driver --daemon
 </code> </code>
 +
 +----
 +
 +===== Calibrating the gamepad =====
 +
 +<code bash>
 +sudo apt install jstest-gtk
 +</code>
 +
 +Open the tool, select your device and press the “Properties” button.  This will open up a new window which contains positioning indicators for your device's buttons and knobs.
 +
 +This screen can be used to figure out whether everything is working properly, and if your gamepad needs calibration because of “inherent” offset.
 +
 +Press the “Calibration” button located on the lower right and then press the “Start Calibration” on the newly opened window.
 +
 +Then follow the instructions and your gamepad axes will get calibrated.
 +
 +If you press the “Mapping” button, you will be given the capacity to change the order of the buttons of your device.
 +
 +Any changes done through here are applied widely in all your games and applications.
  
 ---- ----
Line 26: Line 70:
 sudo rmmod xpad sudo rmmod xpad
 blacklist xpad blacklist xpad
-sudo apt-get install xboxdrv jscalibrator xboxdrvctl+sudo apt install xboxdrv jscalibrator xboxdrvctl
 </code> </code>
  
Line 32: Line 76:
 **NOTE:**  The **blacklist xpad** is if you want to edit the .conf. **NOTE:**  The **blacklist xpad** is if you want to edit the .conf.
 </WRAP> </WRAP>
 +
  
 ---- ----
  
-===== Another method =====+===== Setting and changing between different configurations ===== 
 + 
 +If you want to relate gamepad button presses with keyboard or mouse buttons, you can do so through qjoypad. Install qjoypad by typing the following on a terminal: 
 + 
 +<code bash> 
 +sudo apt install qjoypad 
 +</code> 
 + 
 +Then run the tool by typing: 
 + 
 +<code bash> 
 +qjoypad –notray 
 +</code> 
 + 
 +You may add individual layout settings by pressing the “Add” button on the top left of the application and naming them. 
 + 
 + 
 +If you don't know what button corresponds to what name, you should click on the “Quick Set” button on the lower right that will first prompt you to press a gamepad button, and then assign a keyboard button. 
 + 
 +After finishing the various configurations, you may quit the tool and start it from the menu. This will take qjoypad to the tray, allowing you to change between the different configurations. 
 + 
 +---- 
 + 
 +===== Another method to setup the Joystick =====
  
 <code bash> <code bash>
Line 53: Line 121:
 ---- ----
  
-===== References =====+===== Alternative Driver =====
  
 +Another driver that you can use instead of the xboxdrv is the “ubuntu-xboxdrv” which is based on xboxdrv but is supposedly not plagued by common faults and bugs.  In the case that the standard xboxdrv doesn't work for your device.
 +
 +<code bash>
 +sudo apt-add-repository -y ppa:rael-gc/ubuntu-xboxdrv
 +sudo apt-get update
 +sudo apt-get install ubuntu-xboxdrv
 +</code>
 +
 +
 +----
 +
 +
 +===== References =====
  
 +https://www.howtoforge.com/tutorial/how-to-configure-your-gamepad-on-ubuntu/
  
ubuntu/joystick.1586822640.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki