-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force feedback doesn't work in linux #30
Comments
For what it's worth, I added this to the descriptor:
and
and I uncommented startDelay from the struct, and force feedback now seems to "work" in linux, in that the driver is at least happy and I haven't tried it in windows yet, but I am just getting started on developing the firmware for my steering wheel project. |
I'll test it on Linux. But I lack of the ffb test application on linux platform, can you provide? |
There's I think just looking at the dmesg output will get you pretty far, though. If it gets past I have my fix here, which seems to work well: I haven't tried it in windows, so I'd be curious to know if its driver implementation chokes on the I also have this commit which adds in default auto-centering. I "reverse engineered" it from what the linux driver was expecting, so I don't know how well it would work with the windows driver: |
|
I'm not particularly familiar with USB HID descriptors, but it appears that the usbhid driver, hid-pidff.c, is looking for
0xa7
and not finding it.This is apparently a "start delay" parameter. Looking in PIDReportType.h, I can see that it's commented out in the corresponding struct:
This thread seems to talk about the same issue on a Granite Devices SimuCUBE. https://www.spinics.net/lists/linux-usb/msg190787.html
It seems like this is part of the HID PID spec, but maybe the windows driver is buggy and doesn't implement it, and so it's been omitted from the descriptor to make the device work in windows?
It's kind of a bummer that it doesn't work in linux, because it's much easier to develop my firmware from there. I'll try to work around it and report back, but maybe someone else has a better idea.
The text was updated successfully, but these errors were encountered: