[gamepad] hori fighting stick mini (résolu)

Reconnaissance et configuration du matériel / kernel linux
mito77
Daikyu
Messages : 53
Inscription : ven. 04 déc. 2020, 09:35

[gamepad] hori fighting stick mini (résolu)

Message par mito77 »

Salut,

mon hori fighting stick mini pratique un autoset même débranché dans zsnes, les touches sont pré-attribué, alors que je n'ai appuyé sur aucune touche pour attribuer a l'action input du jeu dans les paramètres du logiciel. C'est du auto-assign sans manette branchée.

Image

voici le retour de cat /proc/bus/input/devices :

Code : Tout sélectionner

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
U: Uniq=
H: Handlers=event1 
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=sysrq kbd leds event3 rfkill 
B: PROP=0
B: EV=120013
B: KEY=20000 20 0 0 1500f02140003 3803078f900d401 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input5
U: Uniq=
H: Handlers=kbd event4 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="HP Wireless hotkeys"
P: Phys=hpq6001/input0
S: Sysfs=/devices/virtual/input/input6
U: Uniq=
H: Handlers=kbd event5 rfkill 
B: PROP=0
B: EV=3
B: KEY=80000000000000 0 0 0

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="ST LIS3LV02DL Accelerometer"
P: Phys=lis3lv02d/input0
S: Sysfs=/devices/platform/lis3lv02d/input/input7
U: Uniq=
H: Handlers=event6 js0 
B: PROP=0
B: EV=9
B: ABS=7

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input8
U: Uniq=
H: Handlers=kbd event7 
B: PROP=0
B: EV=40001
B: SND=6

I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input9
U: Uniq=
H: Handlers=event8 mouse0 
B: PROP=9
B: EV=b
B: KEY=6420 30000 0 0 0 0
B: ABS=260800011000003

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="HP WMI hotkeys"
P: Phys=wmi/input0
S: Sysfs=/devices/virtual/input/input10
U: Uniq=
H: Handlers=kbd event9 
B: PROP=0
B: EV=33
B: KEY=4000000000 0 1000700000000 2102400 0 0
B: MSC=10
B: SW=20

I: Bus=0003 Vendor=04f2 Product=b34f Version=6047
N: Name="HP Truevision HD: HP Truevision"
P: Phys=usb-0000:00:13.2-4/button
S: Sysfs=/devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/input/input11
U: Uniq=
H: Handlers=kbd event10 
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:01.1/sound/card0/input12
U: Uniq=
H: Handlers=event11 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:14.2/sound/card1/input13
U: Uniq=
H: Handlers=event12 
B: PROP=0
B: EV=21
B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:14.2/sound/card1/input14
U: Uniq=
H: Handlers=event13 
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0003 Vendor=0461 Product=4d0f Version=0111
N: Name="PixArt USB Optical Mouse"
P: Phys=usb-0000:00:10.0-1.2/input0
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb5/5-1/5-1.2/5-1.2:1.0/0003:0461:4D0F.0001/input/input15
U: Uniq=
H: Handlers=event14 mouse1 
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=903
B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b20 Version=0111
N: Name="Corsair Corsair STRAFE RGB Gaming Keyboard"
P: Phys=usb-0000:00:10.0-1.3/input0
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb5/5-1/5-1.3/5-1.3:1.0/0003:1B1C:1B20.0002/input/input16
U: Uniq=0200A030AEB8046755A7D2D6F5001942
H: Handlers=sysrq kbd leds event15 
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=1b1c Product=1b20 Version=0111
N: Name="Corsair Corsair STRAFE RGB Gaming Keyboard"
P: Phys=usb-0000:00:10.0-1.3/input1
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb5/5-1/5-1.3/5-1.3:1.1/0003:1B1C:1B20.0003/input/input17
U: Uniq=0200A030AEB8046755A7D2D6F5001942
H: Handlers=sysrq kbd event16 
B: PROP=0
B: EV=100013
B: KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe
B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b20 Version=0111
N: Name="Corsair Corsair STRAFE RGB Gaming Keyboard Consumer Control"
P: Phys=usb-0000:00:10.0-1.3/input1
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb5/5-1/5-1.3/5-1.3:1.1/0003:1B1C:1B20.0003/input/input18
U: Uniq=0200A030AEB8046755A7D2D6F5001942
H: Handlers=kbd event17 
B: PROP=0
B: EV=1f
B: KEY=3f000301ff 0 0 483ffff17aff32d bfd4444600000000 1 130ff38b17c000 677bfad9415fed 19ed68000004400 10000002
B: REL=1040
B: ABS=100000000
B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b20 Version=0111
N: Name="Corsair Corsair STRAFE RGB Gaming Keyboard"
P: Phys=usb-0000:00:10.0-1.3/input1
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb5/5-1/5-1.3/5-1.3:1.1/0003:1B1C:1B20.0003/input/input19
U: Uniq=0200A030AEB8046755A7D2D6F5001942
H: Handlers=event18 
B: PROP=0
B: EV=9
B: ABS=10000000000

I: Bus=0003 Vendor=1b1c Product=1b20 Version=0111
N: Name="Corsair Corsair STRAFE RGB Gaming Keyboard"
P: Phys=usb-0000:00:10.0-1.3/input1
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb5/5-1/5-1.3/5-1.3:1.1/0003:1B1C:1B20.0003/input/input20
U: Uniq=0200A030AEB8046755A7D2D6F5001942
H: Handlers=event19 
B: PROP=0
B: EV=9
B: ABS=10000000000


c'est marrant car sur Mednaffe aussi est auto assigné la touche Joystick (ST LIS3LV02DL Accelerometer) has 3 axes (X, Y, Z)

Je ne sais pas à quoi correspond, je ne comprends pas pourquoi mon ordinateur ou clavier assigne cette touche automatiquement aux touches dites de gamepad de mes logiciel de jeu ?

Est-ce que ça vient du xinput, ou bien de xorg ?
__________________________________________

edit :

bon ça fonctionne , j'ai installé https://aur.archlinux.org/packages/xf86-input-joystick/ puis j'ai créer le fichier mentionné comme dans le wiki
If you want to play games with your gamepad, you might want to disable its joystick control over mouse cursor. To do this, edit /etc/X11/xorg.conf.d/51-joystick.conf

Code : Tout sélectionner

/etc/X11/xorg.conf.d/51-joystick.conf 

Section "InputClass"
        Identifier "joystick catchall"
        MatchIsJoystick "on"
        MatchDevicePath "/dev/input/event*"
        Driver "joystick"
        Option "StartKeysEnabled" "False"       #Disable mouse
        Option "StartMouseEnabled" "False"      #support
EndSection
Dernière modification par mito77 le dim. 18 avr. 2021, 09:24, modifié 1 fois.
mito77
Daikyu
Messages : 53
Inscription : ven. 04 déc. 2020, 09:35

Re: [gamepad] hori fighting stick mini (semi-résolu)

Message par mito77 »

Bonjour,

Sur github on m'a dit de désactiver l'accelerometer ST-LIS3LV02DL. Pour mednaffen.

"L'accelerometer n'est pas un "touchpad".
ST-LIS3LV02DL is not a touchpad but an accelerometer.

Some laptops (HP, ThinkPad...) has one and it can acts like an analogic gaming device.
See: https://www.kernel.org/doc/html/latest/ … lv02d.html
But I dont know the .conf or the file for modificate, and have no error for my device.

Je ne sais pas si ça se désactive comme la souris. Avec un fichier pour xorg et HUD. Si il y a le kernel a recompiler ou un .conf quelque part si il faut rajouter false ou commenter une ligne.

Plus de détails ici : https://github.com/AmatCoder/mednaffe/issues/120
mito77
Daikyu
Messages : 53
Inscription : ven. 04 déc. 2020, 09:35

Re: [gamepad] hori fighting stick mini (semi-résolu)

Message par mito77 »

résolu avec cette page wiki anglophone : https://wiki.archlinux.org/index.php/Ke ... le_options
et ce sujet https://bbs.archlinux.org/viewtopic.php?id=118958 qui explique qu'il faut modprobe le module. Merci la communauté archlinux !
Répondre