berarma / new-lg4ff

Experimental Logitech force feedback module for Linux
GNU General Public License v2.0
299 stars 18 forks source link

Support for G923 (PS4/PC version only) #50

Closed JacKeTUs closed 1 year ago

JacKeTUs commented 3 years ago

Added support for Logitech G923 Racing Wheel for Playstation 4 and PC (0x046d:0xc267, 0x046d:0xc266)

What works:

  1. Force Feedback (setting range (40-900), spring feedbacks, etc..)
  2. Steering
  3. H gear shifting
  4. Pedals
  5. FF autocentering
  6. LEDs (similar to G29)
  7. All buttons on the wheel
  8. Configuration with Oversteer with patch (dirty build with added support for g923)

What not works (or not fully tested):

  1. Switching between wheel modes in driver (G29/G923)
  2. Not all games support g923 out of the box. In DIRT 4/Rally, for example, you need to add your wheel model to ./share/inputdevices.json relative to game folder
  3. TrueForce. In FF v1.6 specifications there are no word about it, no examples etc. Idk if it is just a fancy word for FF, or really a software feature that needed to be implemented in driver as well.

To switch from PS to PC mode you will need tool usb_modeswitch and udev rule:

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c267", RUN+="/usr/sbin/usb_modeswitch -v 046d -p c267 -m 03 -r 03 -M 30f8090701010000"

To reload udev rules: udevadm control --reload-rules After connecting, wheel will reconnect with 0x046d:0xc266, and will be probed by new-lg4ff. UPD (2021-11-18): Now switching from PS mode to Classic implemented in driver, so no more need to manually call usb_modeswitch or create udev rules.

Similar to G29, wheel only could work with 1st interface. Attempts to initialize all interfaces all ends up in kernel panics.

In PR: Added copies of lines with G29, because they are similar wheels. Added command for switch to the G923 mode if anyone in the future will try to implement switching modes.

Should close #44

Chr1s70ph commented 2 years ago

I have installed the patched version now. Still, no changes. The module is loaded, but it does not even show up in dmesg like it is said to do in the README. I have installed it using dkms and manually, no change in behavior.

I forgot to mention, that I have the xbox version of the wheel btw.

berarma commented 2 years ago

I have installed the patched version now. Still, no changes. The module is loaded, but it does not even show up in dmesg like it is said to do in the README. I have installed it using dkms and manually, no change in behavior.

I forgot to mention, that I have the xbox version of the wheel btw.

This driver won't work for your wheel. You need an updated version of the logitec-hidpp module.

Lars-Saetaberget commented 1 year ago

Is it still planned to merge this? My G923 is recognized by lsusb but thats about it. Not even showing up in /proc/bus/input/devices. Also its not recognized as an input. Don't quite know how to deal with this.

Absolutely, but I don't have the wheel and I need someone to test the changes. Could you try this branch and report your results?

I have this wheel (G923 PS4/PC) and the patch works for me. Anything in particular you want me to test?

berarma commented 1 year ago

Is it still planned to merge this? My G923 is recognized by lsusb but thats about it. Not even showing up in /proc/bus/input/devices. Also its not recognized as an input. Don't quite know how to deal with this.

Absolutely, but I don't have the wheel and I need someone to test the changes. Could you try this branch and report your results?

I have this wheel (G923 PS4/PC) and the patch works for me. Anything in particular you want me to test?

Thanks. I've merged it, please, update to master and report any issue.

Ghido03 commented 1 year ago

I have G923 Xbox version, and would likes ti help you guys whit testing. But im not a kernel writer so, i need ant instruction on how to do. :)

berarma commented 1 year ago

I have G923 Xbox version, and would likes ti help you guys whit testing. But im not a kernel writer so, i need ant instruction on how to do. :)

This is already in the latest release. Follow the instructions in the README to install.

Ghido03 commented 1 year ago

I have G923 Xbox version, and would likes ti help you guys whit testing. But im not a kernel writer so, i need ant instruction on how to do. :)

This is already in the latest release. Follow the instructions in the README to install.

oh, great. Then the README should be updated because it is still written that the Xbox version of the g923 is not supported. Thank you for the job. One last question, but is it also compatible with the https://github.com/gamingdoom/beamng-shifting-leds.git tool for the operation of the gear leds on BeamNG?

berarma commented 1 year ago

I have G923 Xbox version, and would likes ti help you guys whit testing. But im not a kernel writer so, i need ant instruction on how to do. :)

This is already in the latest release. Follow the instructions in the README to install.

oh, great. Then the README should be updated because it is still written that the Xbox version of the g923 is not supported. Thank you for the job.

That's true, the XBox version isn't supported.

One last question, but is it also compatible with the https://github.com/gamingdoom/beamng-shifting-leds.git tool for the operation of the gear leds on BeamNG?

I don't know.

leillo1975 commented 1 year ago

One question, is the G923 XBOX supported by Oversteer?

berarma commented 1 year ago

One question, is the G923 XBOX supported by Oversteer?

It is but it just means Oversteer will recognize the wheel, it doesn't add support for any hardware features on this or any other wheel. Anyway, this PR is for new-lg4ff.

leillo1975 commented 1 year ago

I know it, but I made this question to know if this user could help to give support to this wheel on Oversteer in case it did not work. That would be my next message

berarma commented 1 year ago

@Ghido03, @leillo1975 Sorry, I had mistakenly read it was a PS version.

This module won't work for your wheel. Sorry again.

leillo1975 commented 1 year ago

Perhaps @Ghido03 could help to give support for G923 Xbox on Oversteer

Ghido03 commented 1 year ago

Perhaps @Ghido03 could help to give support for G923 Xbox on Oversteer

Yea, that's what i meant, giving all details for help you to give support for the g923 Xbox version too.