Ubuntu glitches on resume with Nvidia GPU

This problem was fixed by Nvidia driver ≥ 384


Ubuntu with Nvidia driver version 375 may experience rainbow banding effects where shadows are cast.

Workaround A:

setsid compiz --replace

This does not require sudo.

Workaround B: I got tired of having to keep doing the workaround above, so I temporarily reverted back to Nvidia driver 340. Alternatively, Nouveau also works OK.

Reference