轮子是Logitech driving force DFGT
.该平台:
linux-dopx:/home/anisha/ # cat /etc/issue && uname -a
Welcome to openSUSE 11.3 "Teal" - Kernel \r (\l).
Linux linux-dopx 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux
要检查我所做的力反馈:
linux-dopx:/home/anisha/ # fftest /dev/input/event4
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES
Device /dev/input/event4 opened
Axes query:
Effects:
Number of simultaneous effects: 0
Upload effects[0]: Function not implemented
Upload effects[1]: Function not implemented
Upload effects[2]: Function not implemented
Upload effects[3]: Function not implemented
Upload effects[4]: Function not implemented
Upload effects[5]: Function not implemented
Enter effect number, -1 to exit
fftest 失败并显示Function not implemented
消息。
正在通过 /dev/input/ 中的 event4 和 js0 文件检测轮子
# cat /proc/bus/input/devices
shows:
I: Bus=0003 Vendor=046d Product=c29a Version=0111
N: Name="Driving Force GT"
P: Phys=usb-0000:00:1d.3-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input7
U: Uniq=
H: Handlers=event4 js0
B: EV=1b
B: KEY=1f0000 0 0 0 0 0 0 ffff00000000 0 0 0 0
B: ABS=30007
B: MSC=10
如何应对?不,我没有运行任何游戏。我只是想将这些效果应用到我的方向盘上。
我什至尝试过,modprobe hid-logitech
但modprobe hid
他们没有帮助。
请帮忙。
答案1
答案2
- 我将文件中的 标签替换
LOGITECH_FF
为。LOGIWHEELS_FF
/usr/src/linux-2.6.34-12/drivers/hid/Kconfig
- 设置
default y
如下图:
config LOGIWHEELS_FF bool "Logitech force feedback support" depends on HID_LOGITECH default y select INPUT_FF_MEMLESS help Say Y here if you have one of these devices: -Logitech WingMan Cordless RumblePad -Logitech WingMan Cordless RumblePad 2 -Logitech WingMan Force 3D -Logitech Formula Force EX -Logitech WingMan Formula Force GP -Logitech MOMO Force wheel and if you want to enable force feedback for them. Note: if you say N here, this device will still be supported, but without force feedback
fftest
如下所示,以恒定的力进行工作。
linux-dopx:/home/anisha/ # fftest /dev/input/event4
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES
Device /dev/input/event4 opened
Axes query:
Effects: Constant
Number of simultaneous effects: 16
Upload effects[0]: Invalid argument
Upload effects[2]: Invalid argument
Upload effects[3]: Invalid argument
Upload effects[4]: Invalid argument
Upload effects[5]: Invalid argument
Enter effect number, -1 to exit
1
Now Playing: Constant Force
Enter effect number, -1 to exit
谢谢:西蒙从linux 输入邮件列表。
http://www.spinics.net/lists/linux-input/msg19084.html