Page 1 of 1

Constantly breaking

Posted: Wed Dec 30, 2020 1:39 pm
by Wimza
I've been using gimx for years on PS4 and love it.
But every time I shift-Esc in game and try to reconnect the whole thing falls apart. The check says everything looks ok but I can not activate keyboard and mouse by pressing the assigned PS key.
Everything on the GIMX screen is fine, cables were running perfectly but change them over anyway, reload firmware, look for updates, use different usb ports, power cycle... Same issue... Just can't activate KB&M again once the connection breaks once. If I go back to it in a few days it runs ok again. Sometimes uninstalling and reinstalling works too. What's going on and how can I avoid in future?

Re: Constantly breaking

Posted: Wed Dec 30, 2020 7:34 pm
by GoDlike
Are you using windows or Linux? Does log say anything unusual?

Re: Constantly breaking

Posted: Wed Dec 30, 2020 8:05 pm
by Wimza
I am using windows. I tried ubuntu but its changed a bit since I used it last and the instructions dont seem to work...
I am using windows 10 64
Here is the log file. I recreated the fault by starting a game, stopping gimx using Shift/Esc and attempting to restart as normal.

Code: Select all

global option -l with value `log.txt'
global option -c with value `Dualshock4.xml'
controller #1: option -p with value `COM3'
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 8.0 x86_64
Windows 10 (or later) x64
Kernel version: 10.0 (19042)
GIMX adapter detected, controller type is: DS4.
Firmware version: 8.0
Reset sent to the GIMX adapter.
Current baudrate: 500000 bps.
Trying baudrate: 2000000 bps.
Trying baudrate: 1000000 bps.
Trying baudrate: 500000 bps.
Using baudrate: 500000 bps.
found pass-through device 0x054c:0x05c4
rounding timer period 1000us to 998us
registered joystick 0 with name "PS4 Controller"
using default refresh period: 10.00ms
mouse 0 has name 'Razer Cynosa Chroma' and virtual id 0
mouse 1 has name 'Razer Basilisk' and virtual id 0
keyboard 0 has name 'Razer Cynosa Chroma' and virtual id 0
keyboard 1 has name 'HID Keyboard Device' and virtual id 0
keyboard 2 has name 'HID Keyboard Device' and virtual id 1
keyboard 3 has name 'Razer Basilisk' and virtual id 0
joystick 0 has name 'PS4 Controller' and virtual id 0
Dump of C:\Users\Jackp\AppData\Roaming/gimx/config/Dualshock4.xml:
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1" dpi="16000" type="DS4">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back="no" delay="0"/>
      <mouse_options_list>
        <mouse name="Razer Basilisk" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_17" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="CAPSLOCK"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="keyboard" id="0" name="Razer Basilisk"/>
          <event type="button" id="r"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_X1"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_WHEELDOWN"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_0" label="">
          <device type="joystick" id="0" name="PS4 Controller"/>
          <event type="button" id="4"/>
        </button>
        <button id="abs_axis_1" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="TAB"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_2" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="ESCAPE"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="UP"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="RIGHT"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="DOWN"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="LEFT"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="abs_axis_13" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_RIGHT"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_MIDDLE"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="t"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="g"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="c"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="LALT"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_2" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="axis" id="x" dead_zone="5" multiplier="0.10" exponent="1.00" shape="Circle"/>
        </axis>
        <axis id="rel_axis_3" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="axis" id="y" dead_zone="5" multiplier="0.10" exponent="1.00" shape="Circle"/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="w"/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="d"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="s"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
    <configuration id="2">
      <trigger type="mouse" id="0" name="Razer Basilisk" button_id="BUTTON_RIGHT" switch_back="yes" delay="0"/>
      <mouse_options_list>
        <mouse name="Razer Basilisk" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_15" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="abs_axis_13" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_RIGHT"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="keyboard" id="0" name="Razer Basilisk"/>
          <event type="button" id="r"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_X1"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="button" id="BUTTON_WHEELDOWN"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="LEFT"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="DOWN"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="RIGHT"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="UP"/>
        </button>
        <button id="abs_axis_2" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="ESCAPE"/>
        </button>
        <button id="abs_axis_1" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <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="Razer Basilisk"/>
          <event type="axis" id="y" dead_zone="5" multiplier="1.00" exponent="1.00" shape="Circle"/>
        </axis>
        <axis id="rel_axis_2" label="Aiming - x axis">
          <device type="mouse" id="0" name="Razer Basilisk"/>
          <event type="axis" id="x" dead_zone="5" multiplier="1.00" exponent="1.00" shape="Circle"/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="s"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="d"/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name="Razer Cynosa Chroma"/>
          <event type="button" id="w"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
  </controller>
</root>
Warning: macros are not available for: keyboard Razer Basilisk (0)
Rumble pass-through to joystick 0 (PS4 Controller)
Press the key/button assigned to PS.
rounding timer period 10000us to 9980us
src/windows/gserial.c:66 set_serial_params: SetCommState failed with error: The parameter is incorrect.


Error: failed to open the GIMX adapter
Error: failed to send data to the GIMX adapter
0 261.482506
0 261.492458
0 261.502448
0 261.512429
0 261.522393
0 261.532379
0 261.542362
0 261.552332
0 261.562334
0 261.572310
0 261.672123
0 261.682106
0 261.692054
0 261.702067
0 261.712070
0 261.722017
0 261.732019
0 261.742011
0 261.751958
0 261.761944
0 262.241131
0 262.250987
0 262.819930
0 262.829899
0 262.839877
0 262.849866
0 262.859844
0 262.939689
0 262.949668
0 262.959646
0 262.969646
0 262.979625
0 262.989598
0 262.999579
0 263.009834
0 263.019537
0 263.029526
0 263.039497
0 263.049533
0 263.059521
0 263.069498
0 263.079462
0 263.089431
0 263.099396
0 263.109371
0 263.119367
0 263.129334
0 263.139315
0 263.149302
0 263.159275
0 263.169257
0 263.199200
0 263.209179
0 263.229142
0 263.239118
0 263.358894
0 263.368868
0 263.378845
0 263.388830
0 263.398834
0 263.408801
0 263.418781
0 263.428756
0 263.438736
0 263.448720
0 263.458908
0 263.468713
0 263.478672
0 263.488642
0 263.498625
0 263.508606
0 263.518585
0 263.528567
0 263.538559
0 263.548527
0 263.558509
0 263.568487
0 263.578470
0 263.588478
0 263.598441
0 263.608446
0 263.748150
0 263.758138
0 263.768108
0 263.778090
0 263.788087
0 263.798057
0 263.808063
0 264.137407
0 264.147391
0 264.237221
0 264.247480
0 264.257179
0 264.267180
0 264.277148
0 264.287149
0 264.297113
0 264.307085
0 264.436835
0 264.446813
0 264.456799
0 264.466783
0 264.476758
0 264.486776
0 264.496731
0 264.506708
0 265.005781
0 265.015737
0 265.025745
0 265.035710
0 266.193494
0 266.203477
0 266.213479
0 266.223451
0 266.233423
0 266.243412
0 266.253383
0 266.263371
0 266.273343
0 266.293307
0 266.303297
0 266.313269
0 266.323258
0 266.333228
0 266.622688
Mouse frequency is 1000Hz.
0 266.632651
0 266.642638, rstick x (-4)
0 266.652645
0 266.662597
0 266.672616
0 266.682575
0 266.692560
0 266.702534
0 266.712511
0 266.722765
0 266.822298
0 266.832282
0 268.499104, PS (255)
0 268.618882
0 271.084203, PS (255)
0 271.343691
0 271.593219, PS (255)
0 271.842752
0 272.371747, cross (255)
0 272.571367
0 272.721148, PS (255)
0 272.860818
0 272.920732, cross (255)
0 273.030495
0 273.060448, PS (255)
0 273.230113
0 273.270035, cross (255)
0 273.409780
0 273.479639, PS (255)
0 273.619372
0 273.679359, cross (255)
0 273.799058
0 273.968725, PS (255)
0 274.108442
0 274.318039, cross (255)
0 274.517665
0 274.617477, PS (255)
0 274.707328
0 274.727277, cross (255)
0 274.817112
0 274.847047, PS (255)
0 274.916917
0 274.966812, cross (255)
0 275.026694, PS (255), cross (255)
0 275.066625, PS (255)
0 275.076650
0 275.236298, PS (255)
0 275.266242, PS (255), cross (255)
0 275.346092, cross (255)
0 275.366050
0 275.475837, PS (255), cross (255)
0 275.575664, PS (255)
0 275.615581
0 276.164532, l3 (255)
0 276.493911, PS (255), l3 (255)
Exiting
src/windows/gprio.c:105 restoreprocess: SetProcessAffinityMask failed with error: Access is denied.

Re: Constantly breaking

Posted: Thu Dec 31, 2020 2:27 am
by kaiba_seto2004
I think UART side is starting fault. Try with another one to make sure.

Re: Constantly breaking

Posted: Thu Dec 31, 2020 9:23 am
by Wimza
Thanks. Will do a spare out of my bits box

Re: Constantly breaking

Posted: Thu Dec 31, 2020 6:49 pm
by Wimza
I tried new UART and Arduino too. Still same issue.
I then got an old laptop up with a fresh install of Windows 7 and same problem.

Re: Constantly breaking

Posted: Wed Jan 06, 2021 9:20 am
by Matlo
Please post a clear picture of your adapter showing how the boards are wired together.