DS4 error after 10-15 seconds

Need help? Ask here and someone will help
Post Reply
emre_67_
Posts: 11
Joined: Thu Apr 11, 2019 10:56 am

DS4 error after 10-15 seconds

Post by emre_67_ »

Hi i am Emre,

İ am using gimx adapter with my pc since 3 months and everything is working very well.
İ decided to using with Raspberry pi zero.
I installed raspbian stretch and gimx.
When i clicked start button everything is working on my ps4 but ds4 diconnecting after 10-15 seconds.
I tried 3 cables and chargers but i couldn't solve this error.

This is my log file:

Code: Select all

global option -l with value `log.txt'
global option -c with value `PS4_BattlefieldV_Godlike.xml'
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
auto-grab flag is set
GIMX 7.12 ARMv6
Raspbian GNU/Linux 9.4 (stretch)
Linux 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 unknown
Bus 001 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 010: ID 054c:09cc Sony Corp. 
Bus 001 Device 004: ID 1532:0060 Razer USA, Ltd 
Bus 001 Device 003: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 10, If 0, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 3: Dev 10, If 1, Class=Audio, Driver=, 12M
        |__ Port 3: Dev 10, If 2, Class=Audio, Driver=, 12M
        |__ Port 3: Dev 10, If 3, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 6, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
GIMX adapter detected, controller type is: DS4.
found pass-through device 0x054c:0x09cc
registered joystick 0 with name "Sony Computer Entertainment Wireless Controller"
using default refresh period: 10.00ms
mouse 0 has name 'HID 04f3:0103' and virtual id 0
mouse 1 has name 'Razer Razer Lancehead Tournament Edition' and virtual id 0
mouse 2 has name 'Razer Razer Lancehead Tournament Edition' and virtual id 1
keyboard 0 has name 'HID 04f3:0103' and virtual id 0
keyboard 1 has name 'HID 04f3:0103' and virtual id 1
keyboard 2 has name 'Razer Razer Lancehead Tournament Edition' and virtual id 0
keyboard 3 has name 'Razer Razer Lancehead Tournament Edition' and virtual id 1
joystick 0 has name 'Sony Computer Entertainment Wireless Controller' and virtual id 0
Dump of /home/pi/.gimx/config/PS4_BattlefieldV_Godlike.xml:
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1" dpi="2800" type="DS4">
    <configuration id="1">
      <trigger type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller" button_id="12" switch_back="no" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_16" label="Melee">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="v"/>
        </button>
        <button id="abs_axis_15" label="Sprint">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_14" label="Shoot">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="abs_axis_13" label="Aim">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_RIGHT"/>
        </button>
        <button id="abs_axis_12" label="Last weapon">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="e"/>
        </button>
        <button id="abs_axis_11" label="Grenade">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="g"/>
        </button>
        <button id="abs_axis_10" label="Reload/Use">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="r"/>
        </button>
        <button id="abs_axis_9" label="Jump">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_8" label="Duck">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LCTRL"/>
        </button>
        <button id="abs_axis_7" label="Secondary Weapon">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="f"/>
        </button>
        <button id="abs_axis_6" label="D-Pad Left">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_5" label="D-Pad Down">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_4" label="D-Pad Right">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_3" label="D-Pad Up">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_2" label="PS">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="BACKSPACE"/>
        </button>
        <button id="abs_axis_1" label="Start">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="RETURN"/>
        </button>
        <button id="abs_axis_0" label="Share">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="BACKQUOTE"/>
        </button>
        <button id="abs_axis_17" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="TAB"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_3" label="Aiming - y axis">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="y" dead_zone="3" multiplier="7.15" exponent="0.63" shape="Circle"/>
        </axis>
        <axis id="rel_axis_2" label="Aiming - x axis">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="x" dead_zone="3" multiplier="6.32" exponent="0.63" shape="Circle"/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="s"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="d"/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="w"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
    <configuration id="2">
      <trigger type="mouse" id="0" name="" button_id="BUTTON_RIGHT" switch_back="yes" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_16" label="Melee">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="v"/>
        </button>
        <button id="abs_axis_15" label="Sprint">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_14" label="Shoot">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="abs_axis_13" label="Aim">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_RIGHT"/>
        </button>
        <button id="abs_axis_12" label="Last weapon">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="e"/>
        </button>
        <button id="abs_axis_11" label="Grenade">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="g"/>
        </button>
        <button id="abs_axis_10" label="Reload/Use">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="r"/>
        </button>
        <button id="abs_axis_9" label="Jump">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_8" label="Duck">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LCTRL"/>
        </button>
        <button id="abs_axis_7" label="Secondary Weapon">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="f"/>
        </button>
        <button id="abs_axis_6" label="D-Pad Left">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_5" label="D-Pad Down">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_4" label="D-Pad Right">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_3" label="D-Pad Up">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_2" label="PS">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="BACKSPACE"/>
        </button>
        <button id="abs_axis_1" label="Start">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="RETURN"/>
        </button>
        <button id="abs_axis_0" label="Share">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="BACKQUOTE"/>
        </button>
        <button id="abs_axis_17" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="TAB"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_3" label="Aiming - y axis">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="y" dead_zone="3" multiplier="7.62" exponent="0.65" shape="Circle"/>
        </axis>
        <axis id="rel_axis_2" label="Aiming - x axis">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="x" dead_zone="3" multiplier="6.80" exponent="0.65" shape="Circle"/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="s"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="d"/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="w"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
    <configuration id="3">
      <trigger type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller" button_id="12" switch_back="no" delay="0"/>
      <mouse_options_list/>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_10" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="0"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="4"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="5"/>
        </button>
        <button id="abs_axis_0" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="8"/>
        </button>
        <button id="abs_axis_1" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="9"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="10"/>
        </button>
        <button id="abs_axis_16" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="11"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="14"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="15"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="16"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="17"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_0" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="axis" id="0" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="rel_axis_1" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="axis" id="1" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="rel_axis_2" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="axis" id="2" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="rel_axis_3" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="axis" id="5" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="abs_axis_13" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="axis" id="3" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
        </axis>
        <axis id="abs_axis_14" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="axis" id="4" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
        </axis>
      </axis_map>
    </configuration>
  </controller>
</root>[01;33mWarning: [0mA device name is empty. Multiple mice and keyboards are not managed.
Haptic core has source haptic_source_rumble for device 054c:05c4
No haptic sink found for joystick 0 (Sony Computer Entertainment Wireless Controller)
Press the PS button to activate the controller.
0 1554945904.306434, rstick x (-13), rstick y (19)
0 1554945904.315513, rstick x (-17), rstick y (14)
0 1554945904.325203
0 1554945904.335391, rstick x (-17), rstick y (14)
0 1554945904.345337
0 1554945904.355405, rstick x (-22), rstick y (12)
0 1554945904.365423, rstick x (-24), rstick y (9)
0 1554945904.375200
0 1554945904.385382, rstick x (-23), rstick y (4)
0 1554945904.395473, rstick x (-28), rstick y (8)
0 1554945904.405330
0 1554945904.415404, rstick x (-33), rstick y (3)
0 1554945904.425188
0 1554945904.435365, rstick x (-30)
0 1554945904.445374, rstick x (-28)
0 1554945904.455320
0 1554945904.465360, rstick x (-26)
0 1554945904.475324, rstick x (-32), rstick y (-3)
0 1554945904.485328
0 1554945904.495379, rstick x (-40), rstick y (-6)
0 1554945904.505315
0 1554945904.515442, rstick x (-40), rstick y (-6)
0 1554945904.525239, rstick x (-33), rstick y (-6)
0 1554945904.535322
0 1554945904.545585, rstick x (-29), rstick y (-7)
0 1554945904.555448, rstick x (-30), rstick y (-4)
0 1554945904.565348
0 1554945904.575254, rstick x (-30), rstick y (-3)
0 1554945904.585317
0 1554945904.595435, rstick x (-35), rstick y (-3)
0 1554945904.605426, rstick x (-35), rstick y (-6)
0 1554945904.615337
0 1554945904.625234, rstick x (-31), rstick y (-7)
0 1554945904.635494, rstick x (-26), rstick y (-8)
0 1554945904.645352
0 1554945904.655352, rstick x (-26)
0 1554945904.665329
0 1554945904.675472, rstick x (-28), rstick y (-3)
0 1554945904.685375, rstick x (-32), rstick y (-4)
0 1554945904.695321
0 1554945904.705382, rstick x (-31), rstick y (-7)
0 1554945904.715503, rstick x (-26), rstick y (-4)
0 1554945904.725215
0 1554945904.735377, rstick x (-19), rstick y (-5)
0 1554945904.745344
0 1554945904.755367, rstick x (-13)
0 1554945904.765426, rstick x (-16), rstick y (-5)
0 1554945904.775199
0 1554945904.785356, rstick x (-19)
0 1554945904.795511, rstick x (-24), rstick y (-4)
0 1554945904.805382
0 1554945904.815456, rstick x (-21), rstick y (-4)
0 1554945904.825249
0 1554945904.835487, rstick x (-19), rstick y (-5)
0 1554945904.845441, rstick x (-27), rstick y (-7)
0 1554945904.855364
0 1554945904.865430, rstick x (-37), rstick y (-3)
0 1554945904.875353, rstick x (-48), rstick y (-5)
0 1554945904.885382
0 1554945904.895440, rstick x (-54), rstick y (-9)
0 1554945904.905373
0 1554945904.915471, rstick x (-55), rstick y (-12)
0 1554945904.925246, rstick x (-49), rstick y (-15)
0 1554945904.935315
0 1554945904.945419, rstick x (-34), rstick y (-12)
0 1554945904.955442, rstick x (-20), rstick y (-6)
0 1554945904.965340
0 1554945904.975216, rstick y (-10)
0 1554945904.985374
0 1554945905.055344, rstick y (-10)
0 1554945905.065321
0 1554945905.075470, rstick x (21), rstick y (-9)
0 1554945905.085604, rstick x (33), rstick y (-3)
0 1554945905.095478
0 1554945905.105419, rstick x (42), rstick y (-2)
0 1554945905.115499, rstick x (50), rstick y (4)
0 1554945905.125324
0 1554945905.135392, rstick x (58), rstick y (4)
0 1554945905.145356
0 1554945905.155464, rstick x (62), rstick y (9)
0 1554945905.165463, rstick x (60), rstick y (9)
0 1554945905.175250
0 1554945905.185502, rstick x (65), rstick y (8)
0 1554945905.195379, rstick x (61), rstick y (9)
0 1554945905.205375
0 1554945905.215449, rstick x (58), rstick y (7)
0 1554945905.225201
0 1554945905.235383, rstick x (50), rstick y (10)
0 1554945905.245439, rstick x (43), rstick y (11)
0 1554945905.255330
0 1554945905.265381, rstick x (33), rstick y (6)
0 1554945905.275253, rstick x (24), rstick y (5)
0 1554945905.285331
0 1554945905.295383, rstick x (12), rstick y (7)
0 1554945905.305322
0 1554945905.315379, rstick x (9)
0 1554945905.325234, rstick x (10)
0 1554945905.335259
0 1554945905.375220, rstick x (9)
0 1554945905.385342
0 1554945905.395429, rstick x (13)
0 1554945905.405362, rstick x (17)
0 1554945905.415325
0 1554945905.425229, rstick x (16)
0 1554945905.435436, rstick x (14)
0 1554945905.445352
0 1554945905.455353, rstick x (9)
0 1554945905.465325
0 1554945905.555366, rstick x (9)
0 1554945905.565326
0 1554945910.295250, PS (255)
0 1554945910.595260
libusb_transfer failed with status LIBUSB_TRANSFER_ERROR (endpoint=0x00)
Exiting
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: DS4 error after 10-15 seconds

Post by Matlo »

Log file indicates a communication issue with the Dualshock 4. Did you try changing its cable?

Also, it looks like you are using a HUB. Does it have a dedicated power supply?
GIMX creator
emre_67_
Posts: 11
Joined: Thu Apr 11, 2019 10:56 am

Re: DS4 error after 10-15 seconds

Post by emre_67_ »

Hi matlo, thanks for helping.

I tried 3 different cables. Usb hub isn't dedicated power supply but my friend using this hub and everything is working well with his system. He is using gimx adapter with raspberry pi zero and this usb hub.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: DS4 error after 10-15 seconds

Post by Matlo »

Other things to check:
  • Rpi power supply may not be beefy enough.
  • Keyboard seems to be running at low speed USB (1.5M). This may cause issues with other devices when connected to a single TT HUB.
GIMX creator
emre_67_
Posts: 11
Joined: Thu Apr 11, 2019 10:56 am

Re: DS4 error after 10-15 seconds

Post by emre_67_ »

Thank you Matlo. I will check that.
emre_67_
Posts: 11
Joined: Thu Apr 11, 2019 10:56 am

Re: DS4 error after 10-15 seconds

Post by emre_67_ »

I changed image file. I installed gimxos and added dwc_otg.speed=1 to cmdline file. (Because there was lag problem for my mouse) when i added that code, my keyboard didn't work. And i changed keyboard. Now everything is working well.

Thanks for helping Matlo. :)
Post Reply