G25 with GIMX 8.0 on RPi4B

Need help? Ask here and someone will help
User avatar
LoneWolf81
Posts: 120
Joined: Sat Jun 15, 2019 11:49 am
Location: South Africa

Re: G25 with GIMX 8.0 on RPi4B

Post by LoneWolf81 »

For raspbian but if you are already busy with ubuntu you can try it later.

I do have a complete image of 19.10 but its a big file it has everything set up already username is ubuntu and password is also ubuntu

https://drive.google.com/file/d/1He-OzG ... sp=sharing
Please Remember to Post your Log file in the support section , that way its easier and faster to start identifying the issue thus helping you to sort it out so you can enjoy GIMX :D .

stu.cz
Posts: 25
Joined: Thu May 21, 2020 8:51 am

Re: G25 with GIMX 8.0 on RPi4B

Post by stu.cz »

LoneWolf81 wrote:
Thu May 28, 2020 5:24 pm
I do have a complete image of 19.10
I have tried your Ubuntu and your Gimg - the same problem like in Raspbian

Here is the log file and link for full file: https://drive.google.com/file/d/17r9PPd ... sp=sharing

Code: Select all

Ubuntu 19.10
Linux 5.3.0-1026-raspi2 #28-Ubuntu SMP Thu May 21 14:01:14 UTC 2020 armv7l
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Bus 001 Device 009: ID 046d:c299 Logitech, Inc. G25 Racing Wheel
Bus 001 Device 004: ID 0458:00ea KYE Systems Corp. (Mouse Systems) 
Bus 001 Device 011: ID 054c:05c4 Sony Corp. DualShock 4 [CUH-ZCT1x]
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 11, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 9, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 7, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
global option -l with value `log.txt'
global option -c with value `LogitechG25_G29.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 8.0 ARMv6
GIMX adapter detected, controller type is: G29 PS4.
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
registered joystick 0 with name "Sony Computer Entertainment Wireless Controller"
using default refresh period: 5.00ms
native mode is already enabled for HID device 01:01:03:00:00 (PID=c299)
mouse 0 has name 'Genius 2.4G Wireless Mouse' and virtual id 0
mouse 1 has name 'Genius 2.4G Wireless Mouse Consumer Control' and virtual id 0
keyboard 0 has name 'Genius 2.4G Wireless Mouse System Control' and virtual id 0
keyboard 1 has name 'Genius 2.4G Wireless Mouse Consumer Control' and virtual id 0
joystick 0 has name 'Sony Computer Entertainment Wireless Controller' and virtual id 0
joystick 1 has name 'G25 Racing Wheel' and virtual id 0
Dump of /home/ubuntu/.gimx/config/LogitechG25_G29.xml:
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1" dpi="0" type="G29 PS4">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back="no" delay="0"/>
      <mouse_options_list/>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_1" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="8"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="9"/>
        </button>
        <button id="abs_axis_2" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="11"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="19"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="20"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="21"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="22"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="0"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="5"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="4"/>
        </button>
        <button id="abs_axis_0" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="10"/>
        </button>
        <button id="abs_axis_20" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="12"/>
        </button>
        <button id="abs_axis_21" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="13"/>
        </button>
        <button id="abs_axis_22" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="14"/>
        </button>
        <button id="abs_axis_23" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="15"/>
        </button>
        <button id="abs_axis_24" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="16"/>
        </button>
        <button id="abs_axis_25" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="17"/>
        </button>
        <button id="abs_axis_26" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="18"/>
        </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_2" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="12"/>
        </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 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_8" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="2"/>
        </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_10" label="">
          <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
          <event type="button" id="0"/>
        </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_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_14" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="6"/>
        </button>
        <button id="abs_axis_13" label="">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="button" id="7"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_0" label="wheel">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="0" dead_zone="0" multiplier="0.0039" exponent="1.00" shape=""/>
        </axis>
        <axis id="abs_axis_19" label="clutch">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="1" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
        </axis>
        <axis id="abs_axis_17" label="gas">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="2" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
        </axis>
        <axis id="abs_axis_18" label="brake">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="3" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
        </axis>
      </axis_map>
      <joystick_corrections_list>
        <correction low_value="32767" low_coef="-8192" high_value="0" high_coef="0">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="1"/>
        </correction>
        <correction low_value="32767" low_coef="-8192" high_value="0" high_coef="0">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="2"/>
        </correction>
        <correction low_value="32767" low_coef="-8192" high_value="0" high_coef="0">
          <device type="joystick" id="0" name="G25 Racing Wheel"/>
          <event type="axis" id="3"/>
        </correction>
      </joystick_corrections_list>
    </configuration>
  </controller>
</root>
[01;33mWarning: [0mmacros are not available for: joystick Sony Computer Entertainment Wireless Controller (0)
Haptic core has source haptic_source_lg for device 046d:c260
Haptic core has sink haptic_sink_lg for joystick 1 (G25 Racing Wheel)
FFB invert: no
FFB gain: constant=100 spring=100 damper=100
Press the key/button assigned to PS.
0 2.683982
0 0.400113, wheel (5765), gear shifter 4 (255)
0 1.840108, wheel (5765), PS (255), gear shifter 4 (255)
1.863895 debug packet received (size = 1 bytes)
0x31 
[01;33mWarning: [0mskipping unsupported command DEFAULT_SPRING_ON
wheel range adjusted to 900 degrees
[01;33mWarning: [0m< skipping unsupported set leds commands
[01;33mWarning: [0mskipping unsupported command DEFAULT_SPRING_OFF
0 1.915095, wheel (5761), PS (255), gear shifter 4 (255)
0 1.920105, wheel (5753), PS (255), gear shifter 4 (255)
0 1.925109, wheel (5745), PS (255), gear shifter 4 (255)

0 3.110230, wheel (-642), gas (65535), gear shifter 4 (255)
0 3.115224, wheel (-650), gas (65535), gear shifter 4 (255)
0 3.120238, wheel (-658), gas (65535), gear shifter 4 (255)
0 3.125239, wheel (-662), gas (65535), gear shifter 4 (255)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 0.880259, wheel (-670), gas (65535), gear shifter 4 (255)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 0.885273, wheel (-3412), gas (65535), gear shifter 4 (255)
0 0.890255, wheel (-3416), gas (65535), gear shifter 4 (255)
0 0.895262, wheel (-3460), gas (65535), gear shifter 4 (255)
0 0.900258, wheel (-3464), gas (65535), gear shifter 4 (255)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 0.905267, wheel (-3493), gas (65535), gear shifter 4 (255)
0 0.910259, wheel (-3521), gas (65535), gear shifter 4 (255)
0 0.915259, wheel (-3541), gas (65535), gear shifter 4 (255)
0 0.920221, wheel (-3569), gas (65535), gear shifter 4 (255)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 0.925269, wheel (-3589), gas (65535), gear shifter 4 (255)
0 0.930260, wheel (-3617), gas (65535), gear shifter 4 (255)
0 0.935259, wheel (-3645), gas (65535), gear shifter 4 (255)
0 0.940256, wheel (-3665), gas (65535), gear shifter 4 (255)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 0.945268, wheel (-3689), gas (65535), gear shifter 4 (255)
0 0.950259, wheel (-3709), gas (65535), gear shifter 4 (255)
0 0.955261, wheel (-3737), gas (65535), gear shifter 4 (255)
0 0.960254, wheel (-3757), gas (65535), gear shifter 4 (255)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 0.965265, wheel (-3777), gas (65535), gear shifter 4 (255)
0 0.970264, wheel (-3797), gas (65535), gear shifter 4 (255)
0 0.975272, wheel (-3817), gas (65535), gear shifter 4 (255)
0 0.980259, wheel (-3841), gas (65535), gear shifter 4 (255)
0 0.995692, wheel (168), gear shifter 4 (255)
0 1.275694, wheel (160), gear shifter 4 (255)
0 1.565715, wheel (160), options (255), gear shifter 4 (255)
0 1.695716, wheel (160), gear shifter 4 (255)
Exiting

Now back to the Raspbian and to your code.
I'll be back after I tray it.

stu.cz
Posts: 25
Joined: Thu May 21, 2020 8:51 am

Re: G25 with GIMX 8.0 on RPi4B

Post by stu.cz »

LoneWolf81 wrote:
Thu May 28, 2020 5:05 pm
Try adding this to the end of cmdline.txt in the same line
Save and reboot
I have tried it. It doesn't solve the problem.
The line looks like this for control:

Code: Select all

console=tty1 root=PARTUUID=6b27f4e8-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait dwc_otg.nak_holdoff=0 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x7
I have read this in Gimx installation guide:

Code: Select all

The default configuration does not allow high baudrates.
Enable high baudrates editing /boot/config.txt and add init_uart_clock=8000000
But in the log file is this

Code: Select all

Using baudrate: 500000 bps.
Is it OK? Can anybody confirm it is enough? Have I to increase the speed?
I'm really unhappy. I'm sad.
Matlo wrote:
Tue May 26, 2020 7:36 pm
I moved your posts to a dedicated topic. Please don't hijack other's / old topics.
Malto can you replace the name of topic to "G25/G27 with GIMX on RPi4B failed"
Because I think the problem may be the same for G27 and with others GIMX versions.
Thank you very much.

User avatar
LoneWolf81
Posts: 120
Joined: Sat Jun 15, 2019 11:49 am
Location: South Africa

Re: G25 with GIMX 8.0 on RPi4B

Post by LoneWolf81 »

stu.cz wrote:
Thu May 28, 2020 8:55 pm

I have read this in Gimx installation guide:

Code: Select all

The default configuration does not allow high baudrates.
Enable high baudrates editing /boot/config.txt and add init_uart_clock=8000000
Good morning

That is only if you use the built in UART of the Raspberry Pi in that scenario you will have to make a simple voltage divider and not require the CP2102 adapter, the AVR Board is directly connected to the GPIO pins and your serial port will be /dev/ttyS0

You can give it a shot but you will need two resistors.

Also can you tell me how you are powering your Pi and are you getting any under voltage warnings like the little lightning bolt in the top right corner or red led flickering.

EDIT

Just found this guide to increase the CP2102 max baud rate to 2000000 if you want to test it, just run the utility named CP21xxCustomizationUtility

http://www.olliw.eu/storm32bgc-wiki/How ... baud_rates

The link to download it is broken but I have it on my Google Drive

https://drive.google.com/file/d/11WZX4A ... sp=sharing
Please Remember to Post your Log file in the support section , that way its easier and faster to start identifying the issue thus helping you to sort it out so you can enjoy GIMX :D .

stu.cz
Posts: 25
Joined: Thu May 21, 2020 8:51 am

Re: G25 with GIMX 8.0 on RPi4B

Post by stu.cz »

LoneWolf81 wrote:
Fri May 29, 2020 5:19 am
Also can you tell me how you are powering your Pi and are you getting any under voltage warnings like the little lightning bolt in the top right corner or red led flickering.
Good morning
How I wrote in my third post I have 5.25V/4A power adapter = 21Watts. So the power is enough.

I will try your utility but little bit later. I have to work now :-) I hope is it safe for the chip increase the speed?

I have a question. I have two SD cards. One with Raspbian and GIMX and one for Kodi (Libeelec)
If I insert the Gimx installation with into the reaspberry it shows kernel 5.4x and when I put the Kodi SD in it shows kernel 4.19x
It is normal?
I thought it is in raspberry not in system.
Last edited by stu.cz on Fri May 29, 2020 8:38 am, edited 1 time in total.

User avatar
LoneWolf81
Posts: 120
Joined: Sat Jun 15, 2019 11:49 am
Location: South Africa

Re: G25 with GIMX 8.0 on RPi4B

Post by LoneWolf81 »

So far I can tell there are no issues so far I have played around with it last night and it was stable.

The difference in max baud rate could help 500000 bit/second = 0.476837 megabit/second vs 2000000 bit/second = 1.907349 megabit/second

The kernel is a part of linux its the link between the hardware and software, as we did an update on your raspbian card it now has a newer firmware. So its perfectly normal for your other one to still have a 4.x kernel :)
Please Remember to Post your Log file in the support section , that way its easier and faster to start identifying the issue thus helping you to sort it out so you can enjoy GIMX :D .

stu.cz
Posts: 25
Joined: Thu May 21, 2020 8:51 am

Re: G25 with GIMX 8.0 on RPi4B

Post by stu.cz »

LoneWolf81 wrote:
Fri May 29, 2020 5:19 am
Just found this guide to increase the CP2102 max baud rate to 2000000 if you want to test it, just run the utility named CP21xxCustomizationUtility
No effect. Still the same problem. :(
Any another idea?

User avatar
GoDlike
Posts: 948
Joined: Thu Apr 28, 2016 12:47 pm
Location: Poland

Re: G25 with GIMX 8.0 on RPi4B

Post by GoDlike »

As far as I remember CP2102 maximum baud rate is about 920k but only 500k is usable with GIMX. 1kk and 2kk modes aren't working with my CP2102. CP2104 is capable of 2kk.
My hardware: PS3 Slim CFW 4.80 | PS4 Pro 500 Million LE | Xbox One X
Steam: Godlike_RU | PSN: GoDlike_RU | XBL: GoDlike

User avatar
LoneWolf81
Posts: 120
Joined: Sat Jun 15, 2019 11:49 am
Location: South Africa

Re: G25 with GIMX 8.0 on RPi4B

Post by LoneWolf81 »

Damn thought it was worth a shot, so the problem is caused by a limitation of the kernel.

Do you think it will make any difference if he uses the built in uart ?

After we get out of lock down this side im going to see if I can source a wheel
Please Remember to Post your Log file in the support section , that way its easier and faster to start identifying the issue thus helping you to sort it out so you can enjoy GIMX :D .

User avatar
GoDlike
Posts: 948
Joined: Thu Apr 28, 2016 12:47 pm
Location: Poland

Re: G25 with GIMX 8.0 on RPi4B

Post by GoDlike »

Hard for me to say. I don't even have RPi. Still it's worth giving a shot.
My hardware: PS3 Slim CFW 4.80 | PS4 Pro 500 Million LE | Xbox One X
Steam: Godlike_RU | PSN: GoDlike_RU | XBL: GoDlike

Post Reply