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/08/17 19:01] – 192.168.1.1 | ubuntu:joystick [2023/06/26 19:33] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Joystick ====== | ====== Ubuntu - Joystick ====== | ||
+ | |||
+ | [[Ubuntu: | ||
+ | |||
+ | ---- | ||
===== Install the Joystick Driver ===== | ===== Install the Joystick Driver ===== | ||
Line 36: | Line 40: | ||
sudo xboxdrv --silent --detach-kernel-driver --daemon | sudo xboxdrv --silent --detach-kernel-driver --daemon | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 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. | ||
---- | ---- | ||
Line 46: | 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 52: | Line 76: | ||
**NOTE: | **NOTE: | ||
</ | </ | ||
+ | |||
---- | ---- | ||
- | ===== 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 | ||
+ | </ | ||
+ | |||
+ | 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 | ||
<code bash> | <code bash> | ||
Line 73: | 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.1597690906.txt.gz · Last modified: 2020/08/17 19:01 by 192.168.1.1