1xboxdrv-daemon (1)               User Commands              xboxdrv-daemon (1)
2
3
4

NAME

6       xboxdrv-daemon  -  A  simple daemon that automatically launches xboxdrv
7       when it detects a controller.
8

SYNOPSIS

10       xboxdrv [OPTION]... [--] {XBOXDRV} [ARGS]...
11

DESCRIPTION

13       -h, --help
14              Display help text and exit.
15
16       --version
17              Print the version number and exit.
18
19       -v, --verbose
20              Be verbose with printed output.
21
22       -a FILENAME, --attach=FILENAME
23              Launch EXE when a new controller is connected
24
25       -d FILENAME, --detach=FILENAME
26              Launch EXE when a controller is detached
27
28       -x FILENAME, --xboxdrv=FILENAME
29              Set the location of the xboxdrv executable
30

RUNNING XBOXDRV VIA XBOXDRV-DAEMON

32       xboxdrv-daemon allows you to run  xboxdrv  automatically  whenever  you
33       plug  in a gamepad. Since xboxdrv-daemon.py needs to know where xboxdrv
34       is located you need to supply the location of the xboxdrv binary  manu‐
35       ally if its not located in PATH:
36
37       % xboxdrv-daemon --xboxdrv ./xboxdrv
38
39       You can pass arguments to xboxdrv after a double dash '--':
40
41       % xboxdrv-daemon -- --buttonmap B=A,X=A,Y=A
42
43       You can also run scripts that get started after xboxdrv is started via:
44
45       % xboxdrv-daemon \
46         --attach /home/juser/xboxdrv_attach \
47         --detach /home/juser/xboxdrv_deatach
48
49       This  is useful in Kiosk settings, such as a media center PC, where you
50       might want to restart the media center to have the  controller  working
51       properly after it got attached.
52
53       Note  that  you  can't  dynamically  reconfigurabilty  xboxdrv when you
54       launch it automatically via the daemon, so using this daemon isn't gen‐
55       erally recommend.
56
57       When  you want configurability and automatic launching, it is recomment
58       that you write little startup scripts for your games, such as this:
59
60       #!/bin/sh
61
62       # Start xboxdrv and remember its PID in the variable XBOXPID
63       xboxdrv --trigger-as-button -s &
64       XBOXPID=$!
65
66       # Give xboxdrv a second to startup and create the device
67       sleep 1
68
69       # Launch your favorite game
70       your_favorite_game
71
72       # Kill xboxdrv and wait for it to finish
73       kill $XBOXPID
74       wait $XBOXPID
75
76       # EOF #
77
78       That way you can individually configure every game and still  not  have
79       to worry about launching xboxdrv manually.
80

SEE ALSO

82       xboxdrv(1)
83
84
85
860.4.14                            2010-05-13                xboxdrv-daemon (1)
Impressum