Difference between revisions of "Game Controller Support in Linux"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m (Steam Controller Family)
m
Line 28: Line 28:
 
Note the two associated devices for the controller: event14 and js0
 
Note the two associated devices for the controller: event14 and js0
  
If you do not want Steam to recognize it so you can use QJoyPad then you must lock steam out of access to the device.  When you use Steam settings to disable the controller many games still access the controller though Steam settings.  The Steam game controller configuration is problematic and difficult to use. Sometimes it is necessary to prevent Steam from having any access to the device so you can use another utility such as
+
''NOTE: Your assignments may be different.  When reading substitute "event14" for eventXX representing the number for the device on your system.  Also, you may have js1 instead of js0.  The assumption here is only one controller is connected.''
  
 +
If you do not want Steam to recognize it so you can use QJoyPad then you must lock steam out of access to the device.  When you use Steam settings to disable the controller many games still access the controller though Steam settings.  The Steam game controller configuration is problematic and difficult to use.  Sometimes it is necessary to prevent Steam from having any access to the device so you can use another utility such as QJoyPad.
  
 +
* event14 - Steam recognizes the controller via event14 - if you lock steam out of /dev/input/event14 then Steam will not recognize the controller.  This has to be done on every reboot.
 +
* js0 - QJoyPad recognizes the controller via js0 - if you lock QJoyPad out of /dev/input/js0 then the utility will notify you it does not believe a controller is present.
  
  

Revision as of 09:57, 7 December 2019

Debian based distributions including Ubuntu and Mint will be referenced.

Steam support will be referenced

connect and test usb game controller

sudo joystick
apt install jstest-gtk

steam support

If Steam recognizes your controller you should not use QJoyPad also as both will interact with your game. Close QJoyPad to use the Steam game controller. If you wish to disable Steam from configuring your game controller and continue to use QJoyPad this is possible however simply disabling the controller within Steam settings is not effective. How to do this from the command line is discussed below.

Sony Playstation PS3 Sixaxis Support

Steam on Linux does not automatically recognize the controller.

You have different options to use the controller with games in Steam. The easiest is QJoyPad.

Success in game control achieved with QJoyPad

sudo apt install qjoypad

Steam Controller Family

Tested with the EasySMX controller designed to work with multiple gaming platforms including XBox and PS3. When connected it will automatically be recognized by Steam.

$ ls -laF /dev/input/by-id|grep -i game
lrwxrwxrwx 1 root root  10 Dec  7 09:13 usb-HJC_Game_GAME_FOR_WINDOWS___00000000-event-joystick -> ../event14
lrwxrwxrwx 1 root root   6 Dec  7 09:13 usb-HJC_Game_GAME_FOR_WINDOWS___00000000-joystick -> ../js0

Note the two associated devices for the controller: event14 and js0

NOTE: Your assignments may be different. When reading substitute "event14" for eventXX representing the number for the device on your system. Also, you may have js1 instead of js0. The assumption here is only one controller is connected.

If you do not want Steam to recognize it so you can use QJoyPad then you must lock steam out of access to the device. When you use Steam settings to disable the controller many games still access the controller though Steam settings. The Steam game controller configuration is problematic and difficult to use. Sometimes it is necessary to prevent Steam from having any access to the device so you can use another utility such as QJoyPad.

  • event14 - Steam recognizes the controller via event14 - if you lock steam out of /dev/input/event14 then Steam will not recognize the controller. This has to be done on every reboot.
  • js0 - QJoyPad recognizes the controller via js0 - if you lock QJoyPad out of /dev/input/js0 then the utility will notify you it does not believe a controller is present.