Failed to get size of gamma for output default

Whenever I try to change the screen rotation on my display:

xrandr -o left # or xrandr --output default --rotate left 

or just by running xrandr, i get an error message saying:

Failed to get size of gamma for output default. 

Heres the output of xrandr --verbose:

Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768 default connected 1024x768+0+0 (0xed) normal (normal) 0mm x 0mm         Identifier: 0xec         Timestamp:  792077         Subpixel:   unknown         Clones:         CRTC:       0         CRTCs:      0         Transform:  1.000000 0.000000 0.000000                     0.000000 1.000000 0.000000                     0.000000 0.000000 1.000000                    filter:   1024x768 (0xed)   47.2MHz *current         h: width  1024 start    0 end    0 total 1024 skew    0 clock   46.1KHz         v: height  768 start    0 end    0 total  768           clock   60.0Hz