Difference between revisions of "Command line/fr"
(Updating to match new version of source page) |
|||
Line 2: | Line 2: | ||
==Motivation== | ==Motivation== | ||
+ | <span class="mw-translate-fuzzy"> | ||
Ce n'est pour l'instant pas pour les performances, mais une future version pourrait être capable de s'exécuter depuis un terminal Linux sans nécessiter d'environnement graphique.<br /> | Ce n'est pour l'instant pas pour les performances, mais une future version pourrait être capable de s'exécuter depuis un terminal Linux sans nécessiter d'environnement graphique.<br /> | ||
Cela améliorerait les performances sur tout type de matériel, en particulier sur les petites matériels comme le [http://www.raspberrypi.org/ raspberry pi] ou les [http://en.wikipedia.org/wiki/Thin_client clients légers].<br /> | Cela améliorerait les performances sur tout type de matériel, en particulier sur les petites matériels comme le [http://www.raspberrypi.org/ raspberry pi] ou les [http://en.wikipedia.org/wiki/Thin_client clients légers].<br /> | ||
C'est aussi utile pour d'autres applications comme l'automatisation. | C'est aussi utile pour d'autres applications comme l'automatisation. | ||
+ | </span> | ||
==Linux + bluetooth== | ==Linux + bluetooth== | ||
+ | ===Set the dongle address=== | ||
+ | |||
+ | '''It is highly recommended to use a CSR Bluecore4-rom dongle. Check the [[Bluetooth_dongle|compatibility list]].''' | ||
+ | |||
+ | Plug a Sixaxis previously [[FAQ#Why_can.27t_we_use_any_bluetooth_address.3F|paired]] with the target PS3. | ||
+ | |||
+ | Type in a terminal: | ||
+ | sixaddr | ||
+ | Result: | ||
+ | Current Bluetooth master: ps3_bt_address | ||
+ | Current Bluetooth Device Address: sixaxis_bt_address | ||
+ | Get the current dongle address: | ||
+ | bdaddr -r -i hciN | ||
+ | where N is the dongle index (type "hciconfig -a" to see all dongles). | ||
+ | |||
+ | Write it down so as to be able to restore it later. | ||
+ | |||
+ | Set the dongle address: | ||
+ | bdaddr -r -i hciN sixaxis_bt_address | ||
+ | Check the result: | ||
+ | bdaddr -r -i hciN | ||
+ | |||
+ | ===Run GIMX=== | ||
+ | |||
+ | <span class="mw-translate-fuzzy"> | ||
Dans un terminal:<br /> | Dans un terminal:<br /> | ||
emu ps3_mac_address bt_device_index sixaxis_index | emu ps3_mac_address bt_device_index sixaxis_index | ||
+ | </span> | ||
+ | <span class="mw-translate-fuzzy"> | ||
* ps3_mac_address | * ps3_mac_address | ||
:Cet argument est obligatoire. | :Cet argument est obligatoire. | ||
Line 19: | Line 48: | ||
:L'index du sixaxis (ex : 0 pour le sixaxis 1, 1 pour le sixaxis 2, etc).<br /> | :L'index du sixaxis (ex : 0 pour le sixaxis 1, 1 pour le sixaxis 2, etc).<br /> | ||
:Cet argument est optionnel, l'index par défaut est 0. | :Cet argument est optionnel, l'index par défaut est 0. | ||
+ | </span> | ||
+ | <span class="mw-translate-fuzzy"> | ||
Dans un autre terminal:<br /> | Dans un autre terminal:<br /> | ||
emuclient --config file_name | emuclient --config file_name | ||
+ | </span> | ||
* file_name | * file_name | ||
Line 30: | Line 62: | ||
==Linux ou Windows + DIY USB adapter ou GPP== | ==Linux ou Windows + DIY USB adapter ou GPP== | ||
+ | <span class="mw-translate-fuzzy"> | ||
Dans un terminal:<br /> | Dans un terminal:<br /> | ||
GIMX 0.51 ou antérieur : | GIMX 0.51 ou antérieur : | ||
emuclient --config file_name --serial --port /dev/ttyUSBX --joystick --precision 16 --refresh 4 | emuclient --config file_name --serial --port /dev/ttyUSBX --joystick --precision 16 --refresh 4 | ||
+ | </span> | ||
− | + | <span class="mw-translate-fuzzy"> | |
+ | GIMX plus récent que la 0.51 : | ||
emuclient --config file_name --port /dev/ttyUSBX --type joystick --refresh 4 | emuclient --config file_name --port /dev/ttyUSBX --type joystick --refresh 4 | ||
+ | </span> | ||
options pour emuclient : | options pour emuclient : |
Revision as of 16:17, 16 May 2013
Contents
Motivation
Ce n'est pour l'instant pas pour les performances, mais une future version pourrait être capable de s'exécuter depuis un terminal Linux sans nécessiter d'environnement graphique.
Cela améliorerait les performances sur tout type de matériel, en particulier sur les petites matériels comme le raspberry pi ou les clients légers.
C'est aussi utile pour d'autres applications comme l'automatisation.
Linux + bluetooth
Set the dongle address
It is highly recommended to use a CSR Bluecore4-rom dongle. Check the compatibility list.
Plug a Sixaxis previously paired with the target PS3.
Type in a terminal:
sixaddr
Result:
Current Bluetooth master: ps3_bt_address Current Bluetooth Device Address: sixaxis_bt_address
Get the current dongle address:
bdaddr -r -i hciN
where N is the dongle index (type "hciconfig -a" to see all dongles).
Write it down so as to be able to restore it later.
Set the dongle address:
bdaddr -r -i hciN sixaxis_bt_address
Check the result:
bdaddr -r -i hciN
Run GIMX
Dans un terminal:
emu ps3_mac_address bt_device_index sixaxis_index
- ps3_mac_address
- Cet argument est obligatoire.
- bt_device_index
- L'index du périphérique bluetooth (ex : 0 pour hci0, 1 pour hci1, etc).
Cet argument est optionnel, l'index par défaut est 0.
- sixaxis_index
- L'index du sixaxis (ex : 0 pour le sixaxis 1, 1 pour le sixaxis 2, etc).
- Cet argument est optionnel, l'index par défaut est 0.
Dans un autre terminal:
emuclient --config file_name
- file_name
- Le nom du fichier de config, dans le répertoire ~/.emuclient/config directory (ex : toto.xml).
- Cet argument est obligatoire.
- Utiliser des backslashs pour échaper les espaces.
Linux ou Windows + DIY USB adapter ou GPP
Dans un terminal:
GIMX 0.51 ou antérieur : emuclient --config file_name --serial --port /dev/ttyUSBX --joystick --precision 16 --refresh 4
GIMX plus récent que la 0.51 :
emuclient --config file_name --port /dev/ttyUSBX --type joystick --refresh 4
options pour emuclient :
- --config file_name
- Le nom du fichier de config, dans le répertoire ~/.emuclient/config directory (ex : toto.xml).
- Cet argument est obligatoire.
- --serial
- Seulement obligatoire avec un adaptateur USB DIY.
- Cette option n'est applicable que pour GIMX 0.51 ou antérieur.
- --port /dev/ttyUSB0
- Le port série. Ex: /dev/ttyUSB0 sous Linux, COM4 sous windows.
- Seulement obligatoire avec un adaptateur USB DIY.
- --joystick / --GPP / --360pad / --Sixaxis / --PS2pad
- Le type d'adaptateur USB.
- --joystick pour l'adaptateur USB à faire soi même, --Sixaxis pour le dongle bluetooth.
- Cette option n'est applicable que pour GIMX 0.51 ou antérieur.
- --type joystick/GPP/360pad/Sixaxis/PS2pad
- Le type d'adaptateur USB.
- --joystick pour l'adaptateur USB à faire soi même, --Sixaxis pour le dongle bluetooth.
- Cette option n'est applicable que pour GIMX ultérieur à 0.51.
- --precision 16
- La précision des axes. Joystick: 16, Autres adaptateurs: 8.
- Cette option n'est applicable que pour GIMX 0.51 ou antérieur.
- --refresh 4
- La période de rafraîchissement, en ms.
- Valeurs recommandées:
- joystick/GPP/360pad/Sixaxis: 4 (250Hz)
- PS2pad: 16 (62.5Hz)
Options générales pour emuclient
- --curses
- curses Affiche l'état du contrôleur avec ncurses.
- La calibration de la souris est disponible par cette interface.
- --status
- Affiche l'état du contrôleur dans un terminal.
- --nograb
- Ne pas capturer le pointeur de la souris.
- --force-updates
- Envoyer l'état des axes et boutons même en cas d'inactivité (pour une compatibilité avec les jeux comme DNF).
- --subpos
- Améliorer la précision des sticks (compense les arrondis).
- --keygen key
- Générer un événement au démarrage d'emuclient.
- La principale utilisation est l'automatisation de l'exécution de macros.
- Les événements non générés par des macros sont ignorés.
- Le seul moyen de quitter est d'ajouter KEYDOWN SHIFT et KEYDOWN ESCAPE à la fin de la macro, ou d'utiliser --nograb et de taper ctrl+c dans le terminal.
- Un autre cas d'utilisation est l'envoi d'une commande unique (requiert l'utilisation d'une macro car la touche n'est pas relâchée).