모종의 음모/force feedback
driving force gt on linux
구차니
2024. 10. 21. 19:50
별별 신기한게 많이 보이네..
$ sudo evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Sleep Button /dev/input/event1: Lid Switch /dev/input/event10: HDA Intel PCH Line /dev/input/event11: HDA Intel PCH Dock Line Out /dev/input/event12: HDA Intel PCH Headphone /dev/input/event13: HDA Intel PCH HDMI/DP,pcm=3 /dev/input/event14: Wacom Serial Penabled 2FG Touchscreen Pen /dev/input/event15: Wacom Serial Penabled 2FG Touchscreen Finger /dev/input/event16: Driving Force GT /dev/input/event2: Power Button /dev/input/event3: AT Translated Set 2 keyboard /dev/input/event4: PS/2 Generic Mouse /dev/input/event5: SynPS/2 Synaptics TouchPad /dev/input/event6: ST LIS3LV02DL Accelerometer /dev/input/event7: HP WMI hotkeys /dev/input/event8: Video Bus /dev/input/event9: HDA Intel PCH Mic Select the device event number [0-16]: 16 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0x46d product 0xc29a version 0x111 Input device name: "Driving Force GT" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 288 (BTN_TRIGGER) Event code 289 (BTN_THUMB) Event code 290 (BTN_THUMB2) Event code 291 (BTN_TOP) Event code 292 (BTN_TOP2) Event code 293 (BTN_PINKIE) Event code 294 (BTN_BASE) Event code 295 (BTN_BASE2) Event code 296 (BTN_BASE3) Event code 297 (BTN_BASE4) Event code 298 (BTN_BASE5) Event code 299 (BTN_BASE6) Event code 300 (?) Event code 301 (?) Event code 302 (?) Event code 303 (BTN_DEAD) Event code 704 (BTN_TRIGGER_HAPPY1) Event code 705 (BTN_TRIGGER_HAPPY2) Event code 706 (BTN_TRIGGER_HAPPY3) Event code 707 (BTN_TRIGGER_HAPPY4) Event code 708 (BTN_TRIGGER_HAPPY5) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 8132 Min 0 Max 16383 Event code 1 (ABS_Y) Value 0 Min 0 Max 255 Event code 2 (ABS_Z) Value 0 Min 0 Max 255 Event code 16 (ABS_HAT0X) Value 0 Min -1 Max 1 Event code 17 (ABS_HAT0Y) Value 0 Min -1 Max 1 Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Event type 21 (EV_FF) Event code 82 (FF_CONSTANT) Event code 96 (FF_GAIN) Event code 97 (FF_AUTOCENTER) Properties: Testing ... (interrupt to exit) Event: time 1729518696.162275, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90003 Event: time 1729518696.162275, type 1 (EV_KEY), code 290 (BTN_THUMB2), value 1 Event: time 1729518696.162275, -------------- SYN_REPORT ------------ Event: time 1729518696.274274, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90003 Event: time 1729518696.274274, type 1 (EV_KEY), code 290 (BTN_THUMB2), value 0 Event: time 1729518696.274274, -------------- SYN_REPORT ------------ Event: time 1729518699.998246, type 3 (EV_ABS), code 0 (ABS_X), value 8115 Event: time 1729518699.998246, -------------- SYN_REPORT ------------ Event: time 1729518700.738163, type 3 (EV_ABS), code 0 (ABS_X), value 8132 Event: time 1729518700.738163, -------------- SYN_REPORT ------------ Event: time 1729518700.980212, type 3 (EV_ABS), code 0 (ABS_X), value 8149 Event: time 1729518700.980212, -------------- SYN_REPORT ------------ Event: time 1729518704.836213, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90007 Event: time 1729518704.836213, type 1 (EV_KEY), code 294 (BTN_BASE), value 1 Event: time 1729518704.836213, -------------- SYN_REPORT ------------ Event: time 1729518704.858207, type 3 (EV_ABS), code 0 (ABS_X), value 8166 Event: time 1729518704.858207, -------------- SYN_REPORT ------------ Event: time 1729518704.886179, type 3 (EV_ABS), code 0 (ABS_X), value 8183 Event: time 1729518704.886179, -------------- SYN_REPORT ------------ Event: time 1729518704.902084, type 3 (EV_ABS), code 0 (ABS_X), value 8200 Event: time 1729518704.902084, -------------- SYN_REPORT ------------ Event: time 1729518704.914081, type 3 (EV_ABS), code 0 (ABS_X), value 8217 Event: time 1729518704.914081, -------------- SYN_REPORT ------------ Event: time 1729518704.922077, type 3 (EV_ABS), code 0 (ABS_X), value 8234 Event: time 1729518704.922077, -------------- SYN_REPORT ------------ Event: time 1729518704.934138, type 3 (EV_ABS), code 0 (ABS_X), value 8251 Event: time 1729518704.934138, -------------- SYN_REPORT ------------ Event: time 1729518704.944202, type 3 (EV_ABS), code 0 (ABS_X), value 8267 Event: time 1729518704.944202, -------------- SYN_REPORT ------------ Event: time 1729518704.954084, type 3 (EV_ABS), code 0 (ABS_X), value 8284 Event: time 1729518704.954084, -------------- SYN_REPORT ------------ Event: time 1729518704.956124, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90007 Event: time 1729518704.956124, type 1 (EV_KEY), code 294 (BTN_BASE), value 0 Event: time 1729518704.956124, -------------- SYN_REPORT ------------ Event: time 1729518704.962152, type 3 (EV_ABS), code 0 (ABS_X), value 8301 Event: time 1729518704.962152, -------------- SYN_REPORT ------------ Event: time 1729518704.976205, type 3 (EV_ABS), code 0 (ABS_X), value 8318 Event: time 1729518704.976205, -------------- SYN_REPORT ------------ Event: time 1729518704.992190, type 3 (EV_ABS), code 0 (ABS_X), value 8335 Event: time 1729518704.992190, -------------- SYN_REPORT ------------ Event: time 1729518706.026082, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90008 Event: time 1729518706.026082, type 1 (EV_KEY), code 295 (BTN_BASE2), value 1 Event: time 1729518706.026082, -------------- SYN_REPORT ------------ Event: time 1729518706.152088, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90008 Event: time 1729518706.152088, type 1 (EV_KEY), code 295 (BTN_BASE2), value 0 Event: time 1729518706.152088, -------------- SYN_REPORT ------------ Event: time 1729518707.628084, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90006 Event: time 1729518707.628084, type 1 (EV_KEY), code 293 (BTN_PINKIE), value 1 Event: time 1729518707.628084, -------------- SYN_REPORT ------------ Event: time 1729518707.824187, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90006 Event: time 1729518707.824187, type 1 (EV_KEY), code 293 (BTN_PINKIE), value 0 Event: time 1729518707.824187, -------------- SYN_REPORT ------------ Event: time 1729518709.588149, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90005 Event: time 1729518709.588149, type 1 (EV_KEY), code 292 (BTN_TOP2), value 1 Event: time 1729518709.588149, -------------- SYN_REPORT ------------ Event: time 1729518709.734171, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90005 Event: time 1729518709.734171, type 1 (EV_KEY), code 292 (BTN_TOP2), value 0 Event: time 1729518709.734171, -------------- SYN_REPORT ------------ Event: time 1729518709.792140, type 3 (EV_ABS), code 0 (ABS_X), value 8318 Event: time 1729518709.792140, -------------- SYN_REPORT ------------ Event: time 1729518710.686167, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000e Event: time 1729518710.686167, type 1 (EV_KEY), code 301 (?), value 1 Event: time 1729518710.686167, -------------- SYN_REPORT ------------ Event: time 1729518710.730137, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000e Event: time 1729518710.730137, type 1 (EV_KEY), code 301 (?), value 0 Event: time 1729518710.730137, -------------- SYN_REPORT ------------ Event: time 1729518711.102131, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000d Event: time 1729518711.102131, type 1 (EV_KEY), code 300 (?), value 1 Event: time 1729518711.102131, -------------- SYN_REPORT ------------ Event: time 1729518711.244157, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000d Event: time 1729518711.244157, type 1 (EV_KEY), code 300 (?), value 0 Event: time 1729518711.244157, -------------- SYN_REPORT ------------ Event: time 1729518712.850072, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1729518712.850072, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 1 Event: time 1729518712.850072, -------------- SYN_REPORT ------------ Event: time 1729518712.852004, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1729518712.852004, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 0 Event: time 1729518712.852004, -------------- SYN_REPORT ------------ Event: time 1729518713.544146, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1729518713.544146, type 1 (EV_KEY), code 705 (BTN_TRIGGER_HAPPY2), value 1 Event: time 1729518713.544146, -------------- SYN_REPORT ------------ Event: time 1729518713.546000, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1729518713.546000, type 1 (EV_KEY), code 705 (BTN_TRIGGER_HAPPY2), value 0 Event: time 1729518713.546000, -------------- SYN_REPORT ------------ Event: time 1729518713.682041, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1729518713.682041, type 1 (EV_KEY), code 705 (BTN_TRIGGER_HAPPY2), value 1 Event: time 1729518713.682041, -------------- SYN_REPORT ------------ Event: time 1729518713.683994, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1729518713.683994, type 1 (EV_KEY), code 705 (BTN_TRIGGER_HAPPY2), value 0 Event: time 1729518713.683994, -------------- SYN_REPORT ------------ Event: time 1729518713.804115, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1729518713.804115, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 1 Event: time 1729518713.804115, -------------- SYN_REPORT ------------ Event: time 1729518713.806001, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1729518713.806001, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 0 Event: time 1729518713.806001, -------------- SYN_REPORT ------------ Event: time 1729518713.860044, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1729518713.860044, type 1 (EV_KEY), code 705 (BTN_TRIGGER_HAPPY2), value 1 Event: time 1729518713.860044, -------------- SYN_REPORT ------------ Event: time 1729518713.862007, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1729518713.862007, type 1 (EV_KEY), code 705 (BTN_TRIGGER_HAPPY2), value 0 Event: time 1729518713.862007, -------------- SYN_REPORT ------------ Event: time 1729518714.276109, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1729518714.276109, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 1 Event: time 1729518714.276109, -------------- SYN_REPORT ------------ Event: time 1729518714.277997, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1729518714.277997, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 0 Event: time 1729518714.277997, -------------- SYN_REPORT ------------ Event: time 1729518714.754005, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000f Event: time 1729518714.754005, type 1 (EV_KEY), code 302 (?), value 1 Event: time 1729518714.754005, -------------- SYN_REPORT ------------ Event: time 1729518714.926134, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000f Event: time 1729518714.926134, type 1 (EV_KEY), code 302 (?), value 0 Event: time 1729518714.926134, -------------- SYN_REPORT ------------ Event: time 1729518716.560121, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90010 Event: time 1729518716.560121, type 1 (EV_KEY), code 303 (BTN_DEAD), value 1 Event: time 1729518716.560121, -------------- SYN_REPORT ------------ Event: time 1729518716.702040, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90010 Event: time 1729518716.702040, type 1 (EV_KEY), code 303 (BTN_DEAD), value 0 Event: time 1729518716.702040, -------------- SYN_REPORT ------------ Event: time 1729518717.352114, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90013 Event: time 1729518717.352114, type 1 (EV_KEY), code 706 (BTN_TRIGGER_HAPPY3), value 1 Event: time 1729518717.352114, -------------- SYN_REPORT ------------ Event: time 1729518717.498036, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90013 Event: time 1729518717.498036, type 1 (EV_KEY), code 706 (BTN_TRIGGER_HAPPY3), value 0 Event: time 1729518717.498036, -------------- SYN_REPORT ------------ Event: time 1729518718.476030, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90014 Event: time 1729518718.476030, type 1 (EV_KEY), code 707 (BTN_TRIGGER_HAPPY4), value 1 Event: time 1729518718.476030, -------------- SYN_REPORT ------------ Event: time 1729518718.636103, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90014 Event: time 1729518718.636103, type 1 (EV_KEY), code 707 (BTN_TRIGGER_HAPPY4), value 0 Event: time 1729518718.636103, -------------- SYN_REPORT ------------ Event: time 1729518720.396088, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000b Event: time 1729518720.396088, type 1 (EV_KEY), code 298 (BTN_BASE5), value 1 Event: time 1729518720.396088, -------------- SYN_REPORT ------------ Event: time 1729518720.596057, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000b Event: time 1729518720.596057, type 1 (EV_KEY), code 298 (BTN_BASE5), value 0 Event: time 1729518720.596057, -------------- SYN_REPORT ------------ Event: time 1729518720.812007, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000c Event: time 1729518720.812007, type 1 (EV_KEY), code 299 (BTN_BASE6), value 1 Event: time 1729518720.812007, -------------- SYN_REPORT ------------ Event: time 1729518720.961982, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000c Event: time 1729518720.961982, type 1 (EV_KEY), code 299 (BTN_BASE6), value 0 Event: time 1729518720.961982, -------------- SYN_REPORT ------------ Event: time 1729518721.944075, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 1 Event: time 1729518721.944075, -------------- SYN_REPORT ------------ Event: time 1729518722.078071, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 0 Event: time 1729518722.078071, -------------- SYN_REPORT ------------ Event: time 1729518722.685992, type 3 (EV_ABS), code 16 (ABS_HAT0X), value -1 Event: time 1729518722.685992, -------------- SYN_REPORT ------------ Event: time 1729518722.816069, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 0 Event: time 1729518722.816069, -------------- SYN_REPORT ------------ Event: time 1729518723.020069, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value -1 Event: time 1729518723.020069, -------------- SYN_REPORT ------------ Event: time 1729518723.146065, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 0 Event: time 1729518723.146065, -------------- SYN_REPORT ------------ Event: time 1729518723.456038, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 1 Event: time 1729518723.456038, -------------- SYN_REPORT ------------ Event: time 1729518723.490037, type 3 (EV_ABS), code 16 (ABS_HAT0X), value -1 Event: time 1729518723.490037, -------------- SYN_REPORT ------------ Event: time 1729518723.541976, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 0 Event: time 1729518723.541976, -------------- SYN_REPORT ------------ Event: time 1729518723.594063, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 0 Event: time 1729518723.594063, -------------- SYN_REPORT ------------ Event: time 1729518724.824054, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90015 Event: time 1729518724.824054, type 1 (EV_KEY), code 708 (BTN_TRIGGER_HAPPY5), value 1 Event: time 1729518724.824054, -------------- SYN_REPORT ------------ Event: time 1729518725.010005, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90015 Event: time 1729518725.010005, type 1 (EV_KEY), code 708 (BTN_TRIGGER_HAPPY5), value 0 Event: time 1729518725.010005, -------------- SYN_REPORT ------------ Event: time 1729518725.300044, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90009 Event: time 1729518725.300044, type 1 (EV_KEY), code 296 (BTN_BASE3), value 1 Event: time 1729518725.300044, -------------- SYN_REPORT ------------ Event: time 1729518725.472019, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90009 Event: time 1729518725.472019, type 1 (EV_KEY), code 296 (BTN_BASE3), value 0 Event: time 1729518725.472019, -------------- SYN_REPORT ------------ Event: time 1729518725.738049, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000a Event: time 1729518725.738049, type 1 (EV_KEY), code 297 (BTN_BASE4), value 1 Event: time 1729518725.738049, -------------- SYN_REPORT ------------ Event: time 1729518725.772019, type 3 (EV_ABS), code 0 (ABS_X), value 8335 Event: time 1729518725.772019, -------------- SYN_REPORT ------------ Event: time 1729518725.892048, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000a Event: time 1729518725.892048, type 1 (EV_KEY), code 297 (BTN_BASE4), value 0 Event: time 1729518725.892048, -------------- SYN_REPORT ------------ |
조이스틱과는 다르게 꾸준한 진동은 안되고
상수(?) 진동만 되나.. 그러고 보니 연석 밟으면 휙 돌아가는 저항감이 있었지
우둘두둘한 길을 갈때 진동 효과가 있었나 기억이 안난다..
아무튼 fftest를 1번 눌러서 해보니 반시계 방향으로 약하게 회전한다.(잡으면 바로 멈추는 수준)
$ fftest /dev/input/event16 Force feedback test program. HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES Device /dev/input/event16 opened Features: * Absolute axes: X, Y, Z, Hat 0 X, Hat 0 Y, [07 00 03 00 00 00 00 00 ] * Relative axes: [00 00 ] * Force feedback effects types: Constant, Gain, Autocenter, Force feedback periodic effects: [00 00 00 00 00 00 00 00 00 00 04 00 03 00 00 00 ] * Number of simultaneous effects: 16 Setting master gain to 75% ... OK Uploading effect #0 (Periodic sinusoidal) ... Error:: Invalid argument Uploading effect #1 (Constant) ... OK (id 0) Uploading effect #2 (Spring) ... Error: Invalid argument Uploading effect #3 (Damper) ... Error: Invalid argument Uploading effect #4 (Strong rumble, with heavy motor) ... Error: Invalid argument Uploading effect #5 (Weak rumble, with light motor) ... Error: Invalid argument Enter effect number, -1 to exit |