Tekk-Know / RazerBatteryTaskbar

45 stars 18 forks source link

Add Support for Razer Naga Pro #15

Open ShadowKitty42 opened 5 months ago

ShadowKitty42 commented 5 months ago

I see you have the Pro V2 already, how difficult would it be to add the original model? That's the one I have and would love to use this software.

https://www.amazon.com/gp/product/B08D27XXRY/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

DrissiReda commented 3 months ago

I have the same mouse. It doesn't work however it should because it has the same productId and transactionId as the V2 (0090 and 001f respectively). It doesn't even show up in devices. Only the wireless dock shows up for me.

Wondering if there is something else to change besides the transaction and product Ids found in main.js file.

Tekk-Know commented 3 months ago

@DrissiReda if the transaction Ids are the same then I would think it would be working. Are you sure this is connecting with USB and not Bluetooth?

DrissiReda commented 3 months ago

yes the naga pro v2 and v1 have the same transaction ids respectively for usb and wireless (only tried 2.4 not BT).

You can see so here: https://github.com/openrazer/openrazer/blob/master/driver/razermouse_driver.c#L663

And the productId is also the same as you can see here: https://github.com/openrazer/openrazer/blob/master/README.md?plain=1#L179

Tekk-Know commented 4 days ago

@ShadowKitty42 @DrissiReda Can you load up the debug version and give me the output from the popup? https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/tag/v1.0.1

DrissiReda commented 4 days ago

@ShadowKitty42 @DrissiReda Can you load up the debug version and give me the output from the popup? https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/tag/v1.0.1

How to load up debug?

launching it normally without any arguments returns this output on latest 1.07 version:

NamedError [NotFoundError]: Failed to execute 'requestDevice' on 'USB': No device selected.
    at WebUSB.requestDevice (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.7\resources\app\node_modules\usb\dist\webusb\index.js:163:19)
    at async GetMouse (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.7\resources\app\src\main.js:180:20)
    at async GetBattery (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.7\resources\app\src\main.js:192:23)

Similar output from 1.0.1:

Error: requestDevice error: Error: selected device not found
    at WebUSB.<anonymous> (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.1\resources\app\node_modules\usb\dist\webusb\index.js:255:31)
    at step (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.1\resources\app\node_modules\usb\dist\webusb\index.js:33:23)
    at Object.next (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.1\resources\app\node_modules\usb\dist\webusb\index.js:14:53)
    at fulfilled (C:\Users\FOO\AppData\Local\razerbatterytaskbar\app-1.0.1\resources\app\node_modules\usb\dist\webusb\index.js:5:58)
ShadowKitty42 commented 3 days ago

I didn't even realize there was a Debug version, I got this same popup while modifying it myself to try and figure it out lol

Either way, here's what comes up for me image_2024-07-04_120741207

Tekk-Know commented 1 day ago

You guys might try the debug rewrite release and see if it fixes anything for you: https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

DrissiReda commented 23 hours ago

You guys might try the debug rewrite release and see if it fixes anything for you: https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

Running this command in terminal without any arguments: .\razerbatterytaskbar.exe gives:

TypeError: Cannot read properties of undefined (reading 'transactionId')
    at GetMessage (C:\Users\NEW HORYZEN\AppData\Local\razerbatterytaskbar\app-1.0.9\resources\app\src\main.js:71:40)
    at C:\Users\NEW HORYZEN\AppData\Local\razerbatterytaskbar\app-1.0.9\resources\app\src\main.js:102:25
    at new Promise (<anonymous>)
    at GetBattery (C:\Users\NEW HORYZEN\AppData\Local\razerbatterytaskbar\app-1.0.9\resources\app\src\main.js:98:12)
    at SetTrayDetails (C:\Users\NEW HORYZEN\AppData\Local\razerbatterytaskbar\app-1.0.9\resources\app\src\main.js:51:5)
    at C:\Users\NEW HORYZEN\AppData\Local\razerbatterytaskbar\app-1.0.9\resources\app\src\main.js:34:5
ShadowKitty42 commented 14 hours ago

Well that's interesting. I'm also getting the same message, "cannot read properties", but I'm also getting this

image

And when hovering on the icon, it says searching for devices

Edit: This is especially weird because I did not purchase a V2 Pro, I have the original.