4JX / L5P-Keyboard-RGB

Cross platform software to control the RGB/lighting of the 4 zone keyboard included in the 2020, 2021, 2022 and 2023 lineup of the Lenovo Legion laptops. Works on Windows and Linux.
GNU General Public License v3.0
325 stars 41 forks source link

Error: Couldn't find device #18

Closed lucidtyper closed 3 years ago

lucidtyper commented 3 years ago

Hey there. I have a Lenovo Legion 5 (not Pro) and I've tried running the executable and get this error:

thread 'main' panicked at 'Error: Couldn't find device', src/main.rs:8:21 note: run withRUST_BACKTRACE=1environment variable to display a backtrace

4JX commented 3 years ago

Is this a 2021 model with a 4 zone (not white backlight) keyboard?

lucidtyper commented 3 years ago

I don't know about the age of this model, but I can confirm it is a 4 zone

4JX commented 3 years ago

I don't know about the age of this model, but I can confirm it is a 4 zone

What CPU does it have? What OS is the one you are testing in?

Sak-667 commented 3 years ago

Hello 4JX, I have tested and I also have the same error with a Legion-5-15IMH05H (Intel i5-10300H & 4 zone keyboard)

4JX commented 3 years ago

Hello 4JX, I have tested and I also have the same error with a Legion-5-15IMH05H (Intel i5-10300H & 4 zone keyboard)

Thats a 2020 model, which seems to have a slightly different way of handling the instructions than the 2021 counterpart. Haven't got a working version for those yet, would need people who have one for testing and some time (the latter being harder to find atm).

lucidtyper commented 3 years ago

I don't know about the age of this model, but I can confirm it is a 4 zone

What CPU does it have? What OS is the one you are testing in?

It has an AMD Ryzen 7 4800H. I am currently testing on Manjaro with Gnome 40.4

4JX commented 3 years ago

I don't know about the age of this model, but I can confirm it is a 4 zone

What CPU does it have? What OS is the one you are testing in?

It has an AMD Ryzen 7 4800H. I am currently testing on Manjaro with Gnome 40.4

Same issue as above then, the older model does not behave "quite the same".

FireMasterK commented 3 years ago

I'm facing this issue on EndeavourOS on the 2021 model (gen 6) which has a 5800H, the model name is Legion 5 15ACH6H.

Note: I didn't compile it, I used the release on github

4JX commented 3 years ago

I'm facing this issue on EndeavourOS on the 2021 model (gen 6) which has a 5800H, the model name is Legion 5 15ACH6H.

Note: I didn't compile it, I used the release on github

Assuming it is the 4 zone model, are you able to change things through vantage on Windows?/have you experienced any sudden issues with it being recognized by vantage?

Excuse me asking but on the linux side of things, is the error "could not open device"? In that case you'd need to run it as sudo. If instead it indeed is the not found lmk.

FireMasterK commented 3 years ago

Excuse me asking but on the linux side of things, is the error "could not open device"? In that case you'd need to run it as sudo. If instead it indeed is the not found lmk.

Yes, that was it, thank you!

4JX commented 3 years ago

Hey @Sak-667 and @MrLinuxOsu, there's a new release which enables support for the 2020 models, let me know how it goes. https://github.com/4JX/L5P-Keyboard-RGB/releases/tag/v0.9.0

Sak-667 commented 3 years ago

Hello, With sudo rights, it is all good with my keyboard now !

4JX commented 3 years ago

Closing as solved