1,准备好信心和耐心,这点很重要哦。
2,找个快的源,pacman -Syu ,其实我一开始也想光升级xorg的,但是后来想想整个系统的升级吧,这样应该成功的可能性更大一点,也是最偷懒的办法。个别的实在不想升级的包(比如我的mysql和apache,php)可以放到pacman.conf的Ignore里面。
如果你也和我一样用nvidia驱动,强行卸掉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开工。
搞定滚轮和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:
引用:# File generated by xorgconfig.
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "speedo"
Load "freetype"
Load "xft"
Load "bitmap"
Load "glx"
Load "dri"
Load "GLcore"
Load "record"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
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/local/share/fonts"
FontPath "/usr/share/fonts/wqy"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
Option "XkbOptions" "grp:switch,lv3:switch"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection
Section "Monitor"
Identifier "My Monitor"
HorizSync 50-90
VertRefresh 85-90
EndSection
Section "Device"
Identifier "* Generic VESA compatible"
Driver "nvidia"
#VideoRam 256
# Insert Clocks lines here if appropriate
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "* Generic VESA compatible"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "640x400"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "DRI"
Mode 0666
EndSection

