openrazer icon indicating copy to clipboard operation
openrazer copied to clipboard

Razer Naga Epic support

Open nailplsh opened this issue 9 years ago • 46 comments

Linux device identifier: 1532:001F Product ID: RZ01-005101 12 Macros

nailplsh avatar Feb 10 '17 19:02 nailplsh

It has a wireless dock, right? That one should be 1532:0021.

z3ntu avatar Feb 10 '17 19:02 z3ntu

hmm okay. I am pretty sure that it is 001F but I will try the other

nailplsh avatar Feb 10 '17 19:02 nailplsh

Please post the output of lsusb -d 1532:001F -v and ls -lah /dev/input/by-id/ and read this on how to get packet captures. Also screenshots of all available options on Razer Synapse are needed.

z3ntu avatar Feb 10 '17 20:02 z3ntu

@etxzay this here is another project that supports changing the color of Chroma devices. Unfortunately the Razer Naga Epic isn't support yet but you can help with getting there :)

(note to others: redirected him here from another repo)

z3ntu avatar Feb 16 '17 19:02 z3ntu

@z3ntu it has a dock which can be a bluetooth access point for wireless mouse connection, and dock has id 1532:0021

etxzay@blink ~> lsusb -d 1532:001F -v

Bus 003 Device 009: ID 1532:001f Razer USA, Ltd 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1532 Razer USA, Ltd
  idProduct          0x001f 
  bcdDevice            2.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      93
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      47
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
etxzay@blink ~> ls -lah /dev/input/by-id/
total 0
drwxr-xr-x 2 root root 100 фев 18 08:13 .
drwxr-xr-x 4 root root 460 фев 18 08:13 ..
lrwxrwxrwx 1 root root   9 фев 18 08:13 usb-Razer_Razer_Naga_Epic-event-mouse -> ../event4
lrwxrwxrwx 1 root root   9 фев 18 08:13 usb-Razer_Razer_Naga_Epic-if01-event-kbd -> ../event5
lrwxrwxrwx 1 root root   9 фев 18 08:13 usb-Razer_Razer_Naga_Epic-mouse -> ../mouse0`

Both commands where executed while mice was connected wired (direct USB cable to PC)

zhukovpe avatar Feb 18 '17 06:02 zhukovpe

Also screenshots of all available options on Razer Synapse are needed.

I'm about to shift from Windows 7 to Linux, thought that I could help out with the screenshots @z3ntu

naga_epic_mouse_customize naga_epic_mouse_customize_side_view_123 naga_epic_mouse_customize_side_view_num naga_epic_mouse_lighting naga_epic_mouse_performance naga_epic_mouse_power

spannerman79 avatar Mar 28 '17 16:03 spannerman79

Need packet captures for the following (each item in its own file please)

  • Static Effect (diffferent colours, red blue etc...)
  • Spectrum cycling toggle on off
  • Wired Brightness from off -> bright -> off -> bright a few times
  • Wireless Brightness from off -> bright -> off -> bright a few times
  • DPI 100 -> 5600 a few times
  • Polling rate 125 -> 1000 a few times
  • Sleep mode from 1 -> 15 a few times
  • Flash battery indicator 5->25 a few times

terricain avatar Jun 25 '17 09:06 terricain

Tested in wired mode on Kali 2016.2 w/ W10 x64

~ lsusb -d 1532:001F -v

Bus 001 Device 009: ID 1532:001f Razer USA, Ltd 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1532 Razer USA, Ltd
  idProduct          0x001f 
  bcdDevice            2.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      93
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      47
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1

Static effect - I've selected all colors from the top row (white was selected before capture) Spectrum cycling on->off 3x Wired Brightness (before capture off) -> bright -> off 3x Wireless Brightness (before capture off) -> bright -> off 3x DPI (before capture 100) -> 5600->100 3x Polling rate (before capture 125) -> 1000->125 3x Enter sleep mode (before capture 1) -> 15->1 3x Blink scroll wheel light when power level is below (before capture 5%) -> 25->5 3x

Let me know if this is ok

Captures.zip

Destroyer avatar Jul 16 '17 20:07 Destroyer

Will have a look soon, am super busy but good job on all teh pcaps

terricain avatar Jul 17 '17 17:07 terricain

Install debs from here - https://drive.google.com/open?id=0BydYgD2LzDUCenp0SEh0akcxMGc - reboot, then run

ls -l /sys/bus/hid/drivers
ls -l /sys/bus/hid/drivers/razermouse
ls -l /sys/bus/hid/drivers/razermouse/0*/

terricain avatar Aug 05 '17 15:08 terricain

@terrycain I don't have a debian/ubuntu workstation at the moment. Is there anything else can I do to help test this model?

jcstryker avatar Jan 20 '18 00:01 jcstryker

You can build it yourself for any other distro. See the wiki for a few pointers (I think the site is called 'Building packages')

z3ntu avatar Jan 20 '18 08:01 z3ntu

@jcstryker https://github.com/openrazer/openrazer/wiki/Building-a-package

spannerman79 avatar Jan 20 '18 08:01 spannerman79

Sorry, I completly forgot to reply because I stopped using that mouse on my laptop. Anyway I installed it and this is my status on kali with latest updates and 4.14.0 kernel

# ls -l /sys/bus/hid/drivers
total 0
drwxr-xr-x 2 root root 0 Jan 21 02:04 hid-generic
drwxr-xr-x 2 root root 0 Jan 21 02:04 razermouse
# ls -l /sys/bus/hid/drivers/razermouse
total 0
--w------- 1 root root 4096 Jan 21 02:04 bind
lrwxrwxrwx 1 root root    0 Jan 21 02:04 module -> ../../../../module/razermouse
--w------- 1 root root 4096 Jan 21 02:04 new_id
--w------- 1 root root 4096 Jan 21 02:04 uevent
--w------- 1 root root 4096 Jan 21 02:04 unbind
# ls -l /sys/bus/hid/drivers/razermouse/0*/
ls: cannot access '/sys/bus/hid/drivers/razermouse/0*/': No such file or directory

Destroyer avatar Jan 21 '18 01:01 Destroyer

same exact output on Linux Mint 18

n-scope avatar Jan 22 '18 15:01 n-scope

@Destroyer @n-scope Can you two join our community chat, either via Telegram (https://t.me/joinchat/A1E4RT9TxhnxyetdQCSj7Q) or via Matrix (https://matrix.to/#/#openrazer:matrix.org) ? Debugging via issue comments takes forever.

z3ntu avatar Jan 28 '18 11:01 z3ntu

If this is still open for testing, I'd like to help. I use a Naga Epic in wired mode (can confirm 1532:001F) ; Mint 18.3.

The debs seem to have been removed from the Google Drive, but if they are still available I can give it a shot.

Raineer avatar Mar 16 '18 07:03 Raineer

@Raineer You can follow https://github.com/openrazer/openrazer/wiki/Building-a-package#ubuntu--linux-mint with feature_naga_epic_001F as TARGET_BRANCH

z3ntu avatar May 30 '18 22:05 z3ntu

I have had success getting the device recognised with this branch.

Configuring the lighting works through polychromatic.

jcstryker avatar Jun 14 '18 02:06 jcstryker

@jcstryker Does everything work?

z3ntu avatar Jun 14 '18 08:06 z3ntu

Ah sorry, so after some more testing with a openrazer-git PKGBUILD for Arch Linux, modified to build the 'feature_naga_epic_001F' branch, this is what I have found.

Naga Epic Dock:

  • Not Recognized at all

Naga Epic Wired Mode:

  • Device is not owned by plugdev group
  • After manual chown:
    • Device is recognized on daemon restart
    • Lighting (both Spectrum/Static), Brightness, DPI, and Polling Rate are all working and configurable
    • DPI setting is not saved on reboot (polychromatic)

razer.log

jcstryker avatar Jun 14 '18 10:06 jcstryker

I've rebased that branch on master, please try again. About the dock: Will have to look. About the chown stuff: It should be done by the udev rule, have you tried rebooting after the installation? About DPI: the daemon doesn't save values over reboots currently.

z3ntu avatar Jun 14 '18 11:06 z3ntu

Rebuilt the package with the new rebased branch and everything looks good.

  • Udev rule issue is fixed, I had rebooted for my last test, but since the rebuild everything works fine

  • My DPI/Lighting/Poll Rate settings are now being preserved, not sure if this is the daemon or polychromatic

Concerning the dock, it is still not being recognized. I understand that you are looking into it.

Here is the output of lsusb -d 1532:0021 -v:

Bus 002 Device 004: ID 1532:0021 Razer USA, Ltd 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1532 Razer USA, Ltd
  idProduct          0x0021 
  bcdDevice            2.00
  iManufacturer           1 Razer
  iProduct                2 Razer Naga Epic Dock
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      93
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     101
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

and ls -lah /dev/input/by-id/:

total 0
drwxr-xr-x 2 root root 180 Jun 14 09:17 ./
drwxr-xr-x 4 root root 580 Jun 14 09:17 ../
lrwxrwxrwx 1 root root   9 Jun 14 09:17 usb-Razer_Razer_Naga_Epic_Dock-event-mouse -> ../event9
lrwxrwxrwx 1 root root  10 Jun 14 09:17 usb-Razer_Razer_Naga_Epic_Dock-if01-event-kbd -> ../event13
lrwxrwxrwx 1 root root   9 Jun 14 09:17 usb-Razer_Razer_Naga_Epic_Dock-mouse -> ../mouse0

If you need anything else, e.g. packet captures, I can setup a Windows VM. Just let me know.

Thanks a bunch for your work on this.

jcstryker avatar Jun 14 '18 13:06 jcstryker

I am unable to get the debs folder on google drive. I am a current user of Razar naga epic Bus 002 Device 007: ID 1532:001f Razer USA, Ltd Can anyone please help me out to get it working on Ubuntu?

bansalani avatar Nov 16 '18 07:11 bansalani

@bansalani Just follow https://github.com/openrazer/openrazer/issues/197#issuecomment-393343688

z3ntu avatar Nov 16 '18 09:11 z3ntu

Following the guidlines in https://github.com/openrazer/openrazer/issues/197#issuecomment-393343688 it works for me ( static color & spectrum ) - but only in wired mode, wireless just nets me a "unkown razer device" in polychromatic

guppy42 avatar Nov 26 '18 21:11 guppy42

Sorry reposting in an "old" topic but im having problems with installing it on Ubuntu following #197 (comment) instructions. I have a screenshot, part of it is in Spanish since my system have that language. Hope you can help me, i'm having problems with my mouse and i'm trying to fix it with this. It is when i use the command "./scripts/build_debs.sh" after the long one "sudo apt install debhelper linux-headers-generic python3-setuptools lsb-release dkms # build dependencies"

razer naga

franciscojmarin avatar Feb 21 '19 18:02 franciscojmarin

@franciscojmarin Install dh-python with apt

z3ntu avatar Mar 19 '19 09:03 z3ntu

What is the reason this wasn't added into release 2.5.0 ? I more testing needed or?

guppy42 avatar Mar 29 '19 07:03 guppy42

Poking this issue again, I've followed all of the instructions, and it's still not picking up my mouse.

heathkraft avatar May 14 '19 04:05 heathkraft