LinuxSir.cn,穿越时空的Linuxsir!

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

切换X和控制台容易系统失去响应

[复制链接]
发表于 2009-2-17 11:21:46 | 显示全部楼层 |阅读模式
原来用Nvidia显卡没这问题,Nvidia显卡挂了后换回原来的ATI9550,用X -configure自动生成的xorg.conf配置文件,可以正常进入X。
但现在有个问题就是,如果从X进入控制台后,再返回X很容易系统失去响应,只好复位重启系统了。
xorg.conf文件
  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection

  7. Section "Files"
  8.         ModulePath   "/usr/lib/xorg/modules"
  9.         FontPath     "/usr/share/fonts/misc/"
  10.         FontPath     "/usr/share/fonts/TTF/"
  11.         FontPath     "/usr/share/fonts/OTF"
  12.         FontPath     "/usr/share/fonts/Type1/"
  13.         FontPath     "/usr/share/fonts/100dpi/"
  14.         FontPath     "/usr/share/fonts/75dpi/"
  15. EndSection

  16. Section "Module"
  17.         Load  "glx"
  18.         Load  "dbe"
  19.         Load  "record"
  20.         Load  "extmod"
  21.         Load  "xtrap"
  22.         Load  "dri"
  23.         Load  "freetype"
  24. EndSection

  25. Section "InputDevice"
  26.         Identifier  "Keyboard0"
  27.         Driver      "kbd"
  28. EndSection

  29. Section "InputDevice"
  30.         Identifier  "Mouse0"
  31.         Driver      "mouse"
  32.         Option            "Protocol" "auto"
  33.         Option            "Device" "/dev/input/mice"
  34.         Option            "ZAxisMapping" "4 5 6 7"
  35. EndSection

  36. Section "Monitor"
  37.         #DisplaySize          470   300        # mm
  38.         Identifier   "Monitor0"
  39.         VendorName   "SAM"
  40.         ModelName    "SyncMaster"
  41.         HorizSync    30.0 - 81.0
  42.         VertRefresh  56.0 - 75.0
  43.         Option            "DPMS"
  44. EndSection

  45. Section "Device"
  46.         ### Available Driver options are:-
  47.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  48.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  49.         ### [arg]: arg optional
  50.         #Option     "NoAccel"                    # [<bool>]
  51.         #Option     "SWcursor"                   # [<bool>]
  52.         #Option     "Dac6Bit"                    # [<bool>]
  53.         #Option     "Dac8Bit"                    # [<bool>]
  54.         #Option     "BusType"                    # [<str>]
  55.         #Option     "CPPIOMode"                  # [<bool>]
  56.         #Option     "CPusecTimeout"              # <i>
  57.         #Option     "AGPMode"                    # <i>
  58.         #Option     "AGPFastWrite"               # [<bool>]
  59.         #Option     "AGPSize"                    # <i>
  60.         #Option     "GARTSize"                   # <i>
  61.         #Option     "RingSize"                   # <i>
  62.         #Option     "BufferSize"                 # <i>
  63.         #Option     "EnableDepthMoves"           # [<bool>]
  64.         #Option     "EnablePageFlip"             # [<bool>]
  65.         #Option     "NoBackBuffer"               # [<bool>]
  66.         #Option     "DMAForXv"                   # [<bool>]
  67.         #Option     "FBTexPercent"               # <i>
  68.         #Option     "DepthBits"                  # <i>
  69.         #Option     "PCIAPERSize"                # <i>
  70.         #Option     "AccelDFS"                   # [<bool>]
  71.         #Option     "IgnoreEDID"                 # [<bool>]
  72.         #Option     "DisplayPriority"            # [<str>]
  73.         #Option     "PanelSize"                  # [<str>]
  74.         #Option     "ForceMinDotClock"           # <freq>
  75.         #Option     "ColorTiling"                # [<bool>]
  76.         #Option     "VideoKey"                   # <i>
  77.         #Option     "RageTheatreCrystal"         # <i>
  78.         #Option     "RageTheatreTunerPort"         # <i>
  79.         #Option     "RageTheatreCompositePort"         # <i>
  80.         #Option     "RageTheatreSVideoPort"         # <i>
  81.         #Option     "TunerType"                  # <i>
  82.         #Option     "RageTheatreMicrocPath"         # <str>
  83.         #Option     "RageTheatreMicrocType"         # <str>
  84.         #Option     "ScalerWidth"                # <i>
  85.         #Option     "RenderAccel"                # [<bool>]
  86.         #Option     "SubPixelOrder"              # [<str>]
  87.         #Option     "ShowCache"                  # [<bool>]
  88.         #Option     "DynamicClocks"              # [<bool>]
  89.         #Option     "VGAAccess"                  # [<bool>]
  90.         #Option     "ReverseDDC"                 # [<bool>]
  91.         #Option     "LVDSProbePLL"               # [<bool>]
  92.         #Option     "AccelMethod"                # <str>
  93.         #Option     "DRI"                        # [<bool>]
  94.         #Option     "ConnectorTable"             # <str>
  95.         #Option     "DefaultConnectorTable"         # [<bool>]
  96.         #Option     "DefaultTMDSPLL"             # [<bool>]
  97.         #Option     "TVDACLoadDetect"            # [<bool>]
  98.         #Option     "ForceTVOut"                 # [<bool>]
  99.         #Option     "TVStandard"                 # <str>
  100.         #Option     "IgnoreLidStatus"            # [<bool>]
  101.         #Option     "DefaultTVDACAdj"            # [<bool>]
  102.         #Option     "Int10"                      # [<bool>]
  103.         #Option     "EXAVSync"                   # [<bool>]
  104.         #Option     "ATOMTVOut"                  # [<bool>]
  105.         Identifier  "Card0"
  106.         Driver      "radeon"
  107.         VendorName  "ATI Technologies Inc"
  108.         BoardName   "RV350 AR [Radeon 9600]"
  109.         BusID       "PCI:2:0:0"
  110. EndSection

  111. Section "Screen"
  112.         Identifier "Screen0"
  113.         Device     "Card0"
  114.         Monitor    "Monitor0"
  115.         SubSection "Display"
  116.                 Viewport   0 0
  117.                 Depth     1
  118.         EndSubSection
  119.         SubSection "Display"
  120.                 Viewport   0 0
  121.                 Depth     4
  122.         EndSubSection
  123.         SubSection "Display"
  124.                 Viewport   0 0
  125.                 Depth     8
  126.         EndSubSection
  127.         SubSection "Display"
  128.                 Viewport   0 0
  129.                 Depth     15
  130.         EndSubSection
  131.         SubSection "Display"
  132.                 Viewport   0 0
  133.                 Depth     16
  134.         EndSubSection
  135.         SubSection "Display"
  136.                 Viewport   0 0
  137.                 Depth     24
  138.         EndSubSection
  139. EndSection
复制代码
发表于 2009-2-17 11:49:37 | 显示全部楼层
前段时间也遇到过,解决方法是重新编译内核,取消以下项

Processor type and features  --->
    x86 PAT support
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 19:57:29 | 显示全部楼层
谢谢兄弟
已经按兄弟的介绍去掉了该项
暂时没出现问题

不过启动GDM时,还是会花屏一下(一闪而过)。
回复 支持 反对

使用道具 举报

发表于 2009-2-17 20:01:19 | 显示全部楼层
GDM 花屏古已有之,乃不治之症。不知道你遇到的是什么样的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 20:13:05 | 显示全部楼层
说了我自己都不敢相信,
有一次花屏相当有技术含量:前面刚刚进入XP查资料(无线网卡没有正常驱动),重启进入Gentoo,GDM启动时,居然闪过XP的桌面,就是那个蓝天绿草地的桌面,晕死。
一般的花屏没什么规则。
回复 支持 反对

使用道具 举报

发表于 2009-2-17 21:09:51 | 显示全部楼层
难道我遇到的“死机”如是?

Post by coderoar;1948656
前段时间也遇到过,解决方法是重新编译内核,取消以下项

Processor type and features  --->
    x86 PAT support

试试。这一项具体提供什么功能?
回复 支持 反对

使用道具 举报

发表于 2009-2-17 21:48:59 | 显示全部楼层
Post by Awei;1948906
前面刚刚进入XP查资料(无线网卡没有正常驱动),重启进入Gentoo,GDM启动时,居然闪过XP的桌面,就是那个蓝天绿草地的桌面,晕死。


可能内存没有清空吧……:yun:

Post by LongerZ;1948931
这一项具体提供什么功能?


和 MTRR 一样的功能,但是不稳定,甚至能引起崩溃。

MTRR:


  1. On Intel P6 family processors (Pentium Pro, Pentium II and later)
  2. the Memory Type Range Registers (MTRRs) may be used to control
  3. processor access to memory ranges. This is most useful if you have
  4. a video (VGA) card on a PCI or AGP bus. Enabling write-combining
  5. allows bus write transfers to be combined into a larger transfer
  6. before bursting over the PCI/AGP bus. This can increase performance
  7. of image write operations 2.5 times or more. Saying Y here creates a
  8. /proc/mtrr file which may be used to manipulate your processor's
  9. MTRRs. Typically the X server should use this.

  10. This code has a reasonably generic interface so that similar
  11. control registers on other processors can be easily supported
  12. as well:

  13. The Cyrix 6x86, 6x86MX and M II processors have Address Range
  14. Registers (ARRs) which provide a similar functionality to MTRRs. For
  15. these, the ARRs are used to emulate the MTRRs.
  16. The AMD K6-2 (stepping 8 and above) and K6-3 processors have two
  17. MTRRs. The Centaur C6 (WinChip) has 8 MCRs, allowing
  18. write-combining. All of these processors are supported by this code
  19. and it makes sense to say Y here if you have one of them.
  20. Saying Y here also fixes a problem with buggy SMP BIOSes which only
  21. set the MTRRs for the boot CPU and not for the secondary CPUs. This
  22. can lead to all sorts of problems, so it's good to say Y here.

  23. You can safely say Y even if your machine doesn't have MTRRs, you'll
  24. just add about 9 KB to your kernel.
复制代码


PAT:

  1. Use PAT attributes to setup page level cache control.

  2. PATs are the modern equivalents of MTRRs and are much more flexible than MTRRs.

  3. Say N here if you see bootup problems (boot crash, boot hang, spontaneous reboots) or a non-working video driver.
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-2-18 00:46:13 | 显示全部楼层
Post by Awei;1948906
说了我自己都不敢相信,
有一次花屏相当有技术含量:前面刚刚进入XP查资料(无线网卡没有正常驱动),重启进入Gentoo,GDM启动时,居然闪过XP的桌面,就是那个蓝天绿草地的桌面,晕死。
一般的花屏没什么规则。


哈哈哈哈,這個確實有水平 !!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-21 12:16:14 | 显示全部楼层
问题还在

一般情况不会,但如果重启过gdm后,再切换控制台和X就会出现问题了。
回复 支持 反对

使用道具 举报

发表于 2009-2-21 12:36:34 | 显示全部楼层
终端用的驱动是哪个?
最好用你的显卡的相应驱动比较好

x86 PAT support 这个选项我一直用,还没出现过问题
终端驱动选择了 VESA VGA graphics support(splash使用)和显卡相应驱动
或许试试?
回复 支持 反对

使用道具 举报

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

本版积分规则

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