problems with saitek cyborg command + pystromo 0.6.0 + ubuntu 9.10

Asked by SlipperySam

Hello

I found on ubuntuforums ( http://ubuntuforums.org/showthread.php?t=948833 ) a guide to setup a saitek cyborg command unitwhich I followed to setup mine and Im having troubles remapping the keys, after lunching pystromo only the minijoystick works, the rest of the gamepad keys are dead.

This is what I get on a terminal when I lunch pystromo:

sudo ./pystromo-remap.py -m config/saitek.map -v
Using output: <lib.devices.OutputDevice object at 0x986224c>
Loading mappings
/home/r00t/pystromo/lib/mapping.py:501: DeprecationWarning: object.__init__() takes no parameters
  tuple.__init__(self, *args, **kwargs)
Using device: <InputDevice "pro" on 1 device nodes>

I thought that karmic wasnt fully detecting my saitek so I typed on a console cat /dev/input/js0 and I pressed all the keys and I got a bunch of random characters in the terminal meaning all my keys are being detected, so I have no clue whats going on. Any help to get my command unit working is greatly appreciated

Question information

Language:
English Edit question
Status:
Solved
For:
Pystromo Edit question
Assignee:
No assignee Edit question
Solved by:
SlipperySam
Solved:
Last query:
Last reply:
Revision history for this message
SlipperySam (harutenou-sm) said :
#1

I kinda "solved" the problem, for some reason the saitek.map file doesnt work for me, had to do a config.map file from scratch.

First I created an output.map file with:

# Descriptive name of your controller.
[Device:mypad]
vendor=0x06a3
product=0x80c1

[Map:mypad]

as suggested on this tread ( http://ubuntuforums.org/showthread.php?t=948833 ) then on a console I typed:

sudo ./pystromo-remap.py -m output.map -vv, and pressed all my saitek keys and got stuff like:

incoming event: <Event timestamp=1261331632.1206369, type='EV_KEY', code='BTN_TRIGGER', value=1>
Incoming event: <Event timestamp=1261331632.23264, type='EV_KEY', code='BTN_TRIGGER', value=0>
Incoming event: <Event timestamp=1261331637.512641, type='EV_KEY', code='BTN_THUMB', value=1>
Incoming event: <Event timestamp=1261331637.5846441, type='EV_KEY', code='BTN_THUMB', value=0>

copy /pasted everything into a text file to know what button is what and now my config.map file looks like this:

# Saitek Pro Gamer Command pad
[Device:pro]
vendor=0x06a3
product=0x80c1
savefile=~/pystromo/config/default.save

[Map:pro]

BTN_THUMB2:KEY_A
BTN_TOP:KEY_H
BTN_TOP2:KEY_Q
BTN_PINKIE:KEY_W
BTN_BASE:KEY_E
BTN_BASE2:KEY_R

and everything seems to work so far.. hope this helps to whoever runs into this problem in the future.