Xinput gamepad não reconhecido

Qual versão do kernel você tá usando? Já tentou com um kernel alternativo?

Pode ser

Se está detectando agora talvez não precise colocar no /etc/modules-load.d/…

veja aqui

Troubleshooting

Steam Controller not pairing

There are some unknown cases where the packaged udev rule for the Steam controller does not work (FS#47330). The most reliable workaround is to make the controller world readable. Copy the rule /usr/lib/udev/rules.d/70-steam-controller.rules to /etc/udev/rules.d with a later prioritiy and change anything that says MODE="0660" to MODE="0666" e.g.

/etc/udev/rules.d/99-steam-controller-perms.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"

You may have to reboot in order for the change to take effect.

ou

Steam Controller makes a game crash or not recognized

If your Steam Controller is working well in Steam Big Picture mode, but not recognized by a game or the game starts crashing when you plug in the controller, this may be because of the native driver that has been added to the Linux kernel 4.18. Try to unload it, restart Steam and replug the controller.

The module name of the driver is hid_steam , so to unload it you may perform:

# sudo rmmod hid_steam

Estou usando o 5.3.0-24, mas já tentei o 5.4, mas o Gnome Display Manager não inicia, ai não dá pra acessar o desktop. No 5.3.0-23 (Acho que foi 23), meu DS4 não é detectado, então não posso voltar pra esse. Só se eu testar um mais antigo.

Eu achei que você tava num kernel mais antigo, por isso perguntei.

Já tentou instalar o steam-devices? Tem no Launchpad, no repositório do Pop!_OS, caso você não encontre aí.

Já está instalado. …

Criei uma regra: 99-gamesir-T4.rules

Ai coloquei no conteúdo:

# GameSir T4, USB
KERNEL=="hidraw*", ATTRS{idVendor}=="2f24", ATTRS{idProduct}=="0050", MODE="0666", TAG+="uaccess"

Já tentei com MODE=“0660” também, reiniciei o pc sempre que mudei o arquivo mas não foi.

tente fazer só pela permissào

SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"

Mudei pra:
SUBSYSTEM=="usb", ATTRS{idVendor}=="2f24", MODE="0666"

Mas ainda não aparece no jstest.

execute
jstest /dev/input/js0

inicie jstest-gtk e selecione um e vá em propriedades

veja se funciona

caso nào, depois

veja se tem este pacote: sdl2-jstest
execute
sdl2-jstest --test 0
para testar

fftest /dev/input/by-id/usb-*event-joystick

jstest /dev/input/js0 retorna jstest: No such file or directory.

Não tem o pacote sdl2-jstest no repositório.

Tentei conectar o controle num Raspberry 4 com kernel 4.19 e o lsusb não retorna o nome do dispositivo, então provavelmente não deve estar funcionando, não tenho o adaptador micro hdmi, ai não consegui entrar no desktop pra rodar jstest.

ok…tenta adicionar o modulo XPAD

sudo modprobe xpad

e teste novamente

se não funcionar tente outra posta usb.

Não funcionou, já testei conectar em várias portas e não muda nada.

Acabei de testar de novo no Windows, o sistema reconhece como uma Gamepad normalmente e a Steam reconhece como um controle de Xbox One. Tudo normal.

ok…

instale

apt install xboxdrv

e habilite o serviço

sudo systemctl enable xboxdrv.service

e veja se funciona

Se você tiver problemas com o controlador sendo reconhecido, mas não trabalhandocomo deveria
/etc/default/xboxdrv

[xboxdrv]
silent = true
device-name = “Xbox 360 Wireless Receiver”
mimic-xpad = true
deadzone = 4000

[xboxdrv-daemon]
dbus = disabled

e reinicie o serviço
sudo systemctl restart xboxdrv.service

se mesmo assim tiver erros

similar ao controle ps3

xboxdrv --silent --detach-kernel-driver

similar ao controle ps4

xboxdrv \

–evdev /dev/input/by-id/usb-Sony_Computer_Entertainment_Wireless_Controller-event-joystick
–evdev-absmap ABS_X=x1,ABS_Y=y1
–evdev-absmap ABS_Z=x2,ABS_RZ=y2
–evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y
–evdev-keymap BTN_A=x,BTN_B=a
–evdev-keymap BTN_C=b,BTN_X=y
–evdev-keymap BTN_Y=lb,BTN_Z=rb
–evdev-keymap BTN_TL=lt,BTN_TR=rt
–evdev-keymap BTN_SELECT=tl,BTN_START=tr
–evdev-keymap BTN_TL2=back,BTN_TR2=start
–evdev-keymap BTN_MODE=guide
–axismap -y1=y1,-y2=y2
–mimic-xpad
–silent

Já tinha tentando o xboxdrv, mas aparece No Xbox or Xbox360 controller found.

sudo modprobe joydev

e depois
jstest /dev/input/js0

Não funciona no modo Xinput. Trocando pra Dinput funciona normal, mas ai o vibração não funciona na Steam pelo menos.

tenta

SteamOS xpad

If you have issues with the default xpad kernel module, you can install the SteamOS version. There is still a known issue with compatibility between wireless Xbox360 controllers and games made in GameMaker Studio. If you encounter this problem, the only known workaround is to use xboxdrv. YoYo Games has refused to acknowledge this as a bug with their product and it is unlikely to ever be fixed.

First make sure you have DKMS installed and running, then install the modified kernel module steamos-xpad-dkmsAUR. During the installation you’ll see that new xpad kernel module is strapped to your current kernel:

Creating symlink /var/lib/dkms/steamos-xpad-dkms/0.1/source → /usr/src/steamos-xpad-dkms-0.1 DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping… Building module: cleaning build area… make KERNELRELEASE=3.12.8-1-ARCH KVERSION=3.12.8-1-ARCH… cleaning build area…

Then unload the old xpad module and load new one:

# rmmod xpad 
# modprobe steamos-xpad

veja aqui também

Fix Motion control conflict (gamepad won’t work on somes apps)

Dualshock 4 V1 and V2 are both like 3 devices, touchpad, motion control, and joypad.

With somes softwares like Parsec and Shadow cloud gaming streaming apps, motion control is in conflict with joypad, you can disable touchpad and motion control by adding the following udev rule :

/etc/udev/rules.d/51-disable-DS3-and-DS4-motion-controls.rules

SUBSYSTEM=="input", ATTRS{name}=="*Controller Motion Sensors", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" SUBSYSTEM=="input", ATTRS{name}=="*Controller Touchpad", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}=""