Easy Automated Raspbian Image for using G27 as G29 with USB

Discuss everything to do with GIMX here
Post Reply
Waveform
Posts: 11
Joined: Sat Jan 23, 2016 12:31 am

Easy Automated Raspbian Image for using G27 as G29 with USB

Post by Waveform »

Updated: 6th April 2016
GIMX 5.7 Automated Rasbian Image for Logitech G29 USB - 06/04/2016

Download from MEGA

Fixed: Cursor being moved by pedals and increased VNC resolution to 1024 x 768.

Original Post:

Hi Matlo!

I would like to share with the forum my Raspbian Image file which autoruns GIMX 5.6-1 for using the Logitech G27 Wheel as a G29 with a DIY USB Adapter.

It is available to download as a 1.4GB Zip File.
The image file inside is 7.2GBs for writing to an 8GB SD Card:

https://mega.nz/#!mR0ygBBa!BGCtEYUXFZcW ... gdvwUM3Sl8

The file can be written to an SD card using win32diskimager on a Windows PC.
Or alternatively using some similar software on a Linux PC.

This image would be great for users who want the easiest and fastest way of getting their USB adapter working with the G27.

The image also Autoruns VNC (x11VNC), so people can log in remotely to Raspbian. The password for VNC is raspberry

The default Raspbian username and password are used:

Username: pi
Password: raspberry

There is however one slight issue, but it does not affect gameplay.
The mouse cursor in Raspbian is moved horizontally by the steering wheel, and vertically by the clutch pedal! :lol:

I tried adding "--nograb" to the autorun command, but it did not fix the issue.

I will post more details about the image in my next post.
Last edited by Waveform on Thu Apr 07, 2016 12:44 am, edited 3 times in total.
Waveform
Posts: 11
Joined: Sat Jan 23, 2016 12:31 am

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by Waveform »

How I set GIMX to AutoRun using G27_G29 config file:

I created the following directory:

/home/pi/.config/autostart

I created a file called GIMX.desktop with Nano in the directory.

The contents of GIMX.desktop is:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=GIMX
Comment=
Exec=gimx --nograb --config LogitechG27_G29.xml --port /dev/ttyUSB0
StartupNotify=false
Terminal=false
Hidden=false
There is also a file called X11VNC.desktop in the autostart directory for VNC to run.

I'm a Linux Noob so I just used google for the info, but it works!


In the future I would like to create an automated image for using the G27 over Bluetooth, but I need to order a dongle with the CSR8510 chip first.

I am using a Model B Raspberry Pi which only has 2 USB ports, so i think using the bluetooth method would be much neater.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by Matlo »

Hi,
Over bluetooth you can only emulate a Dualshock 4, not a G29.
The force feedback only works with a G29 emulation.
GIMX creator
Waveform
Posts: 11
Joined: Sat Jan 23, 2016 12:31 am

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by Waveform »

Thanks for your reply!

Do you know why the mouse is being controlled by the steering wheel and clutch pedal?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by Matlo »

I think your X server is configured to emulate a mouse from joysticks.
Try uninstalling xserver-xorg-input-joystick:

Code: Select all

sudo apt-get remove xserver-xorg-input-joystick
GIMX creator
Tr0Y
Posts: 1
Joined: Wed Jan 27, 2016 4:10 pm

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by Tr0Y »

Thanks for this image. This make the jobs much more easy.

But I have a question. Where get the Raspberry Pi the power? The PS4 supply enough power by the USB port, or do you need to supply power from other wire?

(Sorry about my english)
superbalza
Posts: 13
Joined: Fri Jan 29, 2016 2:52 pm

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by superbalza »

This is absolutely marvellous!

So if i flash this image, I can use my RPi without having to access it? I mean, connect everything, turn the RPi on, turn Ps4 on and play?

I would like to use it on my driving rig without having a full pc to be powered and started and configured every time i want to play (driving force gt on ps4)
superbalza
Posts: 13
Joined: Fri Jan 29, 2016 2:52 pm

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by superbalza »

Tr0Y wrote:Thanks for this image. This make the jobs much more easy.

But I have a question. Where get the Raspberry Pi the power? The PS4 supply enough power by the USB port, or do you need to supply power from other wire?

(Sorry about my english)
I don't think the Ps4 supplies enough power to keep the RPi on continously... I use a micro-usb charger with 2A to have enough power
thurlesdrunk
Posts: 9
Joined: Wed Oct 21, 2015 10:21 am
Location: Ireland

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by thurlesdrunk »

Hi Guys, would the image work with an orange pi?

http://s.aliexpress.com/32UVjmqq

I'm a bit of a noob with raspberry pi etc. Thanks!
cortega1
Posts: 34
Joined: Wed Mar 30, 2016 3:34 pm

Re: Easy Automated Raspbian Image for using G27 as G29 with

Post by cortega1 »

Thanks Waveform for posting that RPi image. I was able to just load the image to an sd card and run my raspberry pi headless with my g27 using the DIY usb adapter with no issues.

The wheel ran the exact same as when I used a desktop machine with an i3 and 16gb ram running windows 7, as well as a 1.8ghz single core atom powered netbook with 2gb of ram running windows 10. (Trying to include as many details about the machines so that people can compare for their setups, let me know if anyone who hasn't tried needs more)

The RPi I am using is a model B with a 700mhz single core, 256mb ram and 2 usb ports. I was able to run this model directly from the PS4 usb port for power since this earlier model does not require much power to run. I was using a CUH-1200 model PS4. I can not confirm the following for the PS4, but since it is using usb 3, it should put out 5v 900ma (from what I've read), which is 300ma lower then the recommended power supply output for my model RPi, but 400ma higher then the boards power usage according to https://www.raspberrypi.org/help/faqs/ in the "I. power" section.

Fry's electronics is having a sale on the RPi B2 model this week, so if I decide to pick one up, I'll give powering it over USB from the PS4 a shot with this RPi image and report back.

P.S. Thanks Matlo for making this all possible, and giving my g27 the opportunity to work with my PS4. The wheel feels the exact same as it did with my PS3 and the few times I used it on my PC.

update:
I made a Youtube! I had major performance anxiety during the driving portion, so don't pay attention to that part :D . I showed how I connected the setup and its basic operations.


https://youtu.be/HjVOQaFLNDU

Check out at least the first 2 and a half minutes and let me know what you think.

I also made another video that shows the CPU % usage on the RPi screen alongside the corresponding gameplay.


https://youtu.be/6uh9tOmf_RE
Last edited by cortega1 on Wed May 25, 2016 2:32 am, edited 2 times in total.
Post Reply