SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there, i had bought an USB Adapter for Connect PlayStation 2 Controller to the PC.
Well almost works fine, except i can't test the « Force Feedback » [ Note the characters on spanish «» are the same "" on english ]
I Forgot mention i had compile evtest manually doing the follow :
Code:
cd /tmp/
git clone https://gitlab.freedesktop.org/libevdev/evtest
cd evtest/
./autogen.sh
make
su -c "make install ; ldconfig" root
In the information i have found on internet i read i should use « fftest » for test the « Force Feedback » but when i ran the program :
Code:
fftest
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES
Device /dev/input/event0 opened
Features:
* Absolute axes:
[00 00 00 00 00 00 00 00 ]
* Relative axes:
[00 00 ]
* Force feedback effects types:
Force feedback periodic effects:
[00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
* Number of simultaneous effects: 0
Uploading effect #0 (Periodic sinusoidal) ... Error:: Function not implemented
Uploading effect #1 (Constant) ... Error: Function not implemented
Uploading effect #2 (Spring) ... Error: Function not implemented
Uploading effect #3 (Damper) ... Error: Function not implemented
Uploading effect #4 (Strong rumble, with heavy motor) ... Error: Function not implemented
Uploading effect #5 (Weak rumble, with light motor) ... Error: Function not implemented
Enter effect number, -1 to exit
Specified DualShock starting for the third version.
Right now i using Linux 4.4.14 Huge, but i don't know if in this kernel is activated the follow, specified on the Gentoo Wiki :
Code:
Networking support --->
<M> Bluetooth subsystem support --->[*] Bluetooth Classic (BR/EDR) features
<*> HIDP protocol support
Device Drivers --->
Input device support --->
-*- Generic input layer (needed for keyboard, mouse, ...)
<*> Joystick interface
<*> Event interface[*] Miscellaneous devices --->
<*> User level driver support
HID support --->[*] Battery level reporting for HID devices[*] /dev/hidraw raw HID device support
<*> User-space I/O driver support for HID subsystem
<*> Generic HID driver
Special HID drivers --->
<*> Sony PS2/3/4 accessories[*] Sony PS2/3/4 accessories force feedback support
USB HID support --->
<*> USB HID transport layer[*] LED Support --->
<*> LED Class Support
Someone can help me with this ?
Last edited by inukaze; 08-03-2022 at 08:38 PM.
Reason: I forgot mention how i can compile evtest program
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Power Button
/dev/input/event2: AT Translated Set 2 keyboard
/dev/input/event3: ImPS/2 Generic Wheel Mouse
/dev/input/event4: Twin USB Joystick
/dev/input/event5: Twin USB Joystick
/dev/input/event6: HDA NVidia HDMI/DP,pcm=3
/dev/input/event7: HDA NVidia HDMI/DP,pcm=7
/dev/input/event8: HDA NVidia HDMI/DP,pcm=8
/dev/input/event9: HDA NVidia HDMI/DP,pcm=9
/dev/input/event10: HDA NVidia Rear Mic
/dev/input/event11: HDA NVidia Line
/dev/input/event12: HDA NVidia Line Out
Select the device event number [0-12]: 4
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x810 product 0x1 version 0x110
Input device name: "Twin USB Joystick"
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 type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 127
Min 0
Max 255
Flat 15
Event code 1 (ABS_Y)
Value 127
Min 0
Max 255
Flat 15
Event code 2 (ABS_Z)
Value 127
Min 0
Max 255
Flat 15
Event code 5 (ABS_RZ)
Value 127
Min 0
Max 255
Flat 15
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 80 (FF_RUMBLE)
Event code 81 (FF_PERIODIC)
Event code 88 (FF_SQUARE)
Event code 89 (FF_TRIANGLE)
Event code 90 (FF_SINE)
Event code 96 (FF_GAIN)
Properties:
Testing ... (interrupt to exit)
Event: time 1659547516.440034, type 3 (EV_ABS), code 2 (ABS_Z), value 128
Event: time 1659547516.440034, type 3 (EV_ABS), code 5 (ABS_RZ), value 128
Event: time 1659547516.440034, type 3 (EV_ABS), code 0 (ABS_X), value 128
Event: time 1659547516.440034, type 3 (EV_ABS), code 1 (ABS_Y), value 128
Event: time 1659547516.440034, -------------- SYN_REPORT ------------
Ok i notice the device are :
Quote:
/dev/input/event4: Twin USB Joystick
/dev/input/event5: Twin USB Joystick
Well this USB Adapter just have a one PlayStation 2 Controller Plug. (I think the another just was remove before was making this adapter). i really prefer appear just one. becuase just have one connector.
Code:
fftest /dev/input/event4
Quote:
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES
Device /dev/input/event4 opened
Features:
* Absolute axes: X, Y, Z, RZ, Hat 0 X, Hat 0 Y,
[27 00 03 00 00 00 00 00 ]
* Relative axes:
[00 00 ]
* Force feedback effects types: Periodic, Rumble, Gain,
Force feedback periodic effects: Square, Triangle, Sine,
[00 00 00 00 00 00 00 00 00 00 03 07 01 00 00 00 ]
* Number of simultaneous effects: 16
Setting master gain to 75% ... OK
Uploading effect #0 (Periodic sinusoidal) ... OK (id 0)
Uploading effect #1 (Constant) ... Error: Invalid argument
Uploading effect #2 (Spring) ... Error: Invalid argument
Uploading effect #3 (Damper) ... Error: Invalid argument
Uploading effect #4 (Strong rumble, with heavy motor) ... OK (id 1)
Uploading effect #5 (Weak rumble, with light motor) ... OK (id 2)
Enter effect number, -1 to exit
0
Now Playing: Sine vibration
Enter effect number, -1 to exit
1
Now Playing: Constant Force
Enter effect number, -1 to exit
2
Now Playing: Spring Condition
Enter effect number, -1 to exit
3
Now Playing: Damping Condition
Enter effect number, -1 to exit
4
Now Playing: Strong Rumble
Enter effect number, -1 to exit
5
Now Playing: Weak Rumble
Enter effect number, -1 to exit
-1
Stopping effects
Sine vibration work
Strong Rumble work
Umm why program like PCSX, PCSX2, RetroArch can't use the Rumble ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.