I wrote this script. It is recommended to modify the y530 in the advanced BIOS mode. This script is mainly used for y540/y545/y730/y740/legion 5i/legion. 7. Because these versions cannot unlock the advanced BIOS mode.
Someone finally solved the problem. Current test situation y530/y
7000(2018) succeeded, y540/y545/y7000(2019, 2020)/legion 5i test failed. The possible reason is that the USB built-in keyboard is used.
Find setleds in / usr / local / bin /,and then open System Preferences -> Security & Privacy -> Find the "Accesibility" section. Unlock the pane by clicking on the padlock symbol, then press the + button to open a file browser. Now navigate to the location and select your setleds binary. Lock...