04 Aug, 2011

1 commit

  • This is the first out of five patches me and Simon Wood (CC'd) have been
    working on. It separates the handling of Logite from the generic lgff driver
    and adds additional features specific for the Logitech wheels, namely

    - Native mode support for Driving Force GT, Driving Force Pro, G25 and G27
    wheels Every Logitech wheel reports itself as generic Logitech Driving Force
    wheel (VID 046d, PID c294). This is done to ensu wheel will work on every USB
    HID-aware system even when no Logitech driver is available. It however limits
    the capabilit wheel - range is limited to 200 degrees, G25/G27 don't report the
    clutch pedal and there is only one combined axis for t brake. The switch to
    native mode is done via hardware-specific command which is different for each
    wheel. When the wheel receives such command, it simulates reconnect and reports
    to the OS with its actual PID.

    - Adjustable wheel range DFGT, DFP, G25 and G27 have variable range of the
    steering wheel. The range is limited by applying a maximum constant when the
    wheel is turned beyond the allowed range. The limit as also set by a
    hardware-specific command. There is a comm command for DFGT, G25 and G27 and
    another one for DFP. It is probably possible to use the DFP command to limit
    the range other Logitech wheels too, but this is not supported by the official
    Logitech driver for Windows. The patch adds a sysfs interface which allows for
    the range to be set from userspace.

    - Fixed autocentering command All Logitech wheels support FF_AUTOCENTER effect.
    The original implementation in the lgff driver didn't work well with patch
    fixes it. According to USB communication sniffs the Formula Force EX (pretty
    much rebranded original Driving Force accept the generic autocentering command,
    this issue is also addressed by the patch

    There are still some features this patch doesn't cover, but since some of them
    will most likely require modifications of memless driver we have decided not to
    include them yet.

    As first we decided to move the handling of Logitech wheels from hid-lgff
    driver to hid-lg4ff driver (originally used fo At also adds PID of Logitech
    Driving Force GT.

    Signed-off-by: Michal Malý
    Signed-off-by: Simon Wood
    Signed-off-by: Jiri Kosina

    Michal Malý
     

23 May, 2011

1 commit


03 May, 2011

1 commit

  • Gere's a small patch to add support for the Logitech G27 wheel, since
    the prior patch only added FF support for the Driving Force Pro and G25.
    The patch contains the changes from the G25 and DFP, too.

    I tested the changes with wine/LFS and got full support for all axes and
    buttons.

    Signed-off: Peter Gundermann

    Signed-off-by: Jiri Kosina

    Peter Gundermann
     

01 Apr, 2011

1 commit

  • Small patch to add support for the G25/G27 by adding USB ID's
    as suggested by Peter.

    Boots but otherwise untested as I don't have hardware, .debs for
    kernel (2.6.38) here if want to test/run Ubuntu/Debian:
    http://www.mungewell.org/Logitech_Wii_Wheel/

    Reported-by: Peter Gundermann
    Signed-off-by: Simon Wood
    Signed-off-by: Jiri Kosina

    Simon Wood
     

10 Dec, 2010

1 commit

  • Neaten current uses of dev_ by adding and using
    hid specific hid_ macros.

    Convert existing uses of dev_ uses to hid_.
    Convert hid-pidff printk uses to hid_.

    Remove err_hid and use hid_err instead.

    Add missing newlines to logging messages where necessary.
    Coalesce format strings.

    Add and use pr_fmt(fmt) KBUILD_MODNAME ": " fmt

    Other miscellaneous changes:

    Add const struct hid_device * argument to hid-core functions
    extract() and implement() so hid_ can be used by them.
    Fix bad indentation in hid-core hid_input_field function
    that calls extract() function above.

    Signed-off-by: Joe Perches
    Signed-off-by: Jiri Kosina

    Joe Perches
     

13 Jan, 2010

1 commit

  • Implements a new USB-HID for Force Feedback based on the normal
    Logitech Force Feedback code and FF-Memless.

    Currently only supports the FF_CONSTANT effect although the joystick
    appears to support additional non-standard ones.

    Signed-off-by: Gary Stein
    Signed-off-by: Jiri Kosina

    Gary Stein
     

23 Jul, 2009

2 commits

  • list_entry, which is an alias for container_of, cannot return NULL, as
    there is no way to add a NULL value to a doubly linked list.

    A simplified version of the semantic match that findds this problem is as
    follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @r@
    expression x,E;
    statement S1,S2;
    position p,p1;
    @@

    *x = list_entry@p(...)
    ... when != x = E
    *if@p1 (x == NULL) S1 else S2
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Jiri Kosina

    Julia Lawall
     
  • Add force feedback support for Logitech WingMan Formula Force GP
    (0x046d/0xc293).

    Reported-by: wylda@volny.cz
    Tested-by: wylda@volny.cz
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     

15 May, 2009

1 commit


13 May, 2009

1 commit

  • Some months ago I send patch which adds autocentering for Logitech MOMO Wheel.
    Now I have access to Logitech G25 Racing Wheel and test autocentering for it. I
    write patch for current kernel to support autocentering for G25 in legacy mode
    (this device supports other modes, but after switching device reconnects with
    ID 0xc299 and FF support comes out) and others Logitech (Driving Force,
    Formula Force Ex etc) wheels with ID 046d:c294.

    Signed-off-by: Sergey Belyashov
    Signed-off-by: Jiri Kosina

    Sergey Belyashov
     

15 Oct, 2008

2 commits

  • Current kernel has no support for autocentering for Logitech wheels. By
    default autocentering enabled in wheel and constant effect does not work
    properly. Using USB sniffer I found command which change autocentering
    settings: 0xFE, 0x0D, 0x0R, 0x0L, 0x80, 0x00, 0x00, where R - clockwise force,
    L - counter-clockwise (0x0-0xF, 0xC = 100%).

    Signed-off-by: Sergey Belyashov
    Signed-off-by: Jiri Kosina

    Sergey Belyashov
     
  • Merge the logitech force feedback processing directly into logitech
    driver from the usbhid core.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Jiri Kosina

    Jiri Slaby