xpadneo icon indicating copy to clipboard operation
xpadneo copied to clipboard

add option to disable pressure-dependent effect intensity for the triggers

Open Etaash-mathamsetty opened this issue 3 years ago • 5 comments

currently, most games don't expect a pressure-dependent effect, so the trigger rumble is way too strong. I want to disable that feature so the trigger rumble actually works like normal. edit: tried my other controller, it is strong, but for the problematic controller, it is really noisy, so I think the actual reason is that something in the right trigger of one of the controllers is knocking something

Etaash-mathamsetty avatar May 13 '22 19:05 Etaash-mathamsetty

You can use the module parameter rumble_attenuation=0,50 to attenuate the trigger rumble by 50 percent (or some other value, the first value attenuates all motors, the second one attenuates only the triggers and is optional). If you want to disable it completely, use trigger_rumble_mode=2 which disables trigger rumble motor programming.

kakra avatar May 14 '22 19:05 kakra

that's only a reduction though right? (I haven't tried it)

Etaash-mathamsetty avatar May 15 '22 16:05 Etaash-mathamsetty

Both rumble_attenuation=0,100 and trigger_rumble_mode=2 disable it completely. If you use lower values than 100%, the effect is reduced by that percentage value so you could still adjust it to your liking if you want to use it but it is too strong.

so the trigger rumble actually works like normal

The kernel does not currently support trigger rumble. So games won't be able to use it natively. I think the patches for SDL or wine aren't there yet, too. SDL can bypass the kernel to directly program the triggers, in this case xpadneo isn't involved at all.

kakra avatar May 15 '22 17:05 kakra

Both rumble_attenuation=0,100 and trigger_rumble_mode=2 disable it completely. If you use lower values than 100%, the effect is reduced by that percentage value so you could still adjust it to your liking if you want to use it but it is too strong.

so the trigger rumble actually works like normal

The kernel does not currently support trigger rumble. So games won't be able to use it natively. I think the patches for SDL or wine aren't there yet, too. SDL can bypass the kernel to directly program the triggers, in this case xpadneo isn't involved at all.

oh ok that makes sense

Etaash-mathamsetty avatar May 15 '22 17:05 Etaash-mathamsetty

Yes, xpadneo's trigger rumble effect is just a way to make use of the trigger rumble while games cannot actually use it at all because the interfaces are missing. So I decided we can create a synthetic effect by using the current maximum amount of both main motors, and then apply this to each trigger based on how much you press the trigger. This works quite well for a lot of games to create some more haptic feedback but depending on the game, it may be too strong.

kakra avatar May 15 '22 17:05 kakra

Closing due to no feedback. Current behavior can be adjusted via module parameters. This feature will be redesigned when trigger rumble supports lands in kernels, and work properly then.

kakra avatar Jun 14 '23 21:06 kakra