Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Razer Naga Chroma side keys not working and throwing errors #375

Closed
Marahin opened this issue Sep 1, 2017 · 7 comments
Closed

Razer Naga Chroma side keys not working and throwing errors #375

Marahin opened this issue Sep 1, 2017 · 7 comments
Assignees
Labels
bug

Comments

@Marahin
Copy link

@Marahin Marahin commented Sep 1, 2017

What's wrong?

After the update, when the daemon is on, the side keys don't work.

Logs

2017-09-01 21:28:55 | razer.device1                  | DEBUG    | DBus call get_firmware
2017-09-01 21:28:55 | razer.device1                  | DEBUG    | DBus call version
2017-09-01 21:28:55 | razer.device1                  | DEBUG    | DBus call has_matrix
2017-09-01 21:28:55 | razer.device1                  | DEBUG    | DBus call has_matrix
2017-09-01 21:28:55 | razer.device0                  | DEBUG    | DBus call get_logo_brightness
2017-09-01 21:28:55 | razer.device0                  | DEBUG    | DBus call get_scroll_brightness
2017-09-01 21:28:58 | razer.device1                  | DEBUG    | DBus call get_brightness
2017-09-01 21:28:59 | razer.device0                  | DEBUG    | DBus call get_logo_brightness
2017-09-01 21:28:59 | razer.device0                  | DEBUG    | DBus call get_scroll_brightness
2017-09-01 21:28:59 | razer.device0                  | DEBUG    | DBus call get_poll_rate
2017-09-01 21:30:15 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 11
2017-09-01 21:31:18 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 11
2017-09-01 21:31:34 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 9
2017-09-01 21:31:35 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 9
2017-09-01 21:31:35 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 10
2017-09-01 21:31:38 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 10
2017-09-01 21:31:38 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 11
2017-09-01 21:31:39 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 11
2017-09-01 21:31:39 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 12
2017-09-01 21:31:41 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 12
2017-09-01 21:31:41 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 13
2017-09-01 21:31:43 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 13
2017-09-01 21:31:51 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 9
2017-09-01 21:31:53 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 9
2017-09-01 21:31:55 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 9
2017-09-01 21:31:57 | razer.device0.keymanager       | ERROR    | Got key error. Couldn't convert event to key name
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/razer_daemon/misc/key_event_management.py", line 386, in key_action
    key_name = self.EVENT_MAP[key_id]
KeyError: 9

Possible cause

@terrycain has brought up an idea of what could be the reason here.

Environment

Ubuntu 17.04 64-bit.

Misc.

Everything else (setting the DPI, brightness, etc.) works marvelous, thank you for the amazing work and bringing compatibility to Linux! :-) 👍

@terrycain terrycain self-assigned this Sep 2, 2017
@terrycain terrycain added the bug label Sep 2, 2017
@terrycain
Copy link
Member

@terrycain terrycain commented Sep 3, 2017

Kill the daemon with pkill razer-daemon

Clone the repo, there is a file scripts/misc/event_reader.py, run that like
scripts/misc/event_reader.py /dev/input/by-id/usb-Razer_Razer_Naga_Chroma-if01-event-kbd
press all the number buttons and save the output
scripts/misc/event_reader.py /dev/input/by-id/usb-Razer_Razer_Naga_Chroma-if02-event-kbd
and do the same with that command

It should react when you press the number buttons.

@Marahin
Copy link
Author

@Marahin Marahin commented Sep 3, 2017

I will do that in the nearest future.

@MorningStarGG
Copy link

@MorningStarGG MorningStarGG commented Sep 11, 2017

This is currently happening for me as well. I also use Polychromatic and when I go to the mouse config. "There was a problem communicating with the daemon for this device." - I was using a Razer Naga 2014 and had no issues, but with the Naga Chroma, I have both of these issues. I'm guessing they are somehow related?

@wenzler
Copy link

@wenzler wenzler commented Dec 19, 2017

Ran the event_reader.py on Ubuntu16.04
Killing the openrazer-daemon gives the default 1234567890-= on if01
and
python3 openrazer/scripts/misc/event_reader.py --tartarus /dev/input/by-id/usb-Razer_Razer_Naga_Chroma-if02-event-kbd
Starting. Press keys
Type: EV_KEY, Code: 2, Value: DOWN
1Type: EV_KEY, Code: 2, Value: UP
Type: EV_KEY, Code: 3, Value: DOWN
2Type: EV_KEY, Code: 3, Value: UP
Type: EV_KEY, Code: 4, Value: DOWN
3Type: EV_KEY, Code: 4, Value: UP
Type: EV_KEY, Code: 5, Value: DOWN
4Type: EV_KEY, Code: 5, Value: UP
Type: EV_KEY, Code: 6, Value: DOWN
5Type: EV_KEY, Code: 6, Value: UP
Type: EV_KEY, Code: 7, Value: DOWN
6Type: EV_KEY, Code: 7, Value: UP
Type: EV_KEY, Code: 8, Value: DOWN
7Type: EV_KEY, Code: 8, Value: UP
Type: EV_KEY, Code: 9, Value: DOWN
8Type: EV_KEY, Code: 9, Value: UP
Type: EV_KEY, Code: 10, Value: DOWN
9Type: EV_KEY, Code: 10, Value: UP
Type: EV_KEY, Code: 11, Value: DOWN
0Type: EV_KEY, Code: 11, Value: UP
Type: EV_KEY, Code: 12, Value: DOWN
-Type: EV_KEY, Code: 12, Value: UP
Type: EV_KEY, Code: 13, Value: DOWN
=Type: EV_KEY, Code: 13, Value: UP

@z3ntu
Copy link
Member

@z3ntu z3ntu commented Dec 19, 2017

@wenzler You could try to apply the following diff: d1e683a to the installed files. A new release containing this should be out in the next couple of days.

@wenzler
Copy link

@wenzler wenzler commented Dec 19, 2017

Thanks @z3ntu - this works ok-ish (excl tilt wheel) with https://github.com/apocatarsis/Naga_KeypadMapper
Yet, looking at the patch I'm wondering how the key mapping is supposed to be done after all.
In xorg/xmodmap? I’m not a bit wiser after a day of duckduck-ing :/

@z3ntu
Copy link
Member

@z3ntu z3ntu commented Jan 28, 2018

d1e683a is in a release.

@z3ntu z3ntu closed this Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.