Last active
October 28, 2023 20:39
-
-
Save z3ntu/c5ca8f6040d8934fafc5e686b234890e to your computer and use it in GitHub Desktop.
openrazer fake driver commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # one tab | |
| mkdir -p /tmp/daemon_stuff/{,data,logs}; mkdir -p /tmp/daemon_test | |
| ./scripts/create_fake_device.py --dest /tmp/daemon_test --all | |
| ./scripts/create_fake_device.py --dest /tmp/daemon_test razerdeathadderchroma | |
| # other tab | |
| systemctl --user stop openrazer-daemon.service | |
| openrazer-daemon -F --verbose --run-dir /tmp/daemon_stuff/data --log-dir /tmp/daemon_stuff/logs --test-dir /tmp/daemon_test | |
| # run from source from testdata | |
| PYTHONPATH="pylib:daemon" python3 ./daemon/run_openrazer_daemon.py -Fv --run-dir /tmp/daemon_stuff/data --log-dir /tmp/daemon_stuff/logs --test-dir /tmp/daemon_test --config=$PWD/daemon/resources/razer.conf | |
| # run from source like normal | |
| PYTHONPATH="pylib:daemon" python3 ./daemon/run_openrazer_daemon.py -Fv --config=$PWD/daemon/resources/razer.conf | |
| # get available "fake" devices | |
| find pylib -name '*.cfg' | |
| # get nice list of fake devices | |
| find pylib -name '*.cfg' -exec basename \{\} .cfg \; | tr '\n' ' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment