I have a strange problem !
My goal : be able to power ON / OFF hdmi !
My problem : does not work with rotated display ( like 720x1280 ) but work with horizontal
HDMI poweroff : tvservice -o => work great
HDMI poweron : tvservice -p => need some xrefresh because display is on but is black
fbset -depth 16;
fbset -depth 32;
xrefresh;
With vertical display ( 720x1280 ) i have this error for fbset -depth 16
pi@raspberrypi ~ $ fbset -depth 16
ioctl FBIOPUT_VSCREENINFO: Invalid argument
And so HDMI is power on but the content on the display stay black
If some of you guys have the trick ! thank you ! otherwise i will make a reboot when i want to HDMI ON .. :s