Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Need help? Ask here and someone will help
Post Reply
sofakng
Posts: 6
Joined: Fri Oct 28, 2016 3:06 pm

Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Post by sofakng »

I've been able to successfully connect GIMX to my PS4 and it works fine. The GIMX server is a Raspberry Pi 3 running Raspian. When I connect a keyboard to the machine, it works.

However, I've also installed GIMX on Windows and I'm trying to get Remote GIMX to work. It connects to the server but no buttons (keystrokes) actually work.

I think the problem is in my configuration files. Is there a explanation of them somewhere? Also, why do I need a config file on the server (Linux) and the client (Windows) ?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Post by Matlo »

Please post your configuration.
GIMX creator
sofakng
Posts: 6
Joined: Fri Oct 28, 2016 3:06 pm

Re: Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Post by sofakng »

Matlo,

I've tried using both the default 'Dualshock4.xml' and the 'PS4_Battlefield4_foxy.xml'.

However, the debian package for my Raspberry Pi (server) didn't include any configuration files so I download the Linux version for Github. (https://github.com/matlo/GIMX-configura ... ster/Linux)

For my Windows machine (client), I installed the x86_64 installation package and then selected 'Help -> Get Configs' to download the configuration files.

The Windows and Linux configuration files (from Github) do not match though.

Can you help me understand which place I need to copy the config files to? (client vs server)

Here is my command-line on the server (with the DIY USB adapter connected):
Spoiler: show
pi@raspberrypi:~ $ gimx --status --src 192.168.10.184:51914 --type DS4
controller #1: option -s with value `192.168.10.184:51914'
controller #1: option -t with value `DS4'
status flag is set
using default refresh period: 10.00ms
Here is my client (Windows):
Spoiler: show
Image
...and here is the Windows log:
Spoiler: show
global option -l with value `log.txt'
global option -c with value `PS4_Battlefield4_foxy.xml'
controller #1: option -d with value `192.168.10.184:51914'
now reading arguments for controller #2
status flag is set
subpos flag is set
GIMX 6.0 x86_64
Windows 10 (or later) x64
Kernel version: 10.0 (14393)
Remote GIMX detected, controller type is: DS4.
using default refresh period: 10.00ms
A device name is empty. Multiple mice and keyboards are not managed.
joystick not found: PS4 Controller 0
Warning: can't open macro directory C:\Users\sofakng\AppData\Roaming//gimx//macros/
Timer resolution: min=156250 max=5000 current=5013
If I press the 'Z' keyboard key (mapped to the PS button?), it correctly shows on the server:
Spoiler: show
0 1477755757.170245, PS (255)
0 1477755757.274909
...but nothing happens on the PS4.

However, if I run gimx in 'standalone' mode (ie. no SRC parameter), then it does work. (when I run it over SSH using something like gimx --config PS4_Battlefield4_foxy.xml --port /dev/ttyUSB0 --type DS4 --status, and then press keyboard keys over the SSH terminal)
sofakng
Posts: 6
Joined: Fri Oct 28, 2016 3:06 pm

Re: Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Post by sofakng »

Phew! With all of that said, I think my server command-line was wrong?

When I use the following, it appears to work:

Code: Select all

gimx --status --src 192.168.10.184:51914 --type DS4 --port /dev/ttyUSB0
Does that look like what my problem was the whole time?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Post by Matlo »

The --type argument is useless when using a DIY USB adapter, and you should remove --status while playing.
This command should be enough:

Code: Select all

gimx --src 192.168.10.184:51914 --port /dev/ttyUSB0
GIMX creator
sofakng
Posts: 6
Joined: Fri Oct 28, 2016 3:06 pm

Re: Remote GIMX connects but no buttons work? (re: Windows vs Linux config files?)

Post by sofakng »

Thanks so much, that works perfectly!

By the way, is there any disadvantage to using network communication? Obviously there is a slight (very very slight) latency because of the network but when using wired it's typically under 1ms. I'm wondering if you lose precision from the mouse, etc.
Post Reply