All guides RazeCLI

How to change Razer mouse DPI on Mac with RazeCLI

With a supported Razer mouse, connect it by USB or its 2.4 GHz receiver and use RazeCLI to read, set and verify the DPI. The DeathAdder V2 Pro is the project's main hardware validation target.

Check the model and connection

Install RazeCLI using the project’s instructions. Connect one supported mouse, then list the model registry and what the USB backend sees. The model registry identifies known models. Hardware support for individual controls depends on the connection and model. RazeCLI installation.

razecli models
          razecli --backend rawhid devices

Read, set and check the DPI

Record the current DPI before changing it. This example sets X and Y to the same value and reads back the result. Use the original values if you need to undo the change.

razecli --backend rawhid dpi get
          razecli --backend rawhid dpi set --x 1600 --y 1600
          razecli --backend rawhid dpi get

To see the preset values the mouse can cycle through, use razecli --backend rawhid dpi-stages get. DPI is the mouse’s sensitivity setting. The tracking speed slider in macOS also affects how far the pointer moves.

Check support for Bluetooth

The macos-ble backend is experimental. On macOS you can use razecli --backend macos-ble devices to check discovery and try dpi get with that backend before attempting a write. If discovery or read-back fails, connect by cable or receiver and repeat the USB steps. Polling rate over Bluetooth is unavailable on the DeathAdder V2 Pro in RazeCLI. RazeCLI backend status.