zxy654,
Welcome to LQ forums.
Open a Terminal and install gedit:
Code:
sudo apt install gedit
Then give this command:
Code:
sudo gedit /usr/share/X11/xorg.conf.d/10-nvidia.conf
and add the following line (immediately below the line Option "AllowEmptyInitialConfiguration"):
Code:
Option "RegistryDwords" "EnableBrightnessControl=1;"
Save the file and reboot.