|
libx52
0.2.3
Saitek X52/X52Pro drivers for Linux/Unix
|
The config commands deal with x52d configuration subsystem, and have the following subcommands.
The config load subgroup allows you to load a configuration from a given file (discarding anything that was already in memory), or reload the configuration from the command-line specified configuration file (or default configuration file if no option was given on the command line.)
Arguments
configloadReturns
OKconfigloadError
ERRInvalid file '/none' for 'config load' commandArguments
configreloadReturns
OKconfigreloadThe config save subgroup requests the x52d daemon to save the current state of the configuration to disk. This is either the system configuration file, or may be a user specified configuration file. Note that this will be created with the permissions of the running daemon, which may be running as root.
Arguments
configdumpReturns
OKconfigdumpError
ERRInvalid file '/none' for 'config dump' commandArguments
configsaveReturns
OKconfigsaveThe config get command requests a specific configuration value, given the section and the key. Refer to X52 driver daemon for the section and key names, as these are derived from the base configuration.
Arguments
configgetReturns
DATAExample
Error example
The config set command requests the x52d daemon to set the given (section, key) parameter to the given value. The daemon will treat it the same way as if it was being read from the configuration file, i.e., it will follow identical parsing logic, including ignoring unknown keys and not reporting errors for them.
A side effect of this is that the client could request a set for any arbitrary section and key pair, and if that pair was not recognized, it would be ignored, but the daemon would still send an OK response.
Finally, this will only set the value within the configuration memory structures, and will not invoke any callback to update the rest of the threads or device state. The client will need to call the apply subcommand to actually invoke the necessary callbacks.
Arguments
configsetReturns
OKconfigsetError example
The config apply command will invoke all the callbacks and ensure that the configuration is applied to the running state.
Arguments
configapplyReturns
OKconfigapply
1.8.17