I cannot rotate the screen on my secondary monitor using xrandr

I already added the following line in /etc/x11/xorg.conf
Option “RandRRotation” “on”

Still when I ran the command:
$ xrandr --output DP-1-1 --rotate right

I got the message:
xrandr: output DP-1-1 cannot use rotation “right” reflection “none”

https://devtalk.nvidia.com/default/topic/522835/linux/if-you-have-a-problem-please-read-this-first/