Tekk-Know / RazerBatteryTaskbar

51 stars 18 forks source link

Deathadder V2 Pro not found #6

Open axelzuzek opened 1 year ago

axelzuzek commented 1 year ago

Just tried the latest version with my DA V2 Pro wireless (2.4 Ghz) and wired

npm run-script start outputs Error: requestDevice error: Error: selected device not found at WebUSB. (C:\dev\RazerBatteryTaskbar\node_modules\usb\dist\webusb\index.js:255:31) at step (C:\dev\RazerBatteryTaskbar\node_modules\usb\dist\webusb\index.js:33:23) at Object.next (C:\dev\RazerBatteryTaskbar\node_modules\usb\dist\webusb\index.js:14:53) at fulfilled (C:\dev\RazerBatteryTaskbar\node_modules\usb\dist\webusb\index.js:5:58)

the packaged exe shows "undefined %" in taskbar

Tekk-Know commented 1 year ago

Would you want to try the debug version to gather more info? https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/tag/v1.0.1

AldairCB commented 1 year ago

Hi, I just installed and when opne the app, it shows invisible icons on the taskbar, but when I hover on it it says undefined% I have the same model as detailed on thread (DA V2 Pro wireless (2.4 Ghz)) and I have the lates version of the app 1.0.5

axelzuzek commented 1 year ago

Hi,

I tried the debug version same problem here

@.*** start electron-forge start

✔ Checking your system ✔ Locating application ✔ Loading configuration ✔ Preparing native dependencies: 1 / 1 [0.5s] ✔ Running generateAssets hook

Error: requestDevice error: Error: selected device not found at WebUSB. (C:\dev\RazerBatteryTaskbar-1.0.1\node_modules\usb\dist\webusb\index.js:255:31) at step (C:\dev\RazerBatteryTaskbar-1.0.1\node_modules\usb\dist\webusb\index.js:33:23) at Object.next (C:\dev\RazerBatteryTaskbar-1.0.1\node_modules\usb\dist\webusb\index.js:14:53) at fulfilled (C:\dev\RazerBatteryTaskbar-1.0.1\node_modules\usb\dist\webusb\index.js:5:58)

[image: 2023-09-22 19_45_59-.jpg]

I tried to debug the code a few month ago, details here: https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/1 but I never found a solution.

Am Fr., 22. Sept. 2023 um 18:46 Uhr schrieb Aldair Cuarez < @.***>:

Hi, I just installed and when opne the app, it shows invisible icons on the taskbar, but when I hover on it it says undefined% I have the same model as detailed on thread (DA V2 Pro wireless (2.4 Ghz)) and I have the lates version of the app 1.0.5

— Reply to this email directly, view it on GitHub https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/6#issuecomment-1731731086, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3HHY2KF4R26IX5F4YC67DX3W6FHANCNFSM6AAAAAA5AOWX4Y . You are receiving this because you authored the thread.Message ID: @.***>

-- *DI Axel Žužek Webbasierte Softwarelösungen Leopold Böhm Straße 5/306 1030 Wien +43 650 678 1111 @. www.zuzek.info

Tekk-Know commented 1 year ago

When you run the debug version you should see a notification displaying all connected / detected USB devices with their associated product Id and name (e.g. 158|Razer DeathAdder V2 Pro). You may have to allow notifications as it uses the default OS notification system.

If you aren't seeing this you may need to provide me a bit more information about your system.

axelzuzek commented 1 year ago

hi,

I sent a screenshot of the notification overlay in the last email

[image: 2023-09-22 19_45_59-.jpg]

my razer hardware (Death Adder V2 Pro and Huntsman Elite) were not found.

When I execute the following code:

const webusb = new WebUSB({ allowAllDevices: true });

const showDevices = async () => {
    const devices = await webusb.getDevices();
    const text = devices.map(d => `${d.productName}\t${d.productId}`);
    text.unshift('productName\tPID\n-------------------------------------');
    console.log(text.join('\n'));
};

showDevices();

==>

productName PID

MYSTIC LIGHT 31889 LG Monitor Controls 39481 Razer Huntsman Elite 550

using windows 10 - latest updates installed...

Am Fr., 22. Sept. 2023 um 22:25 Uhr schrieb Tekk-Know < @.***>:

When you run the debug version you should see a notification displaying all connected / detected USB devices with their associated product Id and name (e.g. 158|Razer DeathAdder V2 Pro). You may have to allow notifications as it uses the default OS notification system.

If you aren't seeing this you may need to provide me a bit more information about your system.

— Reply to this email directly, view it on GitHub https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/6#issuecomment-1731995035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3HHY6SMCQRNU3G5HQDSRLX3XX3LANCNFSM6AAAAAA5AOWX4Y . You are receiving this because you authored the thread.Message ID: @.***>

-- *DI Axel Žužek Webbasierte Softwarelösungen Leopold Böhm Straße 5/306 1030 Wien +43 650 678 1111 @. www.zuzek.info

Tekk-Know commented 1 year ago

Does the same lack of detection happen when plugged in via usb cable? What's your setup like, usb hub, docking stations anything like that?

axelzuzek commented 1 year ago

I just connected the Mouse with the USB cable directly to the mainboard of my second computer (Intel Nuc 13) fresh installed windows 10, same situation there the mouse is not detected and not shown the windows notification of the debug app (neither is my razer keyboard)

Am Sa., 23. Sept. 2023 um 00:24 Uhr schrieb Tekk-Know < @.***>:

Does the same lack of detection happen when plugged in via usb cable? What's your setup like, usb hub, docking stations anything like that?

— Reply to this email directly, view it on GitHub https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/6#issuecomment-1732090763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3HHY4UIQ7X77HTI46WT73X3YFYNANCNFSM6AAAAAA5AOWX4Y . You are receiving this because you authored the thread.Message ID: @.***>

-- *DI Axel Žužek Webbasierte Softwarelösungen Leopold Böhm Straße 5/306 1030 Wien +43 650 678 1111 @. www.zuzek.info

Tekk-Know commented 1 year ago

Hmm, well that is strange. If the USB lib can't find it then that's obviously our main issue. I'll attempt a build with https://github.com/node-usb/node-usb when I have time to see if that gets us better results.

axelzuzek commented 1 year ago

That would be great, thanks!

Am Sa., 23. Sept. 2023 um 14:31 Uhr schrieb Tekk-Know < @.***>:

Hmm, well that is strange. If the USB lib can't find it then that's obviously our main issue. I'll attempt a build with https://github.com/node-usb/node-usb when I have time to see if that gets us better results.

— Reply to this email directly, view it on GitHub https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/6#issuecomment-1732307781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3HHYZLZ7H7MN3XAETZBADX33JBJANCNFSM6AAAAAA5AOWX4Y . You are receiving this because you authored the thread.Message ID: @.***>

-- *DI Axel Žužek Webbasierte Softwarelösungen Leopold Böhm Straße 5/306 1030 Wien +43 650 678 1111 @. www.zuzek.info

axelzuzek commented 1 year ago

btw I just saw that I already opened a ticket with this issue in node-udb 9 month ago

https://github.com/node-usb/node-usb/issues/579

I just couldn't make much out of the answer

Am Sa., 23. Sept. 2023 um 16:51 Uhr schrieb Axel Žužek @.***>:

That would be great, thanks!

Am Sa., 23. Sept. 2023 um 14:31 Uhr schrieb Tekk-Know < @.***>:

Hmm, well that is strange. If the USB lib can't find it then that's obviously our main issue. I'll attempt a build with https://github.com/node-usb/node-usb when I have time to see if that gets us better results.

— Reply to this email directly, view it on GitHub https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/6#issuecomment-1732307781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3HHYZLZ7H7MN3XAETZBADX33JBJANCNFSM6AAAAAA5AOWX4Y . You are receiving this because you authored the thread.Message ID: @.***>

-- *DI Axel Žužek Webbasierte Softwarelösungen Leopold Böhm Straße 5/306 1030 Wien +43 650 678 1111 @. www.zuzek.info

-- *DI Axel Žužek Webbasierte Softwarelösungen Leopold Böhm Straße 5/306 1030 Wien +43 650 678 1111 @. www.zuzek.info

CartierCodes commented 1 year ago

My deathadder v2 pro is not working either, same issues as above.

Showing all available devices using WebUsb API doesn't show the mouse in wired or 2.4 mode. Maybe using the legacy Device functionality would work? Messed around with it and it didn't seem to be of much help. Not really sure. Using the 'node-hid' package I can get access to the Deathadder v2 Pro's info but that might be too much work to switch.

CartierCodes commented 11 months ago

Any plans go fix this, or are you too busy?

Meh7991 commented 9 months ago

My Deathadder V2 Pro also shows "undefined%" in the taskbar on launch.

I have it connected to my PC via the Mouse Dock Chroma with the DA dongle connected to it. I only have my DA linked to it.

VinhPham26 commented 5 months ago

Razer Viper Ultimate also shows "undefined%", plug the dongle to the dock or directly to the PC both show the error

Tekk-Know commented 3 months ago

@VinhPham26 try version 1.0.7 as it has a fix for Viper

Meh7991 commented 3 months ago

@Meh7991 You might try the newest version 1.0.7

I was just about to comment! Now, it only displays "Searching for device" endlessly. My setup hasn't changed since my last comment. image

CartierCodes commented 3 months ago

@Meh7991 You might try the newest version 1.0.7

I was just about to comment! Now, it only displays "Searching for device" endlessly. My setup hasn't changed since my last comment. image

Seeing this as well

VinhPham26 commented 2 months ago

@VinhPham26 try version 1.0.7 as it has a fix for Viper

Hi, ver 1.08 still not fixed, but from this issue: https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/19 I found that the problem is SignalRGB, turn off it make the app working

Meh7991 commented 2 months ago

@VinhPham26 try version 1.0.7 as it has a fix for Viper

Hi, ver 1.08 still not fixed, but from this issue: #19 I found that the problem is SignalRGB, turn off it make the app working

Unfortunately, this does not fix it for me. I tried closing SignalRGB and ending everything to do with Razer in Task Manager but nothing made this app change from "Searching for device".

Tekk-Know commented 2 months ago

Bummer, alright might be time for a migration away from the webusb lib.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Matt @.> Sent: Saturday, July 6, 2024 8:26:53 AM To: Tekk-Know/RazerBatteryTaskbar @.> Cc: Tekk-Know @.>; Comment @.> Subject: Re: [Tekk-Know/RazerBatteryTaskbar] Deathadder V2 Pro not found (Issue #6)

@VinhPham26https://github.com/VinhPham26 try version 1.0.7 as it has a fix for Viper

Hi, ver 1.08 still not fixed, but from this issue: #19https://github.com/Tekk-Know/RazerBatteryTaskbar/issues/19 I found that the problem is SignalRGB, turn off it make the app working

Unfortunately, this does not fix it for me. I tried closing SignalRGB and ending everything to do with Razer in Task Manager but nothing made this app change from "Searching for device".

— Reply to this email directly, view it on GitHubhttps://github.com/Tekk-Know/RazerBatteryTaskbar/issues/6#issuecomment-2211755844, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADZMRNADUAUC6VDPOR2V23LZK7PA3AVCNFSM6AAAAAA5AOWX42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRG42TKOBUGQ. You are receiving this because you commented.Message ID: @.***>

Tekk-Know commented 2 months ago

You guys might try the new debug release that ditches WebUSB: https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

Meh7991 commented 2 months ago

You guys might try the new debug release that ditches WebUSB: https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

Still "Searching for device".

Plus, this notification: image

Edit: not sure if it's relevant, but all my connected Razer devices include:

Tekk-Know commented 2 months ago

@Meh7991 Yeah, ok this might fall under a feature improvement. Currently, I think it picks the default razer device and just tries to get its battery %. You might try unplugging everything razer except the mouse and relaunch the app to see if it shows correctly.

CartierCodes commented 2 months ago

@Meh7991 Yeah, ok this might fall under a feature improvement. Currently, I think it picks the default razer device and just tries to get its battery %. You might try unplugging everything razer except the mouse and relaunch the app to see if it shows correctly.

Heres what I am seeing on 1.0.9 image

The only razer product I have is a Deathadder V2 Pro

Tekk-Know commented 2 months ago

@CartierCodes Fair enough, rules that out.

Tekk-Know commented 2 months ago

@CartierCodes I added a notification to the error handler in the battery call to the mouse, wanna see if you see anything. Updated the exe file in the release. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

CartierCodes commented 2 months ago

@CartierCodes I added a notification to the error handler in the battery call to the mouse, wanna see if you see anything. Updated the exe file in the release. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

image image

lol the error message doesn't help haha. Lemme know any other changes you want me to test

Tekk-Know commented 2 months ago

Well I think I nailed that haha, I guess it's time to implement actual logging.

@CartierCodes Ok, one more try before full logging. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

Meh7991 commented 2 months ago

Well I think I nailed that haha, I guess it's time to implement actual logging.

@CartierCodes Ok, one more try before full logging. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

image image

CartierCodes commented 2 months ago

Well I think I nailed that haha, I guess it's time to implement actual logging.

@CartierCodes Ok, one more try before full logging. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe

image image

Tekk-Know commented 2 months ago

@CartierCodes I added a logger with some basic logging mind trying this reupped version again. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe logs should be saved to: %USERPROFILE%\AppData\Roaming\razerbatterytaskbar\logs

Meh7991 commented 2 months ago

@CartierCodes I added a logger with some basic logging mind trying this reupped version again. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe logs should be saved to: %USERPROFILE%\AppData\Roaming\razerbatterytaskbar\logs

app.log Not sure if you want this from me as well, but here it is.

CartierCodes commented 2 months ago

@CartierCodes I added a logger with some basic logging mind trying this reupped version again. https://github.com/Tekk-Know/RazerBatteryTaskbar/releases/download/debug/razerbatterytaskbar-1.0.9.Setup.exe logs should be saved to: %USERPROFILE%\AppData\Roaming\razerbatterytaskbar\logs

app.log Here is mine

Tekk-Know commented 2 months ago

Nice! Ok so very different errors here.

@Meh7991 I think your error is probably due to the multiple Razer products and I'll need to make a UI selector to pick the one we care about.

@CartierCodes I think your error might stem from a libusb resource issue. I'll dig into that more.

VinhPham26 commented 1 month ago

To anyone using signalRGB, today with the 2.4 update, they also show the mouse battery icon under the taskbar. So if you need both rgb control and mouse battery showing, just use signalRGB

Meh7991 commented 1 month ago

To anyone using signalRGB, today with the 2.4 update, they also show the mouse battery icon under the taskbar. So if you need both rgb control and mouse battery showing, just use signalRGB

Yep, been using this in the beta releases and it's been working perfectly for me with my Deathadder V2 Pro.