Skip to content

JacKeTUs/moza-ff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Force feedback support for MOZA steering wheels

Linux module driver for MOZA driving wheels.

MOZA wheels are basically DirectInput wheels. In that repository - copy of pidff driver from 6.6 kernel with some changes around infinite length effects (like that berarma/ffbtools#26)

And that's basically it

What devices are supported?

Bases:

  1. MOZA R3
  2. MOZA R5
  3. MOZA R9
  4. MOZA R12
  5. MOZA R16
  6. MOZA R21

Wheel rims (others yet untested):

  1. MOZA RS V2

What works?

  1. FFB (all effects from device descriptor)
  2. All inputs (wheel axis, buttons)

What does not work?

  1. Telemetry functions (Shift lights, etc), mostly because telemetry works only with proprietary soft, which can't get access to shared memory chunks from games.
  2. Firmware Update function. Use Windows PC or Windows VM at the moment.
  3. Setup through MOZA PitHouse even with some tweaking)

How to use this driver?

There's an AUR packege for Arch Linux maintained by @Lawstorant

Alternatively, you can install it through DKMS or manually.

DKMS

  1. Install dkms
  2. Clone repository to /usr/src/moza-ff
  3. Install the module: sudo dkms install /usr/src/moza-ff
  4. Update initramfs: sudo update-initramfs -u
  5. Reboot

To remove module: sudo dkms remove moza-ff/<version> --all

Manually

  1. Install linux-headers-$(uname -r)
  2. Clone repository
  3. make
  4. sudo insmod hid-moza-ff.ko

To unload module: sudo rmmod hid_moza_ff

How to set up a base parameters?

For now, please, use Android App

Non working method

You can try to setup MOZA PitHouse with Wine. You need to tweak Wine prefix for them.

That soft uses hidraw to set up a base. You need to create udev rule for allow access to hidraw device:

echo 'KERNEL=="hidraw*", ATTRS{idVendor}=="346e", MODE="0660", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/11-moza.rules

udevadm control --reload-rules && udevadm trigger

Then you need to force MOZA soft to use hidraw, not SDL, to find devices:

  1. Create new Wine prefix for them:

    mkdir ~/moza-wine

  2. Launch regedit in prefix:

    WINEPREFIX=$HOME/moza-wine wine regedit

  3. Create two keys in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus:

    • DisableInput (DWORD) - set to 1;
    • Enable SDL (DWORD) - set to 0; (yes, variable name contains space)
  4. Now you can launch soft through that WINEPREFIX:

    WINEPREFIX=$HOME/moza-wine wine MOZA\ Pit\ House.exe - launch your PitHouse from installation directory.

Known issues with the driver

  1. Firmware update does not work. Please use Windows machine or Windows VM for any firmware updates

Known issues with the firmware

You tell me please

DISCLAIMER

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.