LinuxSir.cn,穿越时空的Linuxsir!

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

xorg 7.0升级的一些心得

[复制链接]
发表于 2006-2-28 22:17:09 | 显示全部楼层 |阅读模式
昨天升级到了xorg 7,开始就有了心里准备,知道这一路不会很顺利,今晚终于成功,写个心得,给想吃螃蟹还没吃的再指指路,免得大家走弯路。下面是步骤:

1,准备好信心和耐心,这点很重要哦。

2,找个快的源,pacman -Syu ,其实我一开始也想光升级xorg的,但是后来想想整个系统的升级吧,这样应该成功的可能性更大一点,也是最偷懒的办法。个别的实在不想升级的包(比如我的mysql和apache,php)可以放到pacman.conf的Ignore里面。
如果你也和我一样用nvidia驱动,参考这个:http://www.linuxsir.cn/bbs/showthread.php?t=244204,强行卸掉libgl-dri。

3,安装字体:
[root@Ina ~]# pacman -Ss xorg | grep font
current/xorg-font-utils 1.0.0-1
    X.Org font utilities
current/xorg-fonts-100dpi 1.0.0-2
    X.org 100dpi fonts
current/xorg-fonts-75dpi 1.0.0-2
    X.org 75dpi fonts
current/xorg-fonts-alias 1.0.1-1
    X.org font alias files
current/xorg-fonts-cyrillic 1.0.0-1
    X.org cyrillic fonts
current/xorg-fonts-encodings 1.0.0-1
    X.org font encoding files
current/xorg-fonts-misc 1.0.0-2
    X.org misc fonts
current/xorg-fonts-type1 1.0.0-2
    X.org Type1 fonts
    X.Org X11 xfs font server
这些都装上吧,呵呵。

4,真对xorg.conf开工。
参考http://www.linuxsir.cn/bbs/showthread.php?t=243683,搞定滚轮和fcitx。

整理Section "Files"部分:
更改ModulePath为:"/usr/lib/xorg/modules"。
更改RgbPath为:"/usr/share/X11/rgb"。
注释掉原来字体的路径,增加:
    FontPath         "/usr/share/fonts/misc"
    FontPath         "/usr/share/fonts/75dpi"
    FontPath         "/usr/share/fonts/100dpi"
    FontPath         "/usr/share/fonts/TTF"
    FontPath         "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/wqy"
如果你有自己的字体,也一起加上。

最后,如果你和我一样使用wqy-bitmap,要改一下/etc/fonts/conf.d/里面的连接:
ln -s yes-bitmaps.conf 10-bitmaps.conf

启动x试试,是不是好了很多?


我的xorg.conf:

  1. # File generated by xorgconfig.

  2. Section "Module"
  3.         Load        "dbe"          # Double buffer extension
  4.     SubSection  "extmod"
  5.       Option    "omit xfree86-dga"   # don't initialise the DGA extension
  6.     EndSubSection
  7.         Load        "type1"
  8.         Load        "speedo"
  9.         Load        "freetype"
  10.         Load        "xft"
  11.         Load            "bitmap"
  12.         Load        "glx"
  13.         Load        "dri"
  14.         Load        "GLcore"
  15.         Load        "record"
  16. EndSection

  17. Section "Files"

  18.     RgbPath        "/usr/share/X11/rgb"
  19.     ModulePath "/usr/lib/xorg/modules"

  20.     FontPath         "/usr/share/fonts/misc"
  21.     FontPath         "/usr/share/fonts/75dpi"
  22.     FontPath         "/usr/share/fonts/100dpi"
  23.     FontPath         "/usr/share/fonts/TTF"
  24.     FontPath         "/usr/share/fonts/Type1"
  25.     FontPath         "/usr/local/share/fonts"
  26.     FontPath        "/usr/share/fonts/wqy"
  27. EndSection

  28. Section "ServerFlags"

  29. EndSection

  30. Section "InputDevice"

  31.     Identifier        "Keyboard1"
  32.     Driver        "kbd"
  33.     Option "AutoRepeat" "500 30"
  34.     Option "XkbRules"        "xorg"
  35.     Option "XkbModel"        "pc101"
  36.     Option "XkbLayout"        "us"
  37.     Option "XkbOptions"        "grp:switch,lv3:switch"

  38. EndSection

  39. Section "InputDevice"
  40.                  Identifier  "Mouse1"
  41.                  Driver      "mouse"
  42.                  Option      "Protocol" "IMPS/2"
  43.                  Option      "ZAxisMapping"          "4 5"
  44.                  Option      "Device" "/dev/psaux"
  45.                  Option      "Emulate3Buttons" "true"
  46.                  Option      "Emulate3Timeout" "70"
  47.                  Option      "SendCoreEvents"  "true"
  48. EndSection


  49. Section "Monitor"

  50.     Identifier  "My Monitor"
  51.     HorizSync   50-90
  52.     VertRefresh 85-90

  53. EndSection

  54. Section "Device"
  55.     Identifier  "* Generic VESA compatible"
  56.     Driver      "nvidia"
  57.     #VideoRam    256
  58.     # Insert Clocks lines here if appropriate
  59.         Option      "RenderAccel" "true"
  60.         Option      "AllowGLXWithComposite" "true"
  61. EndSection

  62. Section "Extensions"
  63.         Option "Composite" "Enable"
  64.         Option "RENDER" "Enable"
  65. EndSection


  66. Section "Screen"
  67.     Identifier  "Screen 1"
  68.     Device      "* Generic VESA compatible"
  69.     Monitor     "My Monitor"
  70.     DefaultDepth 24

  71.     Subsection "Display"
  72.         Depth       8
  73.         Modes       "640x400"
  74.         ViewPort    0 0
  75.     EndSubsection
  76.     Subsection "Display"
  77.         Depth       16
  78.         Modes       "640x480"
  79.         ViewPort    0 0
  80.     EndSubsection
  81.     Subsection "Display"
  82.         Depth       24
  83.         Modes       "1024x768" "640x480"
  84.         ViewPort    0 0
  85.     EndSubsection
  86. EndSection

  87. Section "ServerLayout"
  88.     Identifier  "Simple Layout"
  89.     Screen "Screen 1"
  90.     InputDevice "Mouse1" "CorePointer"
  91.     InputDevice "Keyboard1" "CoreKeyboard"
  92. EndSection

  93. Section "DRI"
  94.     Mode 0666
  95. EndSection
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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