XRandR

Resizing an Xvfb display

让人想犯罪 __ 提交于 2019-12-13 11:38:09
问题 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 resize the screen? Thanks for your help! 回答1: 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" ... 回答2: Most distributions now ship

how to add the missing RANDR extension

旧巷老猫 提交于 2019-12-03 05:33:35
问题 I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting created in my case. So I am searching for how to add the missing RANDR extension. 回答1: First off, Xvfb doesn't read configuration from xorg.conf. Xvfb is a variant of the KDrive X servers and like all members of that family gets its configuration from

Resizing an Xvfb display

女生的网名这么多〃 提交于 2019-12-03 05:08:29
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 resize the screen? Thanks for your help! edigu 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" ... Most distributions now ship a version of Xvfb with randr support. The code as committed in late 2015 vfb: add randr support (v2) . To

how to add the missing RANDR extension

你。 提交于 2019-12-02 18:52:42
I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting created in my case. So I am searching for how to add the missing RANDR extension. First off, Xvfb doesn't read configuration from xorg.conf. Xvfb is a variant of the KDrive X servers and like all members of that family gets its configuration from the command line. It is true that XRandR and Xinerama are mutually exclusive, but in the case of Xvfb there's

How to observe changes in connected monitors via Xlib?

为君一笑 提交于 2019-12-01 09:29:15
I'm trying to write a program that would detect external monitors being plugged in and automatically enable and configure them through Xlib. I know that there is XRandr extension that allows this. My question is, how do I enable receiving XRandr events to my application? What event mask should I use? I know that xev app is able to do this. Xev's source code: http://cgit.freedesktop.org/xorg/app/xev/tree/ Or: git clone git://anongit.freedesktop.org/xorg/app/xev For the second part, I issue the configuration directly to nvidia-settings. I've cobbled together the first part from parts that I was

触摸屏校正

有些话、适合烂在心里 提交于 2019-11-29 08:09:56
有些设备的触摸屏不准,需要校正后才能正常使用。校正实际上就是配置设备在 Xorg 中的属性,具体属性名与驱动相关,后文描述。 注意: 本文所有的操作都是在 deepin 上完成,包名不同的请自行查找。 下面开始介绍校正方法: 准备 安装需要用到的工具: xinput-calibrator : 触摸屏校正工具 xinput : 屏幕映射工具,多屏时使用 校正 执行 xinput_calibrator --list 查看触摸设备列表 校正设备 xinput_calibrator -v --device <device name or id> device name or id 从上面的 list 中得到 此时会出现校正界面,按照提示点击,成功后程序会输出校正后的数据。 接着根据驱动的不同选择不同的设置方法,查看设备使用的驱动可通过 /var/log/Xorg.0.log 文件得到。 evdev 使用 evedev 驱动时可直接使用 xinput_calibrator 输出的数据,无需其它设置。 测试时使用 xinput 设置 Evdev Axis Calibration 属性。 libinput 使用 libinput 驱动时需要将 xinput_calibrator 输出的数据进行计算才可使用,计算方法参见: Libinput breaks xinput_calibrator