I have a lenovo x230t and have recently begun to retry with getting my screen rotation to work properly. I've been using the following: https://github.com/martin-ueding/thinkpad-scripts. But calling xrandr --output display --rotate inverted causes the display to go black. However calling --rotate left/right/normal all work properly. The display shows that it has the option for inverted, but obviously is not working as intended and I'm not sure how to get it to work.
It's a current bug in linux kernel
The bug happens when switching between inverted and normal mode. A temporary solution is to rotate by 90° steps as follow
xrandr -o left && xrandr -o inverted
This worked for me on dell inspiron 13. Hope it will work for you