Au Sunlab nous avons récupéré des game pads (un peu anciens) et ce serait bien de les faire fonctionner sous Linux avec les jeux intéressants pour les utiliser au mieux. Ça fait un peu retrogamer, mais c'est bien le retrogaming :-)

état des lieux joystick et gamepad sous Linux


Les trucs en usb :
Les trucs utilisant le game port (du DB15), ce que nous avons principalement...
http://www.wikihow.com/Transform-Your-15-Pin-%28Gameport%29-Microsoft-Sidewinder-Precision-Pro-Into-a-USB-Joystick

un joystick en USB http://giovanni.delfranco.pagesperso-orange.fr/TermS/Tp/2003_2004/TP2-CI7-E4-1-Joystick.pdf

https://gameimps.com/ps3-controller-linux-usb-290
http://gameimps.com/gamepad-linux-654
https://wiki.archlinux.org/index.php/Gamepad

la connectique

game port
DA-15 https://fr.wikipedia.org/wiki/D-sub DA-15
https://en.wikipedia.org/wiki/Game_port

http://pinouts.ru/Inputs/GameportPC_pinout.shtml
http://pinouts.ru/Slots/USB_pinout.shtml
tentative de gameport => USB http://www.descentbb.net/viewtopic.php?t=17786
DIY Gameport-USB adapter http://www.descentbb.net/viewtopic.php?t=14791
exemple de montage avec photos http://descentbb.net/viewtopic.php?t=15526

des connecteurs gameport => USB existent mais pas bien reconnu sous Linux...

USB pin 1 (red, Vbus) --> GP pin 1 (5V)
USB pin 2 (white, D-) --> GP pin 14 (BY2)
USB pin 3 (green, D+) --> GP pin 10 (BY1)
USB pin 4 (black, GND) --> GP pin 4 (GND)

USB shield --> GP shield
GP pin 2 (BX1) --> GP pin 7 (BX2)

GP = Gameport. Colors in () are the USB cable colors.

To make an adapter you need a female DB15 connector (preferably w/ a plastic shell) and a USB cable w/ an A connector on one end (the flat connector that plugs into your computer.) Cut the cable so you end w/ a 4-5\" pigtail on the USB A connector. Wire it to the DB15 connector according to the list above.

pin 3 is Resistor X-axis
There are two \"flavors\" of MS Sidewinder Precision Pro joysticks. They look and feel the same, but you can look on the bottom panel to see which one it is:

1. Product ID starts with \"85791\" - this is one being referred to above. It's natively USB-compatible, and originally came with a Gameport->USB adapter.
2. Product ID starts with \"97462\" - this one is not natively USB-compatible, and will need one of Grendel's adapters to work via USB.

ps2 / ps3 playstation joypad
https://linuxaria.com/article/how-to-use-a-playstation-2-joypad-with-linux

https://f-droid.org/en/packages/com.simonramstedt.yoke/

Les jeux candidats à l'utilisation de gamepad

Penser à lancer les jeux en mode fenêtré plutôt qu'en fullscreen avec une résolution non gérée... C'est dans le fichier de conf' la plupart du temps.

https://linuxaria.com/article/the-best-driving-games-and-car-games-on-linux

blobwars
flightgear
gl-117 : semble buggué, même à la souris le menu ne répond pas o_O
qjoypad : ne se lance pas ?
plee the bear ?
gltron ?
retux

torcs (un jeu de voitures)
tuxracer
warsow


rocksndiamonds
supertux

linuxconsoletools contient jstest qui affiche sur quel bouton on appuie



un urpmf gamepad qui cherche les fichiers contenant le mot gamepad permet de trouver quelques paquets supplémentaires :
btanks
fillets-ng
fs-uae-launcher
raceintospace
supertuxkart
tanks-of-freedom
tecnoballz
tsc
tux_aqfh
wyrmsun
xtux



Microsoft Sidewinder sous Linux

une manette avec start/mode et plein de boutons, connecteur DA-15
modprobe -i sidewinder analog

lsmod|grep -iE "analog|sidewinder|joydev"

analog 16384 0
joydev 24576 0
sidewinder 20480 0
gameport 24576 4 sidewinder,analog,emu10k1_gp

nov. 01 20:47:22 hatlab17-2008 kernel: input: Microsoft SideWinder GamePad as /devices/pci0000:00/0000:00:14.4/0000:04:01.1/gameport0/input/input13

nov. 01 21:11:12 hatlab17-2008 kernel: input: Analog 2-axis 4-button joystick as /devices/pci0000:00/0000:00:14.4/0000:04:01.1/gameport0/input/input14

On a aussi une manette Sony, mais là le connecteur a l'air encore plus spécifique /o\ (PS3 sans doute)

MT Logic Power wheel sous Linux

un volant avec pédalier pour les vitesses, connecteur DA-15
nov. 01 21:11:12 hatlab17-2008 kernel: input: Analog 2-axis 4-button joystick as /devices/pci0000:00/0000:00:14.4/0000:04:01.1/gameport0/input/input14



gamepad PS3

mais en USB ou bluetooth : https://forum.ubuntu-fr.org/viewtopic.php?id=388524

nom des modules kernel

une liste plus longue de pilotes : http://www.ubuntugeek.com/how-to-set-up-a-gameportgamepad-or-joystick-in-ubuntu.html
Pour développer un pilote : https://www.kernel.org/doc/html/latest/input/gameport-programming.html

https://www.queryxchange.com/q/15_72866/ps3-controller-on-fedora-17/



joypad, wind..., hid, input

mknod /dev/input/js0 c 13 0

sur mageia : joydev

revoir les traces de journalctl -f


Benchmark de cartes graphiques

https://dri.freedesktop.org/wiki/Benchmarking/

Autres benchmarks http://cookerspot.tuxfamily.org/wikka.php?wakka=Blog20070501Benchmarking

https://www.phoronix.com/scan.php?page=article&item=gaming-eojan-2019

Comparaison Geforce 4MX et ATI Radeon 9200

CPU : AMD Athlon(tm) XP 2100+
GPU : NV11 [GeForce2 MX/MX 400]
openarena +exec anholt 2>&1 | egrep -e '[0-9]+ frames'
840 frames 19.4 seconds 43.4 fps 13.0/23.1/106.0/8.6 ms
840 frames 19.2 seconds 43.7 fps 12.0/22.9/123.0/8.5 ms

GPU ATI Radeon 9200
840 frames 13.6 seconds 61.8 fps 6.0/16.2/160.0/7.7 ms
840 frames 13.5 seconds 62.4 fps 7.0/16.0/103.0/6.5 ms

GPU Nvidia Geforce 6600 - NVIDIA Corporation|NV43 [GeForce 6600] [DISPLAY_VGA] (vendor:10de device:00f2 subv:1043 subd:81b1) (rev: a2)

840 frames 21.6 seconds 38.9 fps 13.0/25.7/164.0/7.3 ms
avec pilote nouveau et lancé une seule fois sous XFCE

En remplaçant par le pilote propriétaire nvidia304, la première fois n'est pas très rapide, la 2è déjà beaucoup plus efficace
748 frames 14.1 seconds 53.0 fps 4.0/18.9/6236.0/10.1 ms
[sunlab78@ordinosaure demos]$ openarena +exec anholt 2>&1 | egrep -e '[0-9]+ frames'
840 frames 9.1 seconds 92.6 fps 4.0/10.8/102.0/4.8 ms
840 frames 8.9 seconds 94.1 fps 4.0/10.6/96.0/4.3 ms


Issu de https://www.cpubenchmark.net/low_end_cpus.html

491
Intel Pentium 4 3.46GHz 487
Intel Pentium 4 3.80GHz 487
Mobile Intel Pentium 4 3.46GHz 478
Intel Pentium 4 3.40GHz 396
Intel Pentium 4 3.20GHz 375
Intel Pentium 4 3.00GHz 354
Intel Pentium 4 3.06GHz 347
Intel Pentium 4 2.80GHz 322
Intel Pentium 4 2.93GHz 303
Intel Pentium 4 2.60GHz 288
Intel Pentium 4 2.66GHz 254
Intel Pentium 4 2.53GHz 248
Intel Pentium 4 2.50GHz 245
Intel Pentium 4 2.40GHz 228
Intel Pentium 4 2.26GHz 221
Intel Pentium 4 2.20GHz 210
Intel Pentium 4 1600MHz 193
Intel Pentium 4 4.00GHz 184
Intel Pentium 4 1.40GHz 164
Intel Pentium 4 1.70GHz 133
Intel Pentium 4 1300MHz 119

AMD Athlon 2100+ 323 https://www.cpubenchmark.net/cpu.php?cpu=AMD+Athlon+XP+2100%2B&id=224
AMD Athlon 2100+ 287 https://www.cpubenchmark.net/cpu.php?cpu=AMD+Athlon+XP2100%2B&id=1547


issu de https://www.videocardbenchmark.net/low_end_gpus.html
Radeon 9200 4 https://www.videocardbenchmark.net/gpu.php?gpu=RADEON+9200&id=558

Essayer de trouver tour ayant une meilleure carte graphique et les pins disponibles pour brancher le gameport




CategoryHobby
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki