重新啟動後顯​​示器解析度重設(一台顯示器)

重新啟動後顯​​示器解析度重設(一台顯示器)

我有一台只有一個顯示器的計算機 - 這些是規格:

Ubuntu 15.04 - 32 位
處理器 Intel® Pentium(R) 雙 CPU E2180 @ 2.00GHz × 2  
顯示卡 英特爾® G33 x86/MMX/SSE2
$ lspci -v | grep -i vga
00:02.0 VGA 相容控制器:Intel Corporation 82G33/G31 Express 整合式圖形控制器 (rev 10) (prog-if 00 [VGA 控制器])
# lshw -class display
PCI(系統檔案系統)  
  *-展示               
       描述:VGA相容控制器
       產品:82G33/G31 Express 整合式圖形控制器
       供應商:英特爾公司
       物理 ID:2
       總線資訊:pci@0000:00:02.0
       版本:10
       寬度:32位
       時脈:33MHz
       功能:msi pm vga_controller bus_master cap_list rom
       配置:驅動程式=i915 延遲=0
       資源: irq:28 記憶體:feb00000-feb7ffff ioport:e140(大小= 8) 記憶體:d0000000-dfffffff 記憶體:fe900000-fe9fffff
$ xrandr
螢幕 0:最小 8 x 8,目前 1024 x 768,最大 32767 x 32767
VGA1接初級1024x768+0+0(正常左倒右x軸y軸)0mm x 0mm
   1024x768 60.0*
   800x600 60.3 56.2  
   848x480 60.0  
   640x480 59.9  
VIRTUAL1斷開(正常左反轉右x軸y軸)
$ sudo xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +垂直同步
$ sudo xrandr --addmode VGA1 1680x1050_60.00
$ xrandr

螢幕 0:最小 8 x 8,目前 1680 x 1050,最大 32767 x 32767
VGA1接主1680x1050+0+0(正常左倒右x軸y軸)0mm x 0mm

   1680x1050 60.0*+
   1024x768 60.0  
   800x600 60.3 56.2  
   848x480 60.0  
   640x480 59.9  
   1680x1050_60.00 60.0  

VIRTUAL1斷開(正常左反轉右x軸y軸)

這有效(改變分辨率),然後我就這樣做

$ sudo reboot

開始時我收到之前的解決方案和以下訊息

No se pudo aplicar la configuración almacenada para los monitores
none of the selected modes were compatible with the possible modes:
Trying modes for CRTC 63 CRTC 63:
trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 1)
Trying modes for CRTC 64
CRTC 64: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 1)
Trying modes for CRTC 65
CRTC 65: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 1)

答案1

您需要將xrandr配置新增到啟動檔案中,以便在重新啟動/啟動時獲得所需的解析度:

  • xrandr.sh例如,建立一個 bash 腳本,並將 xrandr 指令放入其中:
#!/bin/bash
xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +垂直同步
xrandr --addmode VGA1 1680x1050_60.00
xrandr --輸出 VGA1 --模式 1680x1050_60.00
  • 使腳本可執行chmod +x xrandr.sh

  • 在破折號中搜尋“啟動應用程式”,運行它,並將腳本新增為啟動應用程式。

現在,每次您登入帳戶時都會執行這些命令。

相關內容