如何在debian中设置登录屏幕分辨率


3

我的Debian安装(Linux机器2.6.32-5-686#1 SMP Sun May 6 04:01:19 UTC 2012 i686 GNU / Linux)限制为1360x768,但我的显示器能够支持1680x1050。没有xorg.conf文件所以我创建了一个

Xorg -configure

在这里,我添加了许多google resuts中描述的分辨率行; 我添加了这条线

Modes     "1680x1050"

在每个Display子部分下,然后我将其复制到/etc/X11/xorg.conf。我重新启动了计算机,但1680x1050未列在可用分辨率列表中。我也试过添加一个更完整的列表即

Modes     "1680x1050" "1360x768" "1024x768" "800x600" "640x480"

但结果是一样的。

Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/X11/misc"
FontPath     "/usr/share/fonts/X11/cyrillic"
FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/Type1"
FontPath     "/usr/share/fonts/X11/100dpi"
FontPath     "/usr/share/fonts/X11/75dpi"
FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath     "built-ins"
EndSection

Section "Module"
Load  "dri"
Load  "dri2"
Load  "record"
Load  "extmod"
Load  "dbe"
Load  "glx"
EndSection

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

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

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option     "AccelMethod"           # [<str>]
    #Option     "DRI"                   # [<bool>]
    #Option     "ColorKey"              # <i>
    #Option     "VideoKey"              # <i>
    #Option     "FallbackDebug"         # [<bool>]
    #Option     "Tiling"                # [<bool>]
    #Option     "Shadow"                # [<bool>]
    #Option     "SwapbuffersWait"       # [<bool>]
    #Option     "XvMC"                  # [<bool>]
    #Option     "XvPreferOverlay"       # [<bool>]
    #Option     "DebugFlushBatches"     # [<bool>]
    #Option     "DebugFlushCaches"      # [<bool>]
    #Option     "DebugWait"             # [<bool>]
Identifier  "Card0"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "82915G/GV/910GL Integrated Graphics Controller"
BusID       "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
    Viewport   0 0
    Depth     1
    Modes     "1680x1050"
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     4
    Modes     "1680x1050"
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     8
    Modes     "1680x1050"
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     15
    Modes     "1680x1050"
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     16
    Modes     "1680x1050"
EndSubSection
SubSection "Display"
    Viewport   0 0
    Depth     24
    Modes     "1680x1050"
EndSubSection
EndSection

我错过了一些明显的事吗?我尝试使用ddcprobe获取HorizSync和VertRefresh值,但ddcprobe的edid输出表示edidfail。似乎没有一种明确的方法来设置linux中的分辨率,我不想设置一个xrandr脚本来运行每次我登录 - 我想设置它'正确'的方式。谢谢

编辑:我已经解决了这个问题

> cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

并将此行放在监视器部分。当谷歌搜索建议不这样做时,我为什么要这样做呢?

另外如何设置登录屏幕分辨率?当用户的分辨率设置为1680x1050时,登录屏幕分辨率仍为1024x768。Google搜索建议将所需的登录屏幕分辨率设置为“模式”列表中的第一个分辨率,但这不起作用。


如果您已经回答了您的问题,您是否会考虑将其写为“答案”,而不仅仅是对您的问题进行更新。然后,您可以接受正确答案。它将有助于未来的求职者:)此外,如果您的答案开辟了新的提问线,您可以通过创建专门针对新问题的新问题来获得更多关注。
JoshP

Answers:


0

我已经解决了这个问题

> cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

并将此行放在监视器部分。但我不知道为什么我需要使用Modeline而不是模式。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.