Use xrandr for multiple screen display

Gnome 3 does not have good support for multiple screen display. It is therefore necessary to use xrandr for such purpose. It can be used as follows.

Display the configurations:

$ xrandr
Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected (normal left inverted right x axis y axis)
   1920x1080      60.0 +   50.0
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      60.0*+   60.0
   1600x1000      60.0
   1440x900       75.0     59.9
   1280x1024      75.0     72.0     60.0
   1152x864       75.0
   1024x768       75.0     70.1     60.0
   800x600        75.0     72.2     60.3
   640x480        75.0     72.8     59.9
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

Disconnect a display:

$ xrandr --output LVDS-0 --off         # This is the LCD of the laptop

Set mode of the external display:

$ xrand --output DP-2 --mode 1680x1050    # This is the external monitor in office
$ xrand --output DP-2 --auto            # Or use automatic detection

After configuration, FVWM should be restarted. Or if needed, X server should be restarted.

[13/6/20] At present, Gnome environment is used instead of FVWM or Sawfish. And three scripts have been created to change the monitor settings.

1. Only use the external monitor: extdisp.sh

#!/bin/bash
xrandr --output DP-2 --mode 1680x1050 --primary --output LVDS-0 --off

2. Use two monitors, the external monitor as the primary monitor: dbldisp.sh

#!/bin/bash
xrandr --output DP-2 --mode 1680x1050 --primary --right-of LVDS-0 --output LVDS-0 --auto

3. Use only laptop monitor: lapdisp.sh

#!/bin/bash
xrandr --output DP-2 --off --output LVDS-0 --auto

Use xrandr for multiple screen display,布布扣,bubuko.com

时间: 2024-10-16 00:06:41

Use xrandr for multiple screen display的相关文章

OSD(on screen display)

随着汽车产业的发展,车载导航设备得到了更多的应用.比如车载导航设备集成有DVD功能(对视频处理提出较高要求,需要选择高性能平台和高性能视频处理器),通过OSD技术实现音量的可视性控制和DVD控制.优点是在不影响DVD画面的基础上叠加在屏幕上,降低主处理器的工作量. OSD是一种在屏显示技术,其核心就是在图像上叠加文字.鼠标.简单的图片等,使显示屏幕为用户提供更多的附加信息,为用户提供极大便利.目前,相机.电视机.显示器.监视器等图像或视频系统中应用非常广泛. PXA270处理用具有领先的高性能和

OSD(On Screen Display )技术(转)

源:OSD(On Screen Display )技术 OSD 是 On Screen Display 的缩写,是应用在 CRT/LCD 显示器上,在显示器的荧幕中产生一些特殊的 字形或图形,让使用者得到一些讯息.常见于家用电视机或个人 PC 电脑之显示荧幕上,当使用者操作电视机 换台或调整音量.画质等,电视荧幕就会显示目前状态让使用者知道,此控制 IC 可在荧幕上的任何位置显示 一些特殊字形与图形,成为人机界面上重要的讯息产生装置. OSD核心是利用字符发生芯片在显示器的屏幕上显示需要的字符.

HTML5+ 手机设备的信息, 屏幕信息, 音量信息, 系统信息的获取 device, screen, display, os

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>WebApp启动页</title> <script type

zynq学习 Video on Screen Display IP核许可申请

1.双击打开v_osd ip核 2.如图打开网页 3.进入官网需要登录,没账户的需要注册,点击红色方框内的蓝色字体即可注册 4.xilinx网站注册很蛋疼,我第一次注册一直报错,一定的按照注册说明来填,这儿是中文翻译的页面,可以参考一下 5.点击next 6.这个默认就勾上了,显示120天的使用期限,点击generate 7.然后弹出一个框,如图操作就行 7.又会弹出一个框,黄色框内按图选择,红色框内输入电脑的mac地址,要自己查 8.mac地址查询,网上百度一下很多,可以自己查,我这儿就一起说

Supporting Multiple Screens(支持Android各种屏幕尺寸)

原文链接 本文翻译自Supporting Multiple Screens. 目前我这篇翻译应该是最全,最完整的官方文档翻译,转载我的翻译请联系本人,标明出处. Supporting Multiple Screens Android runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consist

Supporting Multiple Screens 翻译 支持各种屏幕(上)

Supporting Multiple Screens 支持各种各样的屏幕尺寸.屏幕密度 Android runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consistent development environment across devices and handles most of t

[PWA] Add web app to your Home Screen

Clone: Link Modify the structure: Move css, js, image, index.html to an 'app' folder. manifest.json: { "name": "Fireworks App", "short_name": "Fireworks", "icons": [ { "src":"images/firework

Java性能提示(全)

http://www.onjava.com/pub/a/onjava/2001/05/30/optimization.htmlComparing the performance of LinkedLists and ArrayLists (and Vectors) (Page last updated May 2001, Added 2001-06-18, Author Jack Shirazi, Publisher OnJava). Tips: ArrayList is faster than

Printing multipage output

Printing known-length multipage output Using the PrintDataGrid control for multipage grids Example: Printing with multipage PrintDataGrid controls Multipage print application file Print output component Header and footer files Using the PrintAdvanced