Changing maximal (virtual) resolution for xrandr
Running xrandr it seems that the maximum (virtual) resolution is 1920x1200. This appears to be sufficient to be able to rotate the screen on my phone, where I run with a small resolution (954x something I think). Just turning the screen leads to a squeezed display, but with xrandr --output default --rotate right --auto I can sort of make it work (might look into a more comfortable way of doing this, or would be happy about input).
The problem is that on my tablet I am running the Xserver with a resolution of 1280x800, which is fine in landscape orientation. But it seems to block portrait orientation, since the 1280 width does not fit the maximum (virtual?) height of 1200 indicated by xrandr. Is there a way of increasing the maximum virtual resolution? Normally, one would add a "Virtual xxx yyy" line in xorg.conf, but the app doesn't seem to use an xorg. conf. Could I just add a stub to the /data/data/x.org.server/files/usr/share/X11/xorg.conf.d directory that has some other config files?
And is there a way of automatically running xrandr --auto after the screen has rotated to avoid the squeezed display, where the server tries to fit the landscape resolution into the portrait dimensions?
xrandr is not fully supported yet, if you run it several times XSDL crashes. Here's the source location for it, submit a patch with your desired resolutions: https://github.com/pelya/xserver-xsdl/blob/xsdl2/hw/kdrive/sdl/sdl.c#L344 Dynamic window resizing is also not fully supported yet. If you want a vertical screen orientation - select it in 'Change device config' menu in 'Video settings'.
On Sun, Mar 13, 2016 at 5:19 AM, gfkpth [email protected] wrote:
Running xrandr it seems that the maximum (virtual) resolution is 1920x1200. This appears to be sufficient to be able to rotate the screen on my phone, where I run with a small resolution (954x something I think). Just turning the screen leads to a squeezed display, but with xrandr --output default --rotate right --auto I can sort of make it work (might look into a more comfortable way of doing this, or would be happy about input).
The problem is that on my tablet I am running the Xserver with a resolution of 1280x800, which is fine in landscape orientation. But it seems to block portrait orientation, since the 1280 width does not fit the maximum (virtual?) height of 1200 indicated by xrandr. Is there a way of increasing the maximum virtual resolution? Normally, one would add a "Virtual xxx yyy" line in xorg.conf, but the app doesn't seem to use an xorg. conf. Could I just add a stub to the /data/data/x.org.server/files/usr/share/X11/xorg.conf.d directory that has some other config files?
And is there a way of automatically running xrandr --auto after the screen has rotated to avoid the squeezed display, where the server tries to fit the landscape resolution into the portrait dimensions?
— Reply to this email directly or view it on GitHub https://github.com/pelya/xserver-xsdl/issues/64.