Linux
如何在核心 2.6.34 - 64 位中啟用力回饋?
輪子是
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
他們沒有幫助。請幫忙。
- 我用文件中的標籤替換
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-input郵件列表的Simon 。http://www.spinics.net/lists/linux-input/msg19084.html
一些使用者報告說測試 /dev/input/eventX,在 /dev/input/js0 之後是他們的關鍵。
另一個嘗試了所有可能的 /dev/input/eventX 並最終找到了一個可行的。
但是這個操縱桿很可能沒有被 Linux 很好地支持。在vdrift wiki上,他們展示瞭如何製作快速更新檔以獲得 G25 作品。由於您的 Suse 核心已經辨識了它的名稱,因此您不需要這樣做。您還可以查看您的 dmesg 並查看是否在 Suse 核心中啟動了強制回饋,就像現在在 Ubuntu 中一樣