i'm running protractor tests (chrome) headless and Xvfb or xvfb-run creates displays with incorrect resolution. I have two variants of tests starting:
Xvfb :10 -screen 0 1920x1200x24 -ac &
export DISPLAY=:10
<command>
or
xvfb-run --auto-servernum --server-args='-screen 0, 1920x1200x24' <command>
but it creates screens with resolution 945x1180 (resolutiion can be a little bit smaller, it's chrome viewport). BTW. If I change screen to 1, resolution will be 1050x1004