No controller found (again!)

Installation and usage on Linux / Installation unter Linux
Post Reply
david j
Posts: 2
Joined: 22 Apr 2013 11:18

No controller found (again!)

Post by david j »

I have tried several times to get HELI-X working on my Linux box, and failed. Now I have decided to try harder and get it working!

My machine is running Linux Mint 13, 32-bit.

When I start HELI-X 4.1 from the command line I get:
(note: I'm running runHELI-X_sound_padsp.sh to avoid showing the sound error message - another different issue!)

Code: Select all

david@desktop ~/HELI-X42 $ ./runHELI-X_sound_padsp.sh 
Set new path for the resources: /home/david/HELI-X42/resources/
Set new path for the user files: /home/david/HELI-X42/files/
Using openGLLayer JOGL_AWT
Found 12 display modes
22-Apr-2013 19:02:45 net.java.games.input.ControllerEnvironment log
INFO: Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)


22-Apr-2013 19:02:45 net.java.games.input.ControllerEnvironment log
INFO: Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)


22-Apr-2013 19:02:45 net.java.games.input.ControllerEnvironment log
INFO: Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)


22-Apr-2013 19:02:45 net.java.games.input.ControllerEnvironment log
INFO: Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)


java.lang.UnsatisfiedLinkError: net.java.games.input.LinuxJoystickDevice.nGetAxisMap(J)[B
	at net.java.games.input.LinuxJoystickDevice.nGetAxisMap(Native Method)
	at net.java.games.input.LinuxJoystickDevice.getDeviceAxisMap(LinuxJoystickDevice.java:200)
	at net.java.games.input.LinuxJoystickDevice.<init>(LinuxJoystickDevice.java:70)
	at net.java.games.input.LinuxEnvironmentPlugin.enumerateJoystickControllers(LinuxEnvironmentPlugin.java:408)
	at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:235)
	at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:115)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
	at java.lang.Class.newInstance0(Class.java:374)
	at java.lang.Class.newInstance(Class.java:327)
	at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:160)
	at a.a.a.n.a.r(Unknown Source)
	at a.a.a.n.a.<init>(Unknown Source)
	at a.a.a.g.h.W(Unknown Source)
	at a.a.a.g.h.<init>(Unknown Source)
	at a.a.a.m.q.<init>(Unknown Source)
	at a.a.a.m.e.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:673)
	at java.awt.EventQueue.access$300(EventQueue.java:96)
	at java.awt.EventQueue$2.run(EventQueue.java:634)
	at java.awt.EventQueue$2.run(EventQueue.java:632)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:643)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
No Joystick found
I have also tried:

Code: Select all

david@desktop ~/HELI-X42 $ ls -l /dev/input/js*
crw-rw-r--+ 1 root root 13, 0 Apr 22 19:01 /dev/input/js0
'jstest /dev/input/js0' is showing that my Tx is connected and working correctly.

I have tried searching the forum, but I'm struggling - can anyone help?
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: No controller found (again!)

Post by Michael »

Try (as root)

chmod 777 /dev/input/e*

There might also be a problem with the jinput-lib

And use Java from oracle not the openJDK

Michael
david j
Posts: 2
Joined: 22 Apr 2013 11:18

Re: No controller found (again!)

Post by david j »

Thank you, Michael.

I have tried the first action (chmod) but the result is the same.

Any idea how I can check whether there is a problem with jinput-lib? And how I can fix it, if there is?
hipolitkwass
Posts: 2
Joined: 20 Aug 2013 16:37

Re: No controller found UnsatisfiedLinkError: net.java.

Post by hipolitkwass »

I have the same issue on Linux Mint 15 / 32bit.

jstest and jstest-gtk show that joystick is alive, but the same exception prevents it from working with heli-x. Any others suggestions? Because no hint found on internet helped so far. I have HELI-X 4.2
hipolitkwass
Posts: 2
Joined: 20 Aug 2013 16:37

Re: No controller found (again!)

Post by hipolitkwass »

I found solution that worked for me. I replaced with file 'libjinput-linux.so' with one taken from here:

http://ci.newdawnsoftware.com/job/JInpu ... fact/dist/

This file contains missing method.
Post Reply