[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problème avec un dédoubleur de Joystick USB



david_Pailler a écrit :

Alors, quel est le couple VID+DID de ton adaptateur ?

Bus 004 Device 003: ID 0810:0001 Personal Communication Systems, Inc.

Apparemment il s'agit d'un adaptateur PantherLord Twin USB/PS2, qui est supporté nativement à partir du noyau 2.6.21.

Extrait du ChangeLog-2.6.21 :

    hid: quirk for multi-input devices with unneeded output reports

    Add new quirk HID_QUIRK_SKIP_OUTPUT_REPORTS to skip output reports
    when enumerating reports on a hid-input device. Add this quirk and
    HID_QUIRK_MULTI_INPUT to 0810:0001.

    PantherLord Twin USB Joystick, 0810:0001 has separate input reports
    for 2 distinct game controllers in the same interface, so it needs
    HID_QUIRK_MULTI_INPUT. However, the device also contains one output
    report per controller which is used to control the force feedback
    function, and we do not want those to appear as separate input
    devices as well. The simplest approach seems to be to add a quirk to
    skip output reports on 0810:0001, and allow the force feedback
    driver to handle those.
    [...]
    hid: force feedback driver for PantherLord USB/PS2 2in1 Adapter

    Add a force feedback driver for PantherLord USB/PS2 2in1 Adapter,
    0810:0001. The device identifies itself as "Twin USB Joystick".

Néanmoins j'ai trouvé une page de blog (en polonais) qui mentionne un patch pour le noyau 2.6.20. Avec un peu de bol il pourrait peut-être s'appliquer au 2.6.18.

Blog : <http://dunder.jogger.pl/2007/07/05/twin-usb-joystick-w-ubuntu/>
Patch : <http://dunder.jogger.pl/files/twinusb.diff>

L'article dit que sans le patch l'adaptateur était vu comme un unique périphérique rassemblant tous les axes et boutons des deux joysticks. Est-ce aussi ton cas ?

Pas exactement:
Je n'ai qu'un joystick qu est reconnu:
/dev/input/js0 pas de js1

J'ai bien compris : un seul périphérique js0. Mais js0 a-t-il seulement les axes et boutons d'un seul joystick physique ou bien des deux ?

Euh ... , comment je vois cela ?

Ben... j'en sais rien, moi... Y a pas un utilitaire de calibrage et de test des joysticks qui afficherait la liste des axes et boutons comme dans Windows ?



Reply to: