Nvidia discrete graphic card not working

A couple things that you can provide for us to assist.
Please post the output of
dnf list installed '*nvidia*'
dnf repolist
lsmod | grep -E 'nouveau|nvidia'
inxi -Fzxx
mokutil --sb-state

With that info we should be able to identify most problems and provide suggestions.

I also suggest (if not recently done) that you do a full upgrade sudo dnf upgrade --refresh