input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

Keys on Jabra headphones not detected

Open jose1711 opened this issue 2 years ago โ€ข 7 comments

  1. key-mapper-control --version
key-mapper 1.2.1 6a68b894dc44c20ad20fe2b3600adab21410b8a3 https://github.com/sezanzeb/key-mapper
python-evdev 1.4.0
  1. If a button on your device doesn't show up in the GUI, verify that the button is reporting an event via sudo evtest. If not, key-mapper won't be able to map that button.
Event: time 1638479249.373884, -------------- SYN_REPORT ------------
Event: time 1638479249.374878, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00ea
Event: time 1638479249.374878, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1638479249.374878, -------------- SYN_REPORT ------------
Event: time 1638479249.825898, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00e9
Event: time 1638479249.825898, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1638479249.825898, -------------- SYN_REPORT ------------
  1. If yes, please run key-mapper-gtk -d, reproduce the problem and then share the logs.
57022 22:12:07.905831 DEBUG reader.py:189: Sending start msg to helper for "GN Netcom A/S Jabra EVOLVE LINK MS"
57022 22:12:07.905910 DEBUG reader.py:205: Clearing reader
57030 22:12:07.906026 DEBUG helper.py:100: Received command "GN Netcom A/S Jabra EVOLVE LINK MS"
57030 22:12:07.906172 DEBUG helper.py:155: Starting reading keycodes from "GN Netcom A/S Jabra EVOLVE LINK MS"
57022 22:12:12.444899 DEBUG reader.py:205: Clearing reader
57022 22:12:15.096730 SPAM reader.py:146: (1, 114, 0) ------------------- release
57022 22:12:20.973135 SPAM reader.py:161: (1, 114, 1) ------------------- down
57022 22:12:20.973249 SPAM reader.py:146: (1, 114, 0) ------------------- release
57022 22:12:22.872409 SPAM reader.py:161: (1, 115, 1) ------------------- down
57022 22:12:22.872529 SPAM reader.py:146: (1, 115, 0) ------------------- release
57022 22:12:24.067632 SPAM reader.py:161: (1, 115, 1) ------------------- down
57022 22:12:24.067750 SPAM reader.py:146: (1, 115, 0) ------------------- release
57022 22:12:25.360592 SPAM reader.py:161: (1, 114, 1) ------------------- down
57022 22:12:25.360711 SPAM reader.py:146: (1, 114, 0) ------------------- release

OS: Arch Linux, Gnome

jose1711 avatar Dec 02 '21 21:12 jose1711

Just to clarify, the key doesn't show up in the left column like here: https://github.com/sezanzeb/key-mapper/issues/222?

If you hold down the button on the headphone, does the release log appear before you release the button?

Maybe key-mapper isn't expecting the release event to arrive so fast. I'll need to look into the reader a bit and remember how that stuff works.

sezanzeb avatar Dec 02 '21 21:12 sezanzeb

Just to clarify, the key doesn't show up in the left column like here: #222?

No, it looks like this:

https://user-images.githubusercontent.com/1406222/144507930-805293fe-0bdf-4be3-994e-556f07eaf92c.mp4

If you hold down the button on the headphone, does the release log appear before you release the button?

If the button is held I get a stream of down+release events.

jose1711 avatar Dec 02 '21 21:12 jose1711

ok yeah, that's what I meant.

I'll take care of this eventually for sure

sezanzeb avatar Dec 02 '21 21:12 sezanzeb

I'll be busy until mid february and then hopefully find a good solution for this

sezanzeb avatar Jan 14 '22 20:01 sezanzeb

It might work now, please try again

sezanzeb avatar Feb 27 '22 14:02 sezanzeb

Thank you, behaviour with the current main is:

  • if volume down button is pressed:
    22:24:19.519154 105858 GUI DEBUG reader.py:162: down ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) down>
    22:24:19.519271 105858 GUI DEBUG reader.py:147: release ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) up>
    
  • if volume up button is pressed:
    22:24:58.875531 105858 GUI DEBUG reader.py:162: down ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEUP (115) down>
    22:24:58.875635 105858 GUI DEBUG reader.py:147: release ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEUP (115) up>
    

GUI does not react in any way hence the event cannot be mapped to a new key.

jose1711 avatar Mar 26 '22 21:03 jose1711

unfortunate, thanks for testing it again

sezanzeb avatar Mar 26 '22 23:03 sezanzeb