0
Success
Query or change a device's settings
ratbag-command [OPTIONS]
COMMAND ...
/path/to/device
The ratbag-commandq tool query or change a device's settings.
This tool usually needs to be run as root to have access to the /dev/input/eventX nodes.
--verbose
Print debugging output
--verbose=raw
Print debugging output with protocol output. No guarantees are given regarding the output format when this flag is on.
--help
Print the help.
listList supported devices (does not take a device argument)
infoPrint information about a device
profile active get
|
Print the currently active profile |
|---|---|
profile active set N
|
Set profile N as to the active profile |
profile N {COMMAND}
|
Use profile N for COMMAND |
Resolution commands work on the given profile, or on the active profile if none is given.
resolution active get
|
Print the currently active resolution |
|---|---|
resolution active set N
|
Set resolution N as the active resolution |
resolution N {COMMAND}
|
Use resolution N for COMMAND |
DPI commands work on the given profile and resolution, or on the active resolution of the active profile if none are given.
dpi get
|
Print the dpi value |
|---|---|
dpi set N
|
Set the dpi value to N |
rate get
|
Print the report rate in Hz |
rate set N
|
Set the report rate in N Hz |
Button commands work on the given profile, or on the active profile if none is given.
button count
|
Print the number of buttons |
|---|---|
button N action get
|
Print the button action |
button N action set button B
|
Set the button action to button B |
button N action set special S
|
Set the button action to special action S |
button N action set macro ...
|
Set the button action to the given macro |
Macro syntax:
A macro is a series of key events or waiting periods. Keys must be specified in linux/input.h key names.
|
Press and release 'a' |
|---|---|
|
Press 'a' |
|
Release 'a' |
|
Wait 300ms |
These commands are for testing purposes and may be removed without notice
switch-etekcitySwitch the Etekcity mouse active profile
0
Success
1
Unsupported feature or index out of available range
2
Commandline arguments are invalid
3
Invalid device or a command failed on the device
There is currently no guarantees that the output format of ratbag-command will not change in the future. There should be some stability with the commands mentioned in this man page, but do not expect it to stay the same.