Resizing an Xvfb display

后端 未结 2 745
情书的邮戳
情书的邮戳 2021-02-07 00:40

Simple Question: Is there a way to resize a Xvfb display?

I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resi

2条回答
  •  醉酒成梦
    2021-02-07 01:27

    Most distributions now ship a version of Xvfb with randr support. The code was committed in late 2015 vfb: add randr support (v2).

    To resize you will first need to define a new mode (you can use tools like gtf to get the modeline definition values), add it to the virtual output, and then you can switch to it.

    ie for 1280x1024:

    xrandr --newmode "1280x1024"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    xrandr --addmode screen 1280x1024
    xrandr -s 1280x1024
    

提交回复
热议问题