Giter Club home page Giter Club logo

Comments (8)

Madcliff avatar Madcliff commented on May 23, 2024

Ok, so using the PKG build for the TKL, the driver partially functions, but the hid mapping seems to be more than a little hit and miss. I do not think it is correctly mapping the device keyboard properly.

from eruption.

X3n0m0rph59 avatar X3n0m0rph59 commented on May 23, 2024

Could you please run eruption with debug log-level enabled, and post a log of clicking the mouse buttons and the generated output?

To enable the debug log-level please perform these actions:

Stop and mask the daemon:

 $ sudo systemctl mask eruption.service && sudo systemctl stop eruption.service

Run the eruption daemon from a terminal

sudo RUST_BACKTRACE=full RUST_LOG=debug eruption

Afterwards re-enable the eruption daemon

 $ sudo systemctl unmask eruption.service && sudo systemctl restart eruption.service

from eruption.

Madcliff avatar Madcliff commented on May 23, 2024

This all looks pretty strange to me, I started with the top row of 4 buttons, then proceeded to the middle row, and finally the bottom row. It does seem to regularly suffer from the missed HID event

DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(13)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 14
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(13)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 14
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 10
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 10
DEBUG eruption > FPS: 17
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 10
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 10
DEBUG eruption > FPS: 17
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 10
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 10
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 11
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 10
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(9)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 10
DEBUG eruption > FPS: 18
ERROR eruption::hwdevices::roccat_nyth > We missed a HID event, mouse button states will be inconsistent
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 11
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(13)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 14
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 11
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 11
DEBUG eruption > FPS: 18
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 11
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 11
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(10)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 11
DEBUG eruption::hwdevices::roccat_nyth > ButtonDown(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 2 args: 9
DEBUG eruption::hwdevices::roccat_nyth > ButtonUp(8)
DEBUG eruption::scripting::script::callbacks > Macros: HID event (mouse): 3 args: 9
DEBUG eruption > FPS: 18
DEBUG eruption::scripting::script::callbacks > Macros: HID event: 2 args: 23
DEBUG eruption::scripting::script::callbacks > Macros: Key down: Index: 6
DEBUG eruption::scripting::script::callbacks > Macros: HID event: 2 args: 45
DEBUG eruption::scripting::script::callbacks > Macros: Key down: Index: 22
^X DEBUG eruption > FPS: 18
DEBUG eruption::scripting::script::callbacks > Macros: HID event: 1 args: 45
DEBUG eruption::scripting::script::callbacks > Macros: Key up: Index: 22
DEBUG eruption::scripting::script::callbacks > Macros: HID event: 1 args: 23
DEBUG eruption::scripting::script::callbacks > Macros: Key up: Index: 6
DEBUG eruption::scripting::script::callbacks > Macros: HID event: 2 args: 23
DEBUG eruption::scripting::script::callbacks > Macros: Key down: Index: 6
DEBUG eruption::scripting::script::callbacks > Macros: Key down: Index: 28
^C DEBUG eruption > Left the main loop
INFO eruption::plugins::persistence > Storing persistent state data to disk...
DEBUG eruption > Saving state...
INFO eruption > Exiting now

from eruption.

Madcliff avatar Madcliff commented on May 23, 2024

If I were to report my suspicions, I think the Nyth with its configurations, needs a setting set somewhere for it to recignise that it has twelve buttons rather than other configurations.

from eruption.

X3n0m0rph59 avatar X3n0m0rph59 commented on May 23, 2024

If I were to report my suspicions, I think the Nyth with its configurations, needs a setting set somewhere for it to recignise that it has twelve buttons rather than other configurations.

I think this may be the case for the evdev event reporting, but on the USB HID layer it should report each of the buttons regardless of their mapping state to a specific function or key.

I suspect that the code that handles the HID event is still wrong.
Could you please re-build eruption using the attached PKGBUILD, run it from a terminal with debug logging enabled, and then please post the logs? I am especially interested in the hexdump of the HID events.

eruption-PKGBUILD.zip

from eruption.

Madcliff avatar Madcliff commented on May 23, 2024

what is the command to run this in debug mode from the terminal?

from eruption.

X3n0m0rph59 avatar X3n0m0rph59 commented on May 23, 2024

Run the eruption daemon from a terminal with debug logging enabled:

 $ sudo RUST_BACKTRACE=full RUST_LOG=debug eruption

from eruption.

Madcliff avatar Madcliff commented on May 23, 2024

Is this what you are after?

nyth.log

from eruption.

Related Issues (20)

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.