LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-03-2022, 04:15 PM   #1
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 289

Rep: Reputation: 26
Question Slackware(64) 14.2 - DualShock 2 / Twin DualShock ?


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
Nothing work with fftest, Searching information i reach to the Gentoo Wiki -> https://wiki.gentoo.org/wiki/Sony_DualShock

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
 
Old 08-03-2022, 04:33 PM   #2
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 289

Original Poster
Rep: Reputation: 26
Well i'm trying with the follow :

Code:
evtest
Quote:
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 ?

Last edited by inukaze; 08-03-2022 at 08:38 PM.
 
  


Reply

Tags
dualshock2, force feedback, slackware 14.2/x86_64, twin dualshock



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RadioShack DualShock PSX to USB adapter 26-304 Duron Linux - Hardware 2 01-13-2018 03:27 AM
Disable Dualshock/SIXAXIS Accelerometer in Wired Mode? Kvbx4 Linux - Games 1 03-03-2013 10:45 AM
Dualshock 3 with Ubuntu teckniec Linux - Newbie 1 06-04-2010 03:32 AM
gf4 twin view (crt goes blank) mart Linux - Hardware 2 08-22-2003 04:19 PM
Argh! It's a Scsi-amese twin! unSpawn General 1 01-24-2002 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration