Forums › English Language Forums › Technical › Technical Issues

Search

Gamepad won't work any more.

4 replies [Last post]
Fri, 10/26/2012 - 16:53
Autofire's picture
Autofire

Hello. I've come to the Tech. Issues thread sometimes, but I never thought I would be posting something like this! :P

My Logitech gamepad, which used to work with SK, doesn't work anymore. I'm not sure entirely what is wrong. This is what I'm getting:

2012/10/26 16:46:01:434 INFO I$a.b: Logging to '/home/daniel/spiral/./projectx.log'.
2012/10/26 16:46:15:652 INFO DefaultControllerEnvironment.getControllers: Loading: net.java.games.input.LinuxEnvironmentPlugin
2012/10/26 16:46:15:661 INFO ControllerEnvironment.log: Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)

2012/10/26 16:46:15:661 INFO ControllerEnvironment.log: Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)

2012/10/26 16:46:15:661 INFO ControllerEnvironment.log: Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)

2012/10/26 16:46:15:662 INFO ControllerEnvironment.log: Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)

2012/10/26 16:46:15:662 INFO ControllerEnvironment.log: Failed to open device (/dev/input/event4): Failed to open device /dev/input/event4 (13)

2012/10/26 16:46:15:662 INFO ControllerEnvironment.log: Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)

2012/10/26 16:46:15:702 INFO ControllerEnvironment.log: Failed to open device (/dev/input/js0): Failed to get button map (22)

2012/10/26 16:46:15:703 INFO ControllerEnvironment.log: Linux plugin claims to have found 0 controllers

2012/10/26 16:46:21:711 INFO I$a.b: Connecting [host=game.spiralknights.com/184.73.171.156, port=47624]
2012/10/26 16:46:22:302 INFO I$a.b: Datagram connection established [port=47624]
2012/10/26 16:46:28:505 INFO I$a.b: Moving at request of server [zoneId=83886080, sceneId=2147483647]
2012/10/26 16:46:28:553 INFO I$a.b: Issuing zoned moveTo(5:0, 2147483647, 1).
2012/10/26 16:46:35:298 WARNING I$a.b: Long invoker unit [unit=News Reader (class com.threerings.projectx.client.bd), time=1884ms].

I'm using Linux, if you couldn't tell. The only reason I wanted to be able to use my gamepad is because I wanted to try Blast Network using it. Thanks for the help in advance!

Fri, 10/26/2012 - 17:06
#1
Irthan's picture
Irthan
The first thing to do is to

The first thing to do is to check the permissions on /dev/input/js0 to verify that your user has access to the device. Do ls -l /dev/input/js0.

Fri, 10/26/2012 - 17:46
#2
Little-Juances's picture
Little-Juances

Does it work elsewhere?

Sat, 10/27/2012 - 06:32
#3
Autofire's picture
Autofire
Oh!

I forgot to say that it, as a matter of fact, does work everywhere else on the computer. KDE can calibrate it, all my Windows games (ran with Wine, mind you) are still working. The thing that confuses me is that is wants /dev/input/event0 rather than /dev/input/js0. (Or is event something entirely different?)

Hm....could it be that there is something wrong with Java? When I do java -version, I get this:

Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)

I'm just trying to think of the ways that might help us to figure it out. (Oh, and yes, /dev/input/js0 does have read permission for the whole system.)

Sat, 10/27/2012 - 16:23
#4
Autofire's picture
Autofire
Fixed it!

I found that the reading permissions where set wrong. I couldn't read it! It works now, but there are some errors in the log file I'm still interested in. It reads like this:

2012/10/27 13:50:34:296 INFO I$a.b: Logging to '/home/daniel/spiral/projectx.log'.
2012/10/27 13:50:47:669 INFO DefaultControllerEnvironment.getControllers: Loading: net.java.games.input.LinuxEnvironmentPlugin
2012/10/27 13:50:47:794 INFO ControllerEnvironment.log: Failed to open device (/dev/input/js0): Failed to get button map (22)

2012/10/27 13:50:47:795 INFO ControllerEnvironment.log: Linux plugin claims to have found 6 controllers

Just as a little note, my gamepad has a similar button layout as as seen here, except the arrows are replaced with a D-pad and the shoulder buttons are digital. I'm not sure why it would say 6 controllers. :\ (And where is this ControllerEnvironment.log it is talking about?)

Powered by Drupal, an open source content management system