Hello
Are you coming from a sense 4 rom?
If so this is a known issue and to fix it you must flash original GB sense stock rooted rom set it up then wipe everything and flash 4.x.x rom
And after this you will have working autorotate
I had before this a JB ROM,and later i flashed codefirex JB rom and rotation worked.