LinuxSir.cn,穿越时空的Linuxsir!

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

在Dell 510m笔记本上安装Intel显卡驱动(基于2.6.8内核)

[复制链接]
发表于 2005-3-21 17:10:48 | 显示全部楼层 |阅读模式
配置:
CPU: PM 1.5
Mem: 512M
显卡: Intel 852/855GM
板载的声卡和网卡

这里我使用的是2.6.8的内核和Intel的官方显卡驱动(www.intel.com,自己找)
之所以用2.6.8的内核不用最新的是因为自2.6.10起有一些数据结构改了,而Intel提供的驱动目前还没有更新,因此编译不过去
官方驱动我下载的是rpm包,dri-i915XXX.rpm,用alien转成了deb包

1. 安装基本系统
安装基本的系统,我用的是woody的安装盘,装完后由于网卡没装上(intel e100),重新编译了一个2.4的内核作为中间过渡,然后apt-get update;apt-get upgrade;
这个就不多说了,已经有很多文章了
2. 编译内核
下载2.6.8的内核,解压....
make menuconfig
这里只说一下其中几个,其余的参照自己的机器修改
  1.         1. 显卡
  2.                 "Code maturity level Options"  selected(编译进内核,下同)
  3.                 "Load module support" selected
  4.                 "Processor Type and features" selected as your machine
  5.                 "Device Drivers"
  6.                         ===>"Generic Driver Options" selected(这个好像是必须的)
  7.                 "Character Device Drivers"
  8.                         ===>"/dev/agpgart(AGP Support)" module (这个必须编译成模块)
  9.                         ===>"Intel .XXXX" module(就是i810的驱动)
  10.                         ===>"Direct Randering Manager(...)" unseleted(必须)
  11.                 "Graphics support" selected(必须,不然/dev/agpgart那个选项就不能编译成模块了)
  12.                  "Intel XXXX" module(i810fb驱动,这个提供framebuffer,不知道是不是必须的)

  13.         2. sound
  14.         声卡驱动我都编译成了模块
  15.                 "Device Drivers"
  16.                         ===>"Sound"
  17.                                 ==>"Sound card support" selected(module)
  18.                                 ==>"Advanced Linux Sound Architecture" selected(module)
  19.                                          =>"oss XXX" selected(module)
  20.                                          =>"pci"
  21.                                              =>"Intel XXX" selected(module)
  22.                                        
  23.         3. mouse
  24.          鼠标主要是要选两个驱动,一个是那个触摸板,一个是USB的
  25.                 "Device Drivers"
  26.                         ===>"Input Device support"
  27.                                 ==>"mice" selected
  28.                                         =>"PS/2 mouse" selected  (这个是触摸板的)
  29.                         ===>"Usb support"
  30.                                 ==>"Support for host-side usb" selected(module)
  31.                                 ==>"UHCI HCD(most Intel and VIA)support" module
  32.                                 ==>"USB Human Interface Device(full HID)support"
  33.                                         selected,module
  34.                                         =>"HID input layer support" selected

复制代码

还有一些其他的东西,比如硬盘,光驱,文件系统之类的这里就不提了,已经有很多这方面的了
make ;make modules_install
拷贝内核,编辑lilo.conf等等

3.安装x-window
这个就是apt-get 了,请参考其他相关文章
4.编辑xwindow 的配置文件
主要是显卡段:

  1. Section "Device"
  2.             Identifier  "i810"
  3.             VendorName  "Intel"
  4.             Driver      "i810"
  5.             Option      "AGPMode" "1"
  6.             VideoRam    10000
  7.         EndSection
  8. 还有Screen段:
  9.         Section "Screen"
  10.             Identifier  "Screen 1"
  11.             Device      "i810"
  12.             Monitor     "High Res Monitor"
  13.             DefaultDepth 16 #似乎24位的不支持硬件加速?有待确认
  14.             Subsection "Display"
  15.                 Depth       16
  16.                 Modes       "1280x1024" "1024x768" "800x600" "640x480"
  17.                 ViewPort    0 0
  18.             EndSubsection
  19.         EndSection
复制代码

后面有我的XF86Config-4,可以参考
5.vi /etc/modules
add:
#这个是声卡
snd_intel8x0
#这个是网卡
e100
#显卡
intel-agp
i810
#鼠标
usbmouse
uhci_hcd

6.Reboot
重启机器,使用新编译的2.6.8内核,进入纯文本控制台
7.编译官方驱动
下载dri-i915XXX.rpm
用alien转成deb包,或者直接把里面的动西解出来
dpkg -i dri-i915XXX.deb
在/usr/X11R6/dripkg目录里就有了一个文件dri-i915XX.tar.gz,解压
tar -zxvf dri-i915XX.tar.gz
然后里面有一个install.sh,执行,一路回车就可以了,中间看看输出,没有错误的话就OK了,最后那个Remove Old verion modules错误可以忽略。

好了,现在重启机器就可以了,startx试试
我试过,没有安装官方驱动时glxgear大概在2500多fps,安装后将近7000fps,当然,glxgear是没有最下化的情形下测试的
现在还有的问题:
framebuffer,由于把i810fb编译成了模块,只有在加载后才有framebuffer支持,所以不能在lilo.conf里写vga=773之类的东西,不然就是黑屏。所以现在的文本方式还是640x480的分辨率

dri参考http://dri.sourceforge.net/doc/DRIcompile.html

  1. Section "Files"
  2.         FontPath        "unix/:7100"                        # local font server
  3.         # if the local font server has problems, we can fall back on these
  4.         FontPath        "/usr/lib/X11/fonts/misc"
  5. #        FontPath        "/usr/lib/X11/fonts/cyrillic"
  6.         FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
  7.         FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
  8.         FontPath        "/usr/lib/X11/fonts/Type1"
  9.         FontPath        "/usr/lib/X11/fonts/CID"
  10.         FontPath        "/usr/lib/X11/fonts/Speedo"
  11.         FontPath        "/usr/lib/X11/fonts/100dpi"
  12.         FontPath        "/usr/lib/X11/fonts/75dpi"
  13. EndSection

  14. Section "Module"
  15.         Load        "GLcore"
  16.         Load        "bitmap"
  17.         Load        "dbe"
  18.         Load        "ddc"
  19.         Load        "dri"
  20.         Load        "extmod"
  21.         Load        "freetype"
  22.         Load        "glx"
  23.         Load        "int10"
  24.         Load        "record"
  25.         Load        "speedo"
  26.         Load        "type1"
  27.         Load        "vbe"
  28. EndSection

  29. Section "InputDevice"
  30.         Identifier        "Generic Keyboard"
  31.         Driver                "keyboard"
  32.         Option                "CoreKeyboard"
  33.         Option                "XkbRules"        "xfree86"
  34.         Option                "XkbModel"        "pc101"
  35.         Option                "XkbLayout"        "us"
  36. EndSection

  37. Section "InputDevice"
  38.         Identifier        "Configured Mouse"
  39.         Driver                "mouse"
  40.         Option                "CorePointer"
  41.         Option                "Device"                "/dev/psaux"
  42.         Option                "Protocol"                "PS/2"
  43. #        Option                "Emulate3Buttons"        "true"
  44.         Option                "ZAxisMapping"                "4 5"
  45. EndSection
  46. Section "InputDevice"
  47.         Identifier        "Generic Mouse"
  48.         Driver                "mouse"
  49.         Option                "SendCoreEvents"        "true"
  50.         Option                "Device"                "/dev/input/mice"
  51.         Option                "Protocol"                "ImPS/2"
  52. #        Option                "Emulate3Buttons"        "true"
  53.         Option                "ZAxisMapping"                "4 5"
  54. EndSection

  55. Section "Device"
  56.         Identifier        "i810"
  57.         VendorName        "Intel"
  58.         Driver                "i810"
  59.         Option                "AGPMode" "1"
  60.         VideoRam        32768
  61. EndSection

  62. Section "Monitor"
  63.         Identifier        "Generic Monitor"
  64.         HorizSync        28-49
  65.         VertRefresh        43-72
  66.         Option                "DPMS"
  67. EndSection

  68. Section "Screen"
  69.         Identifier        "Default Screen"
  70.         Device                "i810"
  71.         Monitor                "Generic Monitor"
  72.         DefaultDepth        16
  73.         SubSection "Display"
  74.                 Depth                1
  75.                 Modes                "1024x768" "800x600" "640x480"
  76.                 ViewPort        0 0
  77.         EndSubSection
  78.         SubSection "Display"
  79.                 Depth                4
  80.                 Modes                "1024x768" "800x600" "640x480"
  81.                 ViewPort        0 0
  82.         EndSubSection
  83.         SubSection "Display"
  84.                 Depth                8
  85.                 Modes                "1024x768" "800x600" "640x480"
  86.                 ViewPort        0 0
  87.         EndSubSection
  88.         SubSection "Display"
  89.                 Depth                15
  90.                 Modes                "1024x768" "800x600" "640x480"
  91.                 ViewPort        0 0
  92.         EndSubSection
  93.         SubSection "Display"
  94.                 Depth                16
  95.                 Modes                "1024x768" "800x600" "640x480"
  96.                 ViewPort        0 0
  97.         EndSubSection
  98.         SubSection "Display"
  99.                 Depth                24
  100.                 Modes                "1024x768" "800x600" "640x480"
  101.                 ViewPort        0 0
  102.         EndSubSection
  103. EndSection

  104. Section "ServerLayout"
  105.         Identifier        "Default Layout"
  106.         Screen                "Default Screen"
  107.         InputDevice        "Generic Keyboard"
  108.         InputDevice        "Configured Mouse"
  109.         InputDevice        "Generic Mouse"
  110. EndSection

  111. Section "DRI"
  112.         Mode        0666
  113. EndSection
复制代码

漏了什么没有?
发表于 2005-3-21 17:34:02 | 显示全部楼层
触摸板有没有试试用synaptics驱动?我在700m上用synaptics,进不了X,键盘和鼠标锁死
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-21 17:41:20 | 显示全部楼层
没试过synaptics
再补充一点关于sound:
因为alsa默认是不发声的,要想让他响起来还需要用混音器打开
apt-get install alsa-lib-XXX(具体的用apt-cache search..)
apt-get insatll alsa-utils-xxx
然后可以用alsamixer来调节音量,他是在控制台下运行的,"up" ,"down","left","right"四个键选择及调节音量,按"m"取消静音
回复 支持 反对

使用道具 举报

发表于 2005-3-21 20:32:32 | 显示全部楼层
我的也是主板855GM集成声卡,编译内核声音老搞不定,回去参照你的再编译一次试试看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-21 21:25:02 | 显示全部楼层
这个声卡很容易搞定的,2.4和2.6的内核都有驱动,到是显卡比较难办一点,因为我想用官方提供的驱动。。。
不过装声卡到是走过不少弯路,就因为那个alsa默认是静音的,结果把内核搞了n遍,后来才在alsa的网页上看到要用混音器调节才行
我这一段装过好多次系统了,前几天硬盘怀了,换了一块,这次打算装好一点,一样一样的来,现在驱动基本都搞定,开始装窗口管理器。
回复 支持 反对

使用道具 举报

发表于 2005-3-29 16:58:50 | 显示全部楼层
默认的内核老是提醒我没有正确的插件。用alsamixer查看的时候发现声卡是我的modem的声音,怎么把声卡的声音调出来?
回复 支持 反对

使用道具 举报

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

本版积分规则

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