LTWheelConf icon indicating copy to clipboard operation
LTWheelConf copied to clipboard

unneccesary driver re-attaching

Open TripleSpeeder opened this issue 13 years ago • 0 comments

For each Logitech-specifc command that requires direct communication with the device few steps need to be done:

  • detach kernel driver
  • claim USB device
  • send command string(s)
  • release USB device
  • attach kernel driver

When ltwheelconf is called with multiple commands at once, for each command the steps above are done. It would be better to collect all cmd strings to send and then only once do the detach/attach driver stuff.

Example: $# sudo ltwheelconf -wheel G25 --range 900 --autocenter 0

Currently for both commands (setting range and setting autocenter force) the above sequence is executed. With the improved implementation only once the kernel driver would be detached, then both commands for range and autocenter would be sent and then the kerneldriver attached again.

TripleSpeeder avatar May 09 '11 14:05 TripleSpeeder