Kodi starts with no display at startup

AppleTV detects my Hitachi TV fine (using HDMI).
Also MyOSMC welcome screen is shown correctly.
But when Kodi starts it goes without display - blank.
So every time when i reboot my appletv or kodi i have to SSH into Apple TV and run following lines.

export DISPLAY=:0.0
xrandr --output HDMI-0 --mode 1280x720

Is there a way to fix this problem permanently?
There wasn’t such a problem with openelec, but once i moved to osmc, i am struggling with this issue.

  1. Is there a way to run these two lines every time on kodi startup?
  2. Or some suggestions to change config line to force this resolution?

Xorg.0.log file:


Thank you

You can edit Xorg.conf to make this the default