• How did you discover how to query for animation ID? Have you found if that can also be set?

  • @pvazny I think I tried to set it, but it didn't work. Don't really remember for sure though! I just queried all 256 reports in a loop, and started messing with my keyboard! That's how I found it.

  • The Better but more complicated version: https://github.com/aliqandil/reactive-leds

  • I tried setting it and it did not make any difference. It only wrote two bytes and then it reported back what I sent, for example cc01 (without the ff as that got dropped). By the way (not that it matters) the two animation you have marked as off (cc0aff and cc0cff) are actually sound activated, but the sound must be coming through laptop speakers. https://download.lenovo.com/pccbbs/pubs/legion_7_16_6/html_en/EN/pre-defined_lighting_modes.html

  • Interesting! I'm assuming it only works in windows? Never noticed it on Linux, and couldn't get it to work now. I'll look into it more. It might also be customizable!

  • So, I was playing with sending reports and found that if you send CC00<effect_id><solid_color_id><brightness>, you can actually set the effect and brightness. There are more effects built into the keyboard than Lenovo exposes through keyboard shortcuts.

    <brightness> seems to go from 0x00 to 0x0F and only controls keyboard, so there must be a different way to control the rest of the lights.

    <solid_color_id> - works only in 0x03 mode to control color of all LEDs, otherwise controls logo, neon and vents only if not overridden by the animation. I am guessing that the later is just an artifact. 0x00 - 0x11 goes through solid colors from red through blue, green, yellow to orange. 0x12 is solid white. Anything above that does not seem to do much, but I did not test but a couple values.

    <effect_id>

    • 0x00 - keyboard breathing. keyboard only effect
    • 0x02 - keyboard cycles through all colors. keyboard only effect
    • 0x03 - sets all lets the same color as specified by the <solid_color_id>
    • 0x04 - lights up keys as you type and fades them away. keyboard only effect
    • 0x05 - sliding rainbow, left to right. keyboard only effect
    • 0x07, 0x08, 0x09 - don't do anything or freeze animation
    • 0x0e and 0x0f - turn the lights off, but the keyboard reports the last valid status. Probably invalid options
    Edited by Peter Vazny
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment