
我的顯示器的原始解析度為 1920x1080。我只想使用顯示器的一部分(例如 960x1080):
+-----+------+-----+
| |++++++| |
| |++++++| |
| |++++++| |
| |++++++| |
| |++++++| |
+-----+------+-----+
或者也許(例如,1600x900):
+---+------+---+
| |
| +------+ |
| |++++++| |
| |++++++| |
| +------+ |
| |
+---+------+---+
空白區域是顯示器黑色的位置,中間的加號是螢幕所在的位置。
我嘗試修改解決方案由於顯示器損壞,我只需要設定螢幕的右半部分,但它總是看起來像這樣(延伸到右側和底部):
xrandr --output HDMI-1 --transform 1.5,0,-480,0,1.5,-270,0,0,1
監視器顯示
+---+------+---+
| |
| +----------|
| |++++++++++|
| |++++++++++|
| |++++++++++|
| |++++++++++|
+---+------+---+
通緝
+---+------+---+
| |
| +------+ |
| |++++++| |
| |++++++| |
| +------+ |
| |
+---+------+---+
如何在監視器上獲得讀者視圖?最好不要縮放像素,但能夠選擇特定的解析度並將其置於顯示器的中心。例如,1280x720 以顯示器為中心,而不是 1920x1080 縮小並以顯示器為中心。
簡單xrandr -s 1600x900
更改為 1600x900 並縮放以適合 1920x1080 顯示器。
xrandr --output HDMI-1 --mode 1024x768 --panning 1024x768 --transform 1.33333333,0,-171,0,1,0,0,0,1
從https://unix.stackexchange.com/a/220388/384272使監視器顯示
+-----+------+-----+
| |++++++++++++|
| |++++++++++++|
| |++++++++++++|
| |++++++++++++|
| |++++++++++++|
+-----+------+-----+
xrandr --output HDMI-1 --set "scaling mode" "Center"
給我:
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 32
Current serial number in output stream: 32