Debian9設定自定義解析度問題

2021-09-12 02:45:46 字數 1281 閱讀 5780

debian9無法識別1920*1080顯示器解析度,因此需要手動新增,總結以下兩個方法:

一、通過xrandr手動新增

1.通過cvt 1920 1080檢視console輸出內容,獲取modeline後面的部分,我這裡是:"1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

2.xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

3.xrandr --addmode virtual1 "1920x1080_60.00",其中virtual1是顯示器,可以輸入xrandr檢視

但這種方法重啟失效,可以寫成指令碼放在桌面開機手動啟動:

#!/bin/bash

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

xrandr --addmode virtual1 "1920x1080_60.00"

xrandr --output virtual1 --mode "1920x1080_60.00"

二、新增/etc/x11/xorg.conf

新增 /etc/x11/xorg.conf 檔案,將此模式儲存為預設解析度。

$ sudo gedit /etc/x11/xorg.conf

貼上以下內容:

section "monitor"

identifier "configured monitor"

modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

option "preferredmode" "1920x1080_60.00"

endsection

section "screen"

identifier "default screen"

monitor "configured monitor"

device "configured video device"

endsection

section "device"

identifier "configured video device"

endsection

儲存重啟

Ubuntu下設定自定義桌面解析度

檢視下當前已經提供的解析度設定 輸入 1920x1080 可以替換為任意你想要的解析度 cvt 1920 1080使用xrandr 建立新的mode,newmode後面跟剛剛cvt產生的modeline資訊 sudo xrandr newmode 1920x1080 60.00 173.00 192...

修改ubuntu18 04解析度 自定義解析度

1.檢視現有解析度 2.設定新的解析度模式 3.更改解析度 在用實驗室伺服器的時候,發現一切換解析度就自動變化了 所以查了一下如何更改螢幕解析度,避免每次都要重啟 1.檢視現有解析度 xrandr結果輸出為 screen 0 minimum 320 x 200 current 1920 x 1080...

ubuntu18 04新增自定義解析度

新加乙個 960x540 重新整理頻率 60.00hz的解析度 qt 在ubuntu18.04下的整倍放大,必須要當前解析度的支援才會觸發.即你想放大960x540的程式介面,就要檢視它是否支援960x540 1920x1080 3840x2160 如果只支援到1920x1080而又沒有960x54...