l5p-kbl icon indicating copy to clipboard operation
l5p-kbl copied to clipboard

Getting error on use

Open robojerk opened this issue 3 years ago • 9 comments

Trying to use the script on a Legion 5 15ARH05H (AMD 4800h + RTX 2060) Arch Linux. Assuming there's a driver I need to load? Getting this error.

./l5p_kbl.py static ff0000
Traceback (most recent call last):
  File ".../l5p-kbl/./l5p_kbl.py", line 240, in <module>
    controller = LedController()
  File ".../l5p-kbl/./l5p_kbl.py", line 63, in __init__
    raise ValueError("Light device not found")
ValueError: Light device not found

robojerk avatar Jan 16 '22 04:01 robojerk

It's for Legion 5 Pro, not for Legion 5. Does it has keyboard light? If it does, please dump conversations between vantage and usb light device with wireshark and usbpcap

imShara avatar Jan 16 '22 11:01 imShara

@imShara The 2020 variant is virtually identical to the 2021 in terms of how it communicates, you just need to change the product ID as per https://github.com/4JX/L5P-Keyboard-RGB/blob/main/src/keyboard_utils.rs#L13L20.

4JX avatar Mar 06 '22 17:03 4JX

I am getting the same error, on a 2021 edition Legion 5 Pro - model "82JQ Legion 5 Pro 16ACH6H".

sandalbanditten avatar Mar 28 '22 12:03 sandalbanditten

@sandalbanditten give me lsusb

imShara avatar Mar 31 '22 20:03 imShara

Here it is:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 04d9:0356 Holtek Semiconductor, Inc. Ducky Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 048d:c101 Integrated Technology Express, Inc. ITE Device(8910)
Bus 001 Device 003: ID 5986:115f Acer, Inc Integrated Camera
Bus 001 Device 004: ID 1b1c:1b5d Corsair CORSAIR IRONCLAW RGB Gaming Mouse
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sandalbanditten avatar Mar 31 '22 20:03 sandalbanditten

Here it is:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 04d9:0356 Holtek Semiconductor, Inc. Ducky Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 048d:c101 Integrated Technology Express, Inc. ITE Device(8910)
Bus 001 Device 003: ID 5986:115f Acer, Inc Integrated Camera
Bus 001 Device 004: ID 1b1c:1b5d Corsair CORSAIR IRONCLAW RGB Gaming Mouse
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

2022-04-01_12-45

Hardware slightly changed. Try to change VEN/PROD pair from

VENDOR = 0x048D
PRODUCT = 0xC965

to

VENDOR = 0x04D9
PRODUCT = 0x0356

But the proper way is to dump dump vantage USB conversations with wireshark+usbpcap.

imShara avatar Apr 01 '22 06:04 imShara

I have the same error as @sandalbanditten for the same hardware(Lenovo Legion 5 Pro 16ACH6). Tried to change VEN/PROD pair as @imShara proposed, but still have Light device not found error.

styfrombrest avatar Jun 03 '22 09:06 styfrombrest

I have the same error as @sandalbanditten for the same hardware(Lenovo Legion 5 Pro 16ACH6). Tried to change VEN/PROD pair as @imShara proposed, but still have Light device not found error.

Please make usbpcap dump via wireshark when you change color via lenovo vantage.

imShara avatar Jun 06 '22 09:06 imShara

@imShara I've checked lsusb, it looks like this: Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 0bda:4852 Realtek Semiconductor Corp. Bluetooth Radio Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 048d:c101 Integrated Technology Express, Inc. ITE Device(8910) Bus 001 Device 003: ID 5986:115f Acer, Inc Integrated Camera Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I've updated VEN/PROD pair from it(048d:c101 right?) and still no success, but with different error: Traceback (most recent call last): File "/home/taras/projects/l5p-kbl/./l5p_kbl.py", line 241, in <module> data = controller.build_control_string( File "/home/taras/projects/l5p-kbl/./l5p_kbl.py", line 87, in build_control_string data.append(self.EFFECT[effect]) KeyError: None

and then keyboard stop working :(

styfrombrest avatar Jun 09 '22 19:06 styfrombrest