This isn't our responsibility. The responsibility is on hardware vendors providing software compatible with Linux to allow DPI switching and configuration, or providing mechanisms to allow DPI configuration to be applied, which is the case if you buy the right hardware (such as a Logitech or Razer mice, both of which have configuration software, piper and razergenie respectively, developed by the open source community.).
Also why did you create a separate thread for this? Locking, please use your other thread.