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...
Fortunately, I found a solution to numpad on github. Looking at this, I have integrated it into the script.
sudo sh -c "$(curl -fsSL https://gitee.com/xiaoMGit/Y7000Series_Hackintosh_Fix/raw/master/Script/Optimize.sh)"
For the sake of convenience, I unified the implementation methods of numpad for y530 and y540, but there are currently some problems during boot-up. The subsequent solutions will be updated. You can enter "setleds" in the terminal to enable numpad.