LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 5482|回复: 13

求助!Debian如何设置桌面分辨率

[复制链接]
发表于 2009-7-24 15:59:55 | 显示全部楼层 |阅读模式
东芝ss2000笔记本  
256m内存


小弟我刚接触linux,在选择版本的时候我选择了debian
安装环境:
windows xp 硬盘安装~! 而却说网络安装的方式!gnome桌面

安装好debian,进入桌面,只有800X600分辨率,屏幕显示不全! 分辨率设置中,只有800x600最高!

命令:dpkg-reconfigure xserve-xorg 出现的只有键盘和鼠标的设置,没有显示器的设置!
命令:gedit /etc/X11/xorg,conf  打开xorg.conf文件修改,但是打开的时候文件说空白的!

迫于无奈,我找了网上的一些xorg.conf文件添加进入!

分辨率过高,页面内容超出整个屏幕...分辨率设置无选项..


麻烦各位朋友帮我想想办法,我也在努力想办法....


下面说我从网上弄来的xorg.conf

  1. # generic XFree86 4.x configuration file
  2. Section "Files"
  3.   FontPath                "/usr/share/fonts/truetype/"
  4.   FontPath                "/usr/share/fonts/uni/"
  5.   FontPath                "/usr/share/fonts/misc/"
  6.   InputDevices        "/dev/input/mice"
  7. EndSection
  8. Section "ServerFlags"
  9.   Option        "AllowMouseOpenFail"
  10.   Option        "BlankTime"        "0"
  11. EndSection
  12. Section "Module"
  13.   Load        "dbe"
  14.   Load        "extmod"
  15. EndSection
  16. Section "InputDevice"
  17.   Driver                "kbd"
  18.   Identifier        "Keyboard[0]"
  19.   Option                "Protocol"                "Standard"
  20.   Option                "XkbRules"                "xfree86"
  21.   Option                "XkbKeycodes"        "xfree86"
  22.   Option                "XkbModel"                "pc104"
  23.   Option                "XkbLayout"                "us"
  24. EndSection
  25. Section "InputDevice"
  26.   Driver     "mouse"
  27.   Identifier "Mouse[1]"
  28.   Option     "Protocol" "explorerps/2"
  29.   Option     "Device"   "/dev/input/mice"
  30. EndSection
  31. Section "Monitor"
  32.   HorizSync                25-40
  33.   Identifier        "Monitor[0]"
  34.   ModelName                "Initial"
  35.   VendorName        "Initial"
  36.   VertRefresh        47-75
  37.   UseModes                "Modes[0]"
  38. EndSection
  39. Section "Modes"
  40.   Identifier        "Modes[0]"
  41.   Modeline      "800x600" 40.0   800 840 968 1056 600 601 605 628 +hsync +vsync
  42.   Modeline                "640x480" 31.5   640 656 720 840  480 481 484 500 # 6. Try
  43.   Modeline                "640x480" 31.5   640 680 720 864  480 488 491 521 # 5. Try
  44.   Modeline                "640x480" 28     640 664 760 800  480 491 493 525 # 4. Try
  45.   Modeline                "640x480" 28.32  640 664 760 800  480 491 493 525 # 3. Try
  46.   Modeline                "640x480" 25.18  640 664 760 800  480 491 493 525 # 2. Try
  47.   Modeline                "640x480" 25.175 640 664 760 800  480 491 493 525 # 1. Try
  48. EndSection
  49. Section "Monitor"
  50.   HorizSync                28-33
  51.   Identifier        "Monitor[vmware]"
  52.   ModelName                "Initial"
  53.   VendorName        "Initial"
  54.   VertRefresh        43-72
  55.   UseModes                "Modes[vmware]"
  56. EndSection
  57.    
  58. Section "Modes"
  59.   Identifier        "Modes[vmware]"
  60.   Modeline                "800x600" 29.38 800 816 896 992 600 601 604 617
  61. EndSection
  62. Section "Monitor"
  63.   HorizSync                31-48
  64.   Identifier        "Monitor[vesa]"
  65.   ModelName                "VESA"
  66.   VendorName        "VESA"
  67.   VertRefresh        50-60
  68. EndSection
  69. # Screen Section for module X support
  70. # -------------------------------------
  71. Section "Screen"
  72.   DefaultDepth 16
  73.   SubSection "Display"
  74.     Depth                16
  75.     Modes                "800x600"
  76.   EndSubSection
  77.   SubSection "Display"
  78.     Depth                24
  79.     Modes                "800x600"
  80.   EndSubSection
  81.   SubSection "Display"
  82.     Depth                32
  83.     Modes                "800x600"
  84.   EndSubSection
  85.   SubSection "Display"
  86.     Depth                8
  87.     Modes                "800x600"
  88.   EndSubSection
  89.   Device                "Device[0]"
  90.   Identifier        "Screen[0]"
  91.   Monitor                "Monitor[0]"
  92. EndSection
  93. # Screen Section for fbdev support
  94. # vesafb defaults to 16bit
  95. # others default to 8bit, force a higher colordepth
  96. # on Apple onboard controllers, remove the default #207338
  97. # changes for DefaultDepth have to be made in /usr/lib/YaST2/startup/YaST2.call as well
  98. # ----------------------------------
  99. Section "Screen"
  100. #@DefaultDepth@
  101.   SubSection "Display"
  102.     Depth                16
  103.     Modes                "default"            
  104.   EndSubSection
  105.   SubSection "Display"
  106.     Depth                15
  107.     Modes                "default"            
  108.   EndSubSection
  109.   SubSection "Display"
  110.     Depth                24
  111.     Modes                "default"  
  112.   EndSubSection
  113.   SubSection "Display"
  114.     Depth                32
  115.     Modes                "default"  
  116.   EndSubSection
  117.   SubSection "Display"
  118.     Depth                8
  119.     Modes                "default"  
  120.   EndSubSection
  121.   Device                "Device[fbdev]"
  122.   Identifier        "Screen[fbdev]"
  123.   Monitor                "Monitor[0]"
  124. EndSection
  125. # Screen Section for vesa support
  126. # ----------------------------------
  127. Section "Screen"
  128.   SubSection "Display"
  129.     Depth                16
  130.     Modes                "default"            
  131.   EndSubSection
  132.   SubSection "Display"
  133.     Depth                8
  134.     Modes                "default"  
  135.   EndSubSection
  136.   Device                "Device[vesa]"
  137.   Identifier        "Screen[vesa]"
  138.   Monitor       "Monitor[vesa]"
  139. EndSection
  140. # Screen Section for vmware support
  141. # ----------------------------------
  142. Section "Screen"
  143.   SubSection "Display"
  144.     Depth                8
  145.     Modes                "800x600"
  146.   EndSubSection
  147.   SubSection "Display"
  148.     Depth                16
  149.     Modes                "800x600"
  150.   EndSubSection
  151.   SubSection "Display"
  152.     Depth                24
  153.     Modes                "800x600"
  154.   EndSubSection
  155.   Device                "Device[vmware]"
  156.   Identifier        "Screen[vmware]"
  157.   Monitor                "Monitor[vmware]"
  158. EndSection
  159. # Device Sections...
  160. # -------------------
  161. Section "Device"
  162.   #BusID        "1:0:0"
  163.   Driver                "ChangeMe"
  164.   Identifier        "Device[0]"
  165.   # device_options
  166.   Option                "sw_cursor"        "on"
  167. EndSection
  168. Section "Device"
  169.   Driver                "fbdev"
  170.   Identifier        "Device[fbdev]"
  171.   # fbdev_options
  172. EndSection
  173. Section "Device"
  174.   Driver                "vesa"
  175.   #Option        "DefaultRefresh"
  176.   Option        "ModeSetClearScreen" "no"
  177.   Identifier        "Device[vesa]"
  178. EndSection
  179. Section "Device"
  180.   Driver                "vmware"
  181.   Identifier        "Device[vmware]"
  182. EndSection
  183. Section "ServerLayout"
  184.   Identifier        "Layout[all]"
  185.   InputDevice        "Keyboard[0]"        "CoreKeyboard"
  186.   InputDevice  "Mouse[1]" "CorePointer"
  187.   Option                "Xinerama"                "off"
  188.   Screen   "Screen[vesa]"
  189. EndSection
复制代码


麻烦大家真是不好意思..... 谢谢大伙了!
发表于 2009-7-24 17:57:15 | 显示全部楼层
什么显卡?装驱动没?

一般装好显卡驱动都没问题的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 18:26:58 | 显示全部楼层
驱动没装,显卡没有linux下面的驱动...她都可以调到这么高的分辨率le 把他调小一点~
回复 支持 反对

使用道具 举报

发表于 2009-7-24 18:35:13 | 显示全部楼层
你的 Linux 是装在虚拟机里的么?为什么驱动用的是 vmware/vesa……

在命令行运行 lspci 看看你是什么显卡

PS: 现在的 xserver-xorg 不需要 /etc/X11/xorg.conf 也能跑起来的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 19:14:42 | 显示全部楼层
debian:/home/kcode# lspci
00:00.0 Host bridge: ALi Corporation M1644/M1644T Northbridge+Trident (rev 01)
00:01.0 PCI bridge: ALi Corporation PCI to AGP Controller
00:04.0 IDE interface: ALi Corporation M5229 IDE (rev c3)
00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 01)
00:07.0 ISA bridge: ALi Corporation M1533/M1535/M1543 PCI to ISA Bridge [Aladdin IV/V/V+]
00:08.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
00:0a.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 0d)
00:0c.0 USB Controller: NEC Corporation USB (rev 41)
00:0c.1 USB Controller: NEC Corporation USB (rev 41)
00:0c.2 USB Controller: NEC Corporation USB 2.0 (rev 02)
00:11.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32)
00:11.1 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32)
00:12.0 System peripheral: Toshiba America Info Systems SD TypA Controller (rev 03)
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade XPAi1 (rev 82)

安装在硬盘,小弟是新手,上面的那个配置是从网上抄来的。。。。

debian 版本是5。0。2
回复 支持 反对

使用道具 举报

发表于 2009-7-24 19:43:06 | 显示全部楼层
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade XPAi1 (rev 82)
这个显卡 xorg 自带驱动的:
先 apt-get install xserver-xorg-video-trident 确保驱动已装上,然后把 xorg.conf 改成这样试试(你贴出来的那个里面貌似指定了最大分辨率 800x600):

  1. Section "Monitor"
  2.     Identifier     "Monitor0"
  3. EndSection

  4. Section "Device"
  5.     Identifier     "Videocard0"
  6.     Driver         "trident"
  7. EndSection

  8. Section "Screen"
  9.     Identifier     "Screen0"
  10.     Device         "Videocard0"
  11.     Monitor        "Monitor0"
  12. EndSection
复制代码

上面的只是指定了显卡驱动为 trident,别的都采用默认值。

理论上进图形界面之后用系统自带的改分辨率的程序就可以自己设置分辨率了。
如果不行的话就要麻烦些,要根据你的显示器型号到网上查出它的 HorizSync 和 VertRefresh,或者是在 xorg.conf 里设置 Modeline 什么的(但是一般都不用这么麻烦的,Xorg 会自动检测)。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 20:07:50 | 显示全部楼层
看来还真是挺麻烦的,呵呵! 按照朋友你上面的方法进入图形界面后,分辨率最高是800X600!
我去查查它的 HorizSync 和 VertRefresh看看....谢谢了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 20:47:56 | 显示全部楼层
已经解决了,xorg.conf写成:
  1. Section "Monitor"
  2.     Identifier     "Monitor0"
  3.     Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795  -HSync +Vsync
  4.     HorizSync  30.0 - 80.0
  5.     VertRefresh 56.0 - 76.0
  6.     Option  "DPMS"
  7. EndSection
  8. Section "Device"
  9.     Identifier     "Videocard0"
  10.     Driver         "Trident"
  11. EndSection
  12. Section "Screen"
  13.     Identifier     "Screen0"
  14.     Device         "Videocard0"
  15.     Monitor        "Monitor0"
  16. EndSection
复制代码


不管怎么说,还是很感谢tigatron兄弟的帮助,tigatron把问题问题都理清了!

作为一名linux新人, 我也感受到了使用linux的真谛,在困难和难题面前,挑战自己,战胜自己,努力的解决问题,最终成功的解决问题,这就是学习linux的快乐之一所在!
回复 支持 反对

使用道具 举报

发表于 2009-7-25 05:18:35 | 显示全部楼层
如果你不会的话就结束掉X,比如/etc/init.d/gdm stop
然后在CLI下X -configure生成一个配置文件来覆盖/etc/X11/xorg.conf
回复 支持 反对

使用道具 举报

发表于 2009-7-26 10:20:30 | 显示全部楼层
如果不能调,一般就是驱动安装的问题,自带的驱动可能不能满足你的硬件,可以到显卡厂商处下载新的驱动,一般有debian通用包,可以很好地安装。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表