Why black screen after run sudo nvidia-xconfig -a --cool-bits=31

You have a hybrid graphics notebook so you can’t create an xorg.conf just for the nvidia. Please see this how to set options in that case:
https://forums.developer.nvidia.com/t/how-to-create-a-normal-working-xorg-conf/210792/2