libx52
0.3.2
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
config
load
Returns
OK
config
load
Error
ERR
Invalid file '/none' for 'config load' command
Arguments
config
reload
Returns
OK
config
reload
The 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
config
dump
Returns
OK
config
dump
Error
ERR
Invalid file '/none' for 'config dump' command
Arguments
config
save
Returns
OK
config
save
The 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
config
get
Returns
DATA
Example
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.
This will set the value within the configuration memory structures, and will immediately invoke the relevant callback to update the rest of the threads or device state.
Arguments
config
set
Returns
OK
config
set
Error example