ubuntu:joystick
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:joystick [2020/04/14 00:02] – peter | ubuntu:joystick [2023/06/26 19:33] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Joystick ====== | ====== Ubuntu - Joystick ====== | ||
+ | |||
+ | [[Ubuntu: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Install the Joystick Driver ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install xboxdrv | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Set permissions ===== | ||
<code bash> | <code bash> | ||
sudo chmod 666 /dev/uinput | sudo chmod 666 /dev/uinput | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Use the Joystick ===== | ||
+ | |||
+ | <code bash> | ||
sudo xboxdrv | sudo xboxdrv | ||
</ | </ | ||
+ | |||
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> | ||
Line 18: | Line 42: | ||
---- | ---- | ||
+ | |||
+ | ===== Calibrating the gamepad ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install jstest-gtk | ||
+ | </ | ||
+ | |||
+ | Open the tool, select your device and press the “Properties” button. | ||
+ | |||
+ | 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. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Another method ===== | ||
<code bash> | <code bash> | ||
Line 24: | 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 |
</ | </ | ||
Line 30: | Line 76: | ||
**NOTE: | **NOTE: | ||
</ | </ | ||
+ | |||
---- | ---- | ||
+ | ===== 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 | ||
+ | </ | ||
+ | |||
+ | Then run the tool by typing: | ||
+ | |||
+ | <code bash> | ||
+ | qjoypad –notray | ||
+ | </ | ||
+ | |||
+ | 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, | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Another method to setup the Joystick ===== | ||
+ | |||
+ | <code bash> | ||
sudo apt install jscalibrator | sudo apt install jscalibrator | ||
jscal -c / | jscal -c / | ||
jstest / | jstest / | ||
jscalibrator | jscalibrator | ||
+ | </ | ||
<WRAP info> | <WRAP info> | ||
Line 47: | 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' | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-add-repository -y ppa: | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install ubuntu-xboxdrv | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ===== References ===== | ||
+ | https:// | ||
ubuntu/joystick.1586822575.txt.gz · Last modified: 2020/07/15 09:30 (external edit)