调整Xvfb显示的大小 [英] Resizing an Xvfb display

查看:287
本文介绍了调整Xvfb显示的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题:有没有办法调整Xvfb显示器的大小?

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

我尝试使用RandR,但似乎Xvfb不支持RandR扩展.还有其他调整屏幕大小的方法吗?

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

感谢您的帮助!

推荐答案

您可以使用server-args命令行参数为正在创建的虚拟帧缓冲区指定自定义分辨率,但这不会更改现有分辨率.虚拟帧缓冲区:

You can use the server-args command line argument to specify a custom resolution for the virtual frame buffer being created, but this does not change the resolution of an existing virtual frame buffer:

xvfb-run --server-args="-screen 0, 1024x768x24" ...

这篇关于调整Xvfb显示的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆