導航:首頁 > 編程系統 > linux雙顯示器

linux雙顯示器

發布時間:2023-07-01 09:34:10

A. linux下lvds和vga雙屏怎麼調


可以通過xrandr之款Linux雙屏工具來調節。

1、列出屏幕支持解析度:
# xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
1280x800 60.0*+
1024x768 60.0
800x600 60.3
640x480 59.9
TV disconnected (normal left inverted right x axis y axis)

2、設置屏幕解析度
根據上面查到的解析度,我們可以手動設置,下面將解析度設置為 1024x768 , 刷新率為60Hz。
# xrandr -s 1024x768 -r 60

3、查看所有顯示器屬性
# xrandr --prop
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 1280
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
EDID_DATA:
PANEL_FITTING: full_aspect
supported: center full_aspect full
BACKLIGHT_CONTROL: combination
supported: native legacy combination kernel
BACKLIGHT: 14203 (0x0000377b) range: (0,14203)
1280x800 60.0 +
1024x768 60.0*
800x600 60.3
640x480 59.9
TV disconnected (normal left inverted right x axis y axis)
HUE: 0 (0x00000000) range: (0,255)
SATURATION: 96 (0x00000060) range: (0,255)
CONTRAST: 96 (0x00000060) range: (0,255)
BRIGHTNESS: 128 (0x00000080) range: (0,255)
BOTTOM: 37 (0x00000025) range: (0,100)
RIGHT: 46 (0x0000002e) range: (0,100)
TOP: 36 (0x00000024) range: (0,100)
LEFT: 54 (0x00000036) range: (0,100)
TV_FORMAT: NTSC-M
supported: NTSC-M NTSC-443 NTSC-J PAL-M
PAL-N PAL

4、設置雙屏(al monitor)顯示
如果你設置有一個LED(筆記本顯示器),再外界一個 VGA 顯示器,用 」xrandr —prop「 命令就會得到類似 LVDS1 和 VGA1 列表。可以設置這兩個雙屏顯示。
xrandr --output LVDS1 --mode 1280x800 --output VGA1 --mode 1024x768 --above LVDS1

B. 請問linux一個顯卡連接兩個顯示器,怎麼設置雙屏顯示,現在的情況就是一個屏幕顯示,一個屏幕不顯示

你只來有一個顯卡,那麼你源就只能使用 擴展模式和克隆模式

這下面是顯示了需要改動的地方,你仔細看看。

  1. 桌面擴展是用「Xinerama」擴展來實現的,這個擴展不需要單獨安裝,是xorg自帶的一個模塊

  2. 在xorg.conf的man裡面,沒有提到Clone模式,但是,你以把第二個顯示器的像素值和第一個顯示器的像素值設置得一樣,這樣就可以達到Clone的效果。

查詢命令 看看《Linux就該這么學》 裡面有個專欄是 Linux命令大全(手冊

C. linux一機雙屏命令大全

樓主:

RandRX11擴展協議允許重啟情況修改輸些參數並使效xrandr該協議命令行界面功能用設置雙屏顯示
預設情況外接顯示器後啟用屏幕復制模式即兩屏幕顯示完全相同內容使用命令xrandr -q查看前輸狀態:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm 1280x800 60.0+ 60.0 50.0
1024x768 75.1 70.1 60.0
800x600 72.2 75.0 60.3 56.2
768x576 75.0 72.0 60.0
640x480 72.8 75.0 60.0 59.9
VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm 1920x1080 60.0+ 1680x1050 60.0
1280x1024 75.0 60.0
1440x900 59.9
1280x960 60.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis) DP1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP3 disconnected (normal left inverted right x axis y axis)
見筆記本電腦屏幕輸(LVDS1)顯示辨率1280x800外接顯示器輸(VGA1)辨率1920x1080兩輸整虛擬屏幕(名稱:Screen 0;前:1920x1080;:8192x8192)坐標都+0+0所外接顯示器看屏幕左角1280x800辨率屏幕
屏幕復制模式用於外接投影儀現我需要兩屏幕別顯示各自顯示器並兩屏幕顯示同內容(Windows設置雙屏顯示選擇擴展模式)
由於我筆記本電腦放外接顯示器左邊所操作自使用命令xrandr --output VGA1 --right-of LVDS1外接顯示器輸虛擬屏幕位置設置筆記本電腦輸右邊示意圖:

兩顯示器顯示同內容由於屬於同虛擬屏幕窗口跨邊界顯示器拖另顯示器再使用命令xrandr -q查看現輸狀態:
Screen 0: minimum 320 x 200, current 3200 x 1080, maximum 8192 x 8192 LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm 1280x800 60.0+ 60.0 50.0
1024x768 75.1 70.1 60.0
800x600 72.2 75.0 60.3 56.2
768x576 75.0 72.0 60.0
640x480 72.8 75.0 60.0 59.9
VGA1 connected 1920x1080+1280+0 (normal left inverted right x axis y axis) 509mm x 286mm 1920x1080 60.0+ 1680x1050 60.0
1280x1024 75.0 60.0
1440x900 59.9
1280x960 60.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis) DP1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP3 disconnected (normal left inverted right x axis y axis)
使用xrandr做設置前X效重啟後恢復原使設置持久化修改xorg.conf或設置自執行命令據說些圖形界面封裝xrandr前端完善桌面環境GNOMEKDE應該圖形界面設置我所使用XFCE目前似乎能啟用/禁用復制模式支持圖形界面設置擴展模式
面腳本用簡化雙屏顯示設置:
#!/bin/bash

# Restart trayer and cairo-dock which I use on my desktop
restart_widget()
{
killall trayer
killall cairo-dock

# Another script which starts trayer and set some options
mytrayer
cairo-dock &
}

set_alhead()
{
xrandr --output LVDS1 --auto
xrandr --output VGA1 --auto
xrandr --output VGA1 --right-of LVDS1
restart_widget
}

set_lvds()
{
xrandr --output VGA1 --off
xrandr --output LVDS1 --auto
restart_widget
}

set_vga()
{
xrandr --output LVDS1 --off
xrandr --output VGA1 --auto
restart_widget
}

if [ $# -eq 0 ]; then
set_alhead
exit
fi

case "$1x" in
"lvdsx") set_lvds;;
"vgax") set_vga;;
*) echo 'Unknown parameter !';;
esac

D. linux系統下怎麼設置雙屏拼接

一、適用條件:
用單獨的兩塊顯卡來實現雙屏顯示,像ATI、nVidia和Matrox的雙頭顯示技術,可以用顯卡本身的驅動來解決,具體的操作,在各個驅動的man上都有。但是,有些顯卡也可以按照本文的說明來做,前提是把同一個顯卡的device節寫兩遍。

二、硬體准備
兩個顯卡,前提是你的機器必須可以安裝上。典型的配置為:一個AGP,一個PCI或兩個PCI。如果機器上有自帶的硬顯卡,也可以再加上一個AGP,實現兩個AGP。(很多伺服器主板上都帶Rage XL,這個就可以實現兩個AGP的顯卡。)

據說965G以上的主板自帶的顯卡也可以實現雙顯卡,由於沒有條件測試,不知道具體結果。但是,945G以下的自帶顯卡不能用再加一塊顯卡的方法實現雙顯卡。因為一旦檢測到主板上接有顯卡,整合的顯卡會被自動屏蔽掉。現在有很多顯卡帶VGA和DVI輸出,可以用一個DVI-VGA的轉換器來實現雙屏顯示。

三、雙顯示器的三種模式
雙顯示器有三種基本的顯示模式,雖然有很多資料把它說為是兩種,但是我覺得把它分為三種更好接受一些。

1、獨立模式:兩個顯示器獨立,互不影響。也就是說,一個顯示器上的窗口,不可以移動到另一個顯示器上去。

2、擴展模式:兩個顯示器擴展為一個大的顯示器。一個窗口,可以移動或擴展到另一台顯示器上去。windows中叫做「擴展桌面」。

3、克隆模式:兩個顯示器上的內容完全一致。如果用來做演示,那麼通常就是用的這種模式,一個用來接投影機,一個用來本地顯示,供演講者使用。

四、實現原理
對於獨立模式和克隆模式,在xorg.conf裡面,配置兩個顯卡,兩個屏幕即可;對於擴展模式,還要加上一個「Xinerama」的選項。

五、配置實例
以下配置實例的硬體:一個主板自帶的Rage XL和一個Geforce 440 64M顯卡,加上兩個Philips 107s6顯示器。

1、獨立模式:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
MolePath "/usr/X11R6/lib/moles"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Mole"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psm0"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "PHL"
ModelName "PH107E/V/S/G6"
HorizSync 30.0 - 71.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "PHL"
ModelName "PH107E/V/S/G6"
HorizSync 30.0 - 71.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Card0"
Driver "ati"
VendorName "ATI"
BoardName "Rage XL"
ChipSet "ati"
ChipId 0x4752
ChipRev 0x27
BusID "PCI:0:13:0"
EndSection

Section "Device"
Identifier "Card1"
Driver "nv"
VendorName "nVidia Corporation"
BoardName "NV11 [GeForce2 MX/MX 400]"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

要點:
1、在配置文件里,要配置兩個device,兩個Monitor,兩個Screen。

2、在ServerLayout節中,需要說明兩個顯示器之間的關系,用

Screen 1 "Screen1" LeftOf "Screen0"

來說明,在本例中,第二個顯示器在第一個顯示器左邊。

2、擴展模式:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
Option "Xinerama" "true"
EndSection

說明:1)為了減少篇幅,只寫改變的節。

2)桌面擴展是用「Xinerama」擴展來實現的,這個擴展不需要單獨安裝,是xorg自帶的一個模塊。

3)擴展桌面的操作中,程序默認打開的顯示器在最左邊的顯示器上,即使你把第二個顯示器設置為左邊的顯示器。

4)擴展桌面中,第二個顯示器沒有任務欄。

3、克隆模式:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
# Screen 1 "Screen1" LeftOf "Screen0"
Screen 1 "Screen1" Relative "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

說明:1)為了獨立模式比較,保留了獨立模式的配置,並把它置為注釋。

2)在xorg.conf的man裡面,沒有提到Clone模式,但是,你以把第二個顯示器的像素值和第一個顯示器的像素值設置得一樣,這樣就可以達到Clone的效果。

3)Relative後面的數字,實際上你可以根據顯示器的不同,來自行設置上下左右。還可以設置為不整屏,比如:768,200。

六、幾個沒解決的問題:
1)獨立模式中,第二個屏幕的桌面語言一直為英文。但是菜單和其它的都可以顯示漢字。

2)獨立模式中,任務欄大小設置之後,要重啟kde後才起作用。

3)擴展模式中,任務欄沒法向左收起。

4)雙屏設置,包括三種模式,有時候會搞亂locale設置。本人做的時候,最好沒辦法,只好把主目錄下的.kde全刪除掉,又重新配置的字體等。

5)在擴展模式中,最大化窗口只能最大化到一個顯示器。但是,即使最大化的窗口,也可以拖到另一個顯示器。

註:在G400系列的雙頭顯卡中,可以配置到最大化到兩個顯示器。其它的顯卡不詳。

閱讀全文

與linux雙顯示器相關的資料

熱點內容
08cad畫圖的文件怎麼重命名 瀏覽:221
視力數據怎麼看遠視儲備 瀏覽:519
對等網路標識管理服務 瀏覽:188
蘋果怎麼重新刷機 瀏覽:258
還有哪些少兒編程培訓機構 瀏覽:508
ps怎麼去掉文件中不需要的部分 瀏覽:793
微信信用度在哪兒看 瀏覽:72
java監聽器延時 瀏覽:726
itunes備份包含微信聊天記錄 瀏覽:20
怎麼向虛擬機傳文件 瀏覽:677
win10怎麼用軟體激活不了 瀏覽:816
美版a1453是什麼版本 瀏覽:517
電腦里的文件夾按照拼音歸類 瀏覽:996
文件管理器怎麼把視頻壓縮成文件 瀏覽:477
標准化文件名稱包括哪些 瀏覽:85
win10不能讀取dll文件 瀏覽:882
雲騎士重裝系統找不到usb字樣文件 瀏覽:42
皖事通app社保年限在哪裡看 瀏覽:65
為什麼快影顯示沒網路 瀏覽:356
華為如何讓手機升級提醒紅1消失 瀏覽:345

友情鏈接