The 0xC0024806 sequence is the ioctl value required to "Send a feature report" to the hidraw device. This path may be different depending on how many devices you have plugged into your machine. dev/hidraw1 is the hidraw device for my mouse. This magic Ruby code (must be run as root, or by a user with permission to write to /dev/hidraw1) will set the polling rate to 125Hz on my mouse: #!/bin/ruby (This was quite helpful in pointing me in the right direction: ) I installed Windows in a virtual machine, attached the USB mouse device to the VM, then traced the USB traffic with Wireshark and isolated the control command that the official Logitech driver used to set the polling rate. Packages (including kernel) are all stock.Performance in KSP is otherwise as expected based on my laptop's hardware.Xfce 4.12 (tried with compositing enabled and disabled, no change).No problems doing the right click panning in KSP using this. The touchpad isn't using usbhid and polls at 125hz according to evhz. But the problem remains in KSP, and when I run evhz from it still reports polling rate of 1000hz. These are somewhat effective in that cat /sys/module/usbhid/parameters/mousepoll returns 8 as expected. Running sudo modprobe -r usbhid & sudo modprobe usbhid mousepoll=8 from the command line.Setting usbhid.mousepoll=8 on the command line while booting.Setting options usbhid mousepoll=8 in /etc/modprobe.d/usbhid.I have a Logitech G400 mouse that polls at up to 1000hz. In Kerbal Space Program there's a Linux bug where if you drag the view with the right mouse button while the mousepoll value is higher than 125hz the game will hang for a second or two making it very frustrating to play. I have a very specific need to change the mousepoll value in Ubuntu 15.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |