1 unknown display 問題
無法選擇高清分辨率。這時候需要命令設置(不能使用shell工具),在ubuntu原生圖形下面操作。
(1) xrandr
會顯示出很多當前接口名字,比如VGA-1,HDMI-1,如果是VGA-1找不到高清分辨率選項的話
(2)sudo cvt 1440 900 60
(3)xrandr --newmode “1440x900_60.00” 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
(4) xrandr --addmode VGA1 1440x900_60.00
(5)設置中選擇對應VGA-1接口顯示器的分辨率選項,確定後再保存
(6)修改配置文件保證上述操作真的可以斷電保存,
sudo vi /etc/X11/xorg.conf (如果沒有可以創建)
Section “Monitor”
Identifier “Configured Monitor”
Modeline “1440x900_60.00” 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
Option “PreferredMode” "1440x900_60.00"
EndSection
Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
EndSection
Section “Device”
Identifier “Configured Video Device”
EndSection
加粗的部分要對應自己的分辨率設置
2 關於在ubuntu設置中修改主次屏 不起效果的方法
(0) xrandr (查看當前系統下顯示器接口)
(1)xrandr --output HDMI-1 --primary (必不可少)
(2) xrandr --output --output VG1-1 --left-pf HDMI-0
3 qml 子窗口可以通過設置x,y座標 比如要設置在次屏,可以x設置爲1080,緊接主屏