berarma / new-lg4ff

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

Version 0.2 error with G27 wheel #20

Closed alexbrrsclnt closed 4 years ago

alexbrrsclnt commented 4 years ago

Hi!

I have been using version 0.1 without any issue for a while. Today updated to 0.2 and I see this log when I connect the wheel to the usb port.

https://pastebin.com/qLLKEfet

Tell me if I can test any change

jotomo commented 4 years ago

I'm also using a G27, but I don't get the error. Did you (and if not could you try) rebooting? Initially when plugging in, the green LED on the shifter only shortly switched on, so I rebooted to get into a clean state (didn't check the kernel output, but suspected a fault cable).

jotomo commented 4 years ago

Okay, now I see it too when I unplug the wheel, the deinit routine trips up, requiring a restart since rmmod hangs removing the module.

berarma commented 4 years ago

Nice find @jotomo. For @alexbrrsclnt, the wheel is disconnecting when loading the module. I don't know the reason, maybe unrelated to the driver, like a faulty cable.

I'll try to fix the error when disconnecting the cable. Hopefully this will fix the other problem too.

berarma commented 4 years ago

For me, it's failing when connecting the wheel after the module is loaded. If that's what happens to you, ~a temporary workaround would be having the wheel already connected when booting~.

berarma commented 4 years ago

I've finally uncovered the real issue and it's fixed in master. It failed when the wheel was reconnected with the buggy module loaded. Please, test it and confirm it's fixed.

jotomo commented 4 years ago

Tested unloading and loading and plugging/unplugging a few times. No more oops, wheel still working in-game :+1:

berarma commented 4 years ago

Thanks for your reports. New release up.