How to stop blinking LEDs on xbox controllers?
  • Hi.

    I have installed the latest version of PiPlay (as of 22nd July 2015) and everything is running well (have got the SNES emulator up and running)... but I would like to be able to have the green LED rings on the xbox controllers (I have 2 connected) stop blinking or, alternatively, be lit depending on what controller they are - the same way the xbox does it.

    At the moment they just keep blinking, both in the main menu and when the SNES emulator is running. It's not a deal breaker, but it can get a bit distracting.

    Can anyone enlighten me as to what I need to change/set please?

    Thanks.
  • Hey - I'm trying to work out how to configure XBOXDRV too - but can't find how to - I have however found some info - this seems to answer your question but not sure how to implement it:

    http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html

    Status Options

    -l, --led NUM

    Set LED status. Possible values for NUM are:

    Table 1. LED Status Codes
    Num Behavior
    0 off
    1 all blinking
    2 1/top-left blink, then on
    3 2/top-right blink, then on
    4 3/bottom-left blink, then on
    5 4/bottom-right blink, then on
    6 1/top-left on
    7 2/top-right on
    8 3/bottom-left on
    9 4/bottom-right on
    10 rotate
    11 blink
    12 blink slower
    13 rotate with two lights
    14 blink
    15 blink once

    --rumble-gain AMOUNT

    You can change the rumble strength via:

    $ xboxdrv --rumble-gain 50%

    Values larger then 100% are possible as well and will amplify small rumble commands, rumble commands already at the maximum will stay unchanged.
    -q, --quit

    Exit xboxdrv after setting LED or rumble values.


    If anyone can tell me the command to enter and edit the XBOXDRV config file I would be very happy!!!

    Thanks in advance

  • Hey - I think I've found the file that you need to edit....

    /home/pi/pimame/config

    Open xboxdrv_mapping.cfg

    this has the config for XBOXDRV I think... Strange though as my config looks like this:

    [CODE]

    [xboxdrv]
    silent=true
    deadzone=6000
    dpad-as-button=true
    trigger-as-button=true

    [ui-axismap]
    x2=REL_X:10
    y2=REL_Y:-10
    x1=KEY_A:KEY_D
    y1=KEY_W:KEY_S

    [ui-buttonmap]
    a=KEY_LEFTSHIFT
    b=BTN_C
    x=BTN_EXTRA
    y=KEY_C

    [ui-buttonmap]
    lb=BTN_RIGHT
    rb=KEY_SPACE

    [ui-buttonmap]
    lt=KEY_5
    rt=BTN_LEFT

    [ui-buttonmap]
    dl=KEY_LEFT
    dr=KEY_RIGHT
    du=KEY_UP
    dd=KEY_DOWN

    [ui-buttonmap]
    back=KEY_ESC
    start=KEY_ENTER

    # EOF #

    [/CODE]

    dpad-as-button=true - why does my DPAD not work in SNES9X....!!! Ahhh!

    In fact - the controller configuration screen won't let me use it for any emulator.....
  • /usr/share/doc/xboxdrv seems to have some documentation and other files
  • Hi - just to update you - I have changed my

    xboxdrv_mapping.cfg

    file and the LED can be turned off with

    led = 0

    I also worked out why my DPAD wasn't being recognised - this was due to XPAD being installed and running at startup - I followed instructions and added it to a blacklist file and now the DPAD works perfectly.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!