Code Monkey home page Code Monkey logo

tourbox_neo_linux_driver's Issues

Issues with Tourbox Elite - can't reconnect to device after its been unplugged

I've been trying to get my elite controller to work and have discovered something unusual:
I can read input data from /dev/ttyACM0 initially when plugged into USB, however, if I disconnect the device and reconnect it, I can no longer read data. Only if I boot into Windows and launch the tourbox driver, then I can boot back into Linux and read from the device. Note that simply rebooting Linux does not seem to fix the issue.

Simple reproduction:

# Connect controller
sudo stty -F /dev/ttyACM0 raw
sudo cat /dev/ttyACM0 # and press some inputs
# Disconnect controller and repeat

The vibration motor also does not engage on input so I expect that this is triggered by writing some data to the device. I've been looking at the data produced in Wireshark, however, I expect this is overkill since this also includes all the USB header information as well, although I'm not sure if there is a simpler sniffing method.

How to Map This

So I read that you can remap the buttons using Xmodmap. I've read up on the Arch wiki on how to use it, but it only seems to relate to the keyboard. I've also run xev just to get an idea as to the input, but some of them read the same (dial clockwise, knob counterclockwise). Anybody know where to point me for mapping this bad boy?

Cleanup/Refactor

  • Refactor uinput_helper.hpp -- stop passing the file descriptor around so much.
  • Check return value of read(2), ioctl, write and all other syscalls
  • Don't use array of single value
  • Make keymap const (then use at instead of operator[])

Scroll Wheel Clicked

Whenever I launch this, all the command prompt gives me is:

Scroll wheel clicked
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
00 �
01 �
0

Scroll wheel clicked

And it keeps looping.

Unwanted conflict with Logid (Logitech Drivers) driver

Upon successfully installing the driver, my programmed Logitech MX Master 3 (LogiOps) key binds revert to their default config despite the logid cfg file still having my bind configurations. Restarting and shutting down the system does not improve the issue.

Checking dmesg, the virtual device seems to stay despite already exiting the program.

GCC 12 build issue: `error: loop variable ‘keyType’ creates a copy from type ‘const std::pair<const KeyType, int>’ [-Werror=range-loop-construct]`

Hey whenever I try to use the make command, here's what happens:
Consolidate compiler generated dependencies of target TourBox_Linux_Driver [ 50%] Building CXX object CMakeFiles/TourBox_Linux_Driver.dir/main.cpp.o In file included from /home/wayne/Tourbox_Linux_Driver/cpp/main.cpp:23: /home/wayne/Tourbox_Linux_Driver/cpp/uinput_helper.hpp: In function ‘void registerKeyboardEvents(int)’: /home/wayne/Tourbox_Linux_Driver/cpp/uinput_helper.hpp:87:21: error: loop variable ‘keyType’ creates a copy from type ‘const std::pair<const KeyType, int>’ [-Werror=range-loop-construct] 87 | for (const auto keyType : keyMap) | ^~~~~~~ /home/wayne/Tourbox_Linux_Driver/cpp/uinput_helper.hpp:87:21: note: use reference type to prevent copying 87 | for (const auto keyType : keyMap) | ^~~~~~~ | & cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/TourBox_Linux_Driver.dir/build.make:76: CMakeFiles/TourBox_Linux_Driver.dir/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/TourBox_Linux_Driver.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.