GIMX will not run on Ubuntu since 4.2 update

Need help? Ask here and someone will help
Spaznetz
Posts: 25
Joined: Sat Mar 15, 2014 11:27 pm
Location: USA

GIMX will not run on Ubuntu since 4.2 update

Post by Spaznetz »

Have not been playing for a few weeks. Started up PS3 & GIMX today.

Ran GIMX Update, Started GIMX, Opens fine but will not run when I click <Start>.

Terminal window opens with normal lines of text, some additional text flashes across, and window closes.

It is too fast for me to get screenshot but after trying it several times, I think that the text says:

Can't read packet header.
Can't get adapter status.
connector_init failed.


Please, tell me what I need to do.

EDIT: Forgot to include: Ubuntu 14.04, DIY USB with Teensy 2.0 & CP2102
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Matlo »

This error may happen in the following cases:
  • bad usb cable
  • bad connection between the CP2102 and the Teensy
  • console not powered on
It's possible to start GIMX from the command line to see the exact command output:

Code: Select all

gimx -p /dev/ttyUSB0 -c config.xml --status
Which GIMX version was previously installed?
Which firmware version are you using? Did you load the 4.1 one?
GIMX creator
Spaznetz
Posts: 25
Joined: Sat Mar 15, 2014 11:27 pm
Location: USA

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Spaznetz »

Thanks for the quick response, Matlo.

Here's the terminal output:
option -p with value `/dev/ttyUSB0'
option -c with value `config.xml'
status flag is set
connecting to /dev/ttyUSB0
connected
Detected USB adapter: Sixaxis.
can't read packet header
Can't get adapter status.
connector_init failed
I am not sure which version of GIMX was installed, I believe it was last update of version 3.

Firmware is still old version as I'm having trouble finding the instructions for how to do it again.
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Matlo »

Spaznetz wrote:Firmware is still old version as I'm having trouble finding the instructions for how to do it again.
This is the problem. Updating the firmware is very easy using the Teensy loader.
http://gimx.fr/wiki/index.php?title=DIY ... or_dummies
GIMX creator
Spaznetz
Posts: 25
Joined: Sat Mar 15, 2014 11:27 pm
Location: USA

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Spaznetz »

Yes, very easy once I found the right instructions, I had a bad bookmark from somewhere. Thank you!

Updated the firmware with the Teensy loader, but it still does not work.

I am now getting what looks to be normal terminal window when I run GIMX, but PS3 is not responding.

Ran GIMX from command line and I can see commands when I press keys or move mouse.
option -p with value `/dev/ttyUSB0'
option -c with value `PS3_Borderlands_Spaznetz.xml'
status flag is set
connecting to /dev/ttyUSB0
connected
Detected USB adapter: Sixaxis.
no pass-through device is needed
using default refresh period: 10.00ms
A device name is empty. Multiple mice and keyboards are not managed.
Warning: can't open macro directory /home/spaznetz//.gimx//macros/
0 1433427080.152324, rstick x (30), rstick y (-4)
0 1433427080.162235, rstick x (35), rstick y (-3)
0 1433427080.172262, rstick x (32), rstick y (-3)
0 1433427080.182265
Swapped out all cables and trouble persists.

Tested PS3 USB port & cables with Sixaxis controller (just to be sure) and it works.

What am I missing?

Is it possible to revert to 3.5 for testing to make sure my CP2102 or Teensy haven't gone bad?
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Matlo »

The USB adapter is detected, which means the connection between the CP2102 and the Teensy is right.

Did you set the USB adapter as controller 1 on the PS3?
GIMX creator
Spaznetz
Posts: 25
Joined: Sat Mar 15, 2014 11:27 pm
Location: USA

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Spaznetz »

Did you set the USB adapter as controller 1 on the PS3?
I am not sure what you mean by that.

The USB cable is connected to the lefthand port on the PS3 as it always was when I was using the previous release.

Is there an additional setting or step required in 4.2 that tells the PS3 which controller number GIMX is emulating?

Or are you asking if I pressed the PS button? I did and got no response from PS3.
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Matlo »

It works fine on my side.

Could you try to plug the Teensy to your PC and see if jstest-gtk gets the right events when gimx is running?
To install jstest-gtk:

Code: Select all

sudo apt-get install jstest-gtk
GIMX creator
Spaznetz
Posts: 25
Joined: Sat Mar 15, 2014 11:27 pm
Location: USA

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Spaznetz »

I installed jstest-gtk using the command you gave, but how do I run it?

(Sorry, not a Unix user. Not familiar with where things go when installed and/or how to run them after they are installed.)
Last edited by Spaznetz on Fri Jun 05, 2015 2:33 pm, edited 2 times in total.
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX will not run on Ubuntu since 4.2 update

Post by Matlo »

Just click on the Ubuntu dash (the Ubuntu icon on the top left), type jstest-gtk in the text area, and click on the jstest-gtk icon that shows up in the results.
Or type jstest-gtk in the terminal.
GIMX creator
Post Reply