README-linux.txt
changeset 7980 3122e7af0bf5
parent 7973 5d12bfc720e1
child 8784 605c4b0ef03d
equal deleted inserted replaced
7979:93d31af030bc 7980:3122e7af0bf5
    28 - DirectFB isn't included because the configure script (currently) fails to find
    28 - DirectFB isn't included because the configure script (currently) fails to find
    29   it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the 
    29   it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the 
    30   configure script to include DirectFB support. Send patches.  :)
    30   configure script to include DirectFB support. Send patches.  :)
    31 
    31 
    32 
    32 
       
    33 ================================================================================
       
    34 Joystick does not work
       
    35 ================================================================================
       
    36 
       
    37 If you compiled or are using a version of SDL with udev support (and you should!)
       
    38 there's a few issues that may cause SDL to fail to detect your joystick. To
       
    39 debug this, start by installing the evtest utility. On Ubuntu/Debian:
       
    40 
       
    41     sudo apt-get install evtest
       
    42     
       
    43 Then run:
       
    44     
       
    45     sudo evtest
       
    46     
       
    47 You'll hopefully see your joystick listed along with a name like "/dev/input/eventXX"
       
    48 Now run:
       
    49     
       
    50     cat /dev/input/event/XX
       
    51 
       
    52 If you get a permission error, you need to set a udev rule to change the mode of
       
    53 your device (see below)    
       
    54     
       
    55 Also, try:
       
    56     
       
    57     sudo udevadm info --query=all --name=input/eventXX
       
    58     
       
    59 If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don't see it,
       
    60 you need to set up an udev rule to force this variable.
       
    61 
       
    62 A combined rule for the Saitek Pro Flight Rudder Pedals to fix both issues looks 
       
    63 like:
       
    64     
       
    65    SUBSYSTEM=="input", ATTRS{idProduct}=="0763", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
       
    66    SUBSYSTEM=="input", ATTRS{idProduct}=="0764", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
       
    67    
       
    68 You can set up similar rules for your device by changing the values listed in
       
    69 idProduct and idVendor. To obtain these values, try:
       
    70     
       
    71     sudo udevadm info -a --name=input/eventXX | grep idVendor
       
    72     sudo udevadm info -a --name=input/eventXX | grep idProduct
       
    73     
       
    74 If multiple values come up for each of these, the one you want is the first one of each.    
       
    75 
       
    76 On other systems which ship with an older udev (such as CentOS), you may need
       
    77 to set up a rule such as:
       
    78     
       
    79     SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", ENV{ID_INPUT_JOYSTICK}="1"
       
    80