kondinskis / hyperx-cloud-flight

Simple tray application which shows battery level for HyperX Cloud Flight Wireless Headset.
MIT License
37 stars 10 forks source link

Not found any compatible device #4

Closed Ryzeon closed 2 years ago

Ryzeon commented 2 years ago

HI, im trying to install it, but throws thread 'main' panicked at 'Not found any compatible device', src/cloud_flight.rs:75:13 note: run withRUST_BACKTRACE=1environment variable to display a backtrace error :(

kondinskis commented 2 years ago

Can you provide output from the following command lsusb | grep "Kingston" ?

Ryzeon commented 2 years ago

Sure image

kondinskis commented 2 years ago

Have you created the udev rule file ? As shown in the readme? https://github.com/kondinskis/hyperx-cloud-flight#prerequisites

Ryzeon commented 2 years ago

Yep, image

kondinskis commented 2 years ago

Hmm, can you check if hidapi is installed on your machine?

Ryzeon commented 2 years ago

Yep libhidapi-hidraw0 is installed

kondinskis commented 2 years ago

Did u replug the dongle or maybe tried restarting the pc?

Ryzeon commented 2 years ago

When i created /etc/udev/rules.d/99-hyperx-cloud-flight.rules, i replug but doesn't work, i tried to restart but i get same result

kondinskis commented 2 years ago

Did you tried to run it with sudo ?

Ryzeon commented 2 years ago

Let me try

Ryzeon commented 2 years ago

Works, but there's any icon 😭 image image

kondinskis commented 2 years ago

It's udev related issue, can you provide output from the following command? ls -la /etc/udev/rules.d/99-hyperx-cloud-flight.rules

Ryzeon commented 2 years ago

Sure, image

kondinskis commented 2 years ago

Can you try with the following rules?

KERNEL=="hidraw*", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="16c4", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1723", MODE="0666"

Replug the dongle once u change them.

Ryzeon commented 2 years ago

I get the same result, icon doesn't show 😢

kondinskis commented 2 years ago

Once you change them, start it without sudo.

Ryzeon commented 2 years ago

kk, let me try

Ryzeon commented 2 years ago

Now works, tyy

kondinskis commented 2 years ago

You're welcome.

santiagosuare commented 2 years ago

Same problem, but following this steps now works. thx!