I have been using
xcalib -invert -alter to reverse the colors in my screen. The command works fine with the nouveau driver using the onboard graphics driver. However, when I switch to NVIDIA binary driver version 364, the screen color is not inverted.
My laptop is ASUS ROG-GL552VW. I am using Ubuntu 16.04 with NVIDIA GeForce GTX 960M. If any additional information is useful to fix my problem, I'd be glad to share.