总结一下Intel 845/865/915等版载显卡的驱动安装(linuxsir转载)

CPU/显卡/打印机/USB设备等硬件问题
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

总结一下Intel 845/865/915等版载显卡的驱动安装(linuxsir转载)

#1

帖子 gnix_oag » 2005-08-01 9:19

原网址 http://www.linuxsir.org/bbs/showthread.php?t=187838

总结一下Intel 845/865/915等版载显卡的驱动安装

在Intel官方站点下载驱动程序
http://downloadfinder.intel.com/scr...Graphics.tar.gz

最好在 http://dri.freedesktop.org/snapshots/ 下载最新的驱动

安装编译内核需要的东西
如果是在Debian下,用apt-get装一个module-assistant,然后以root运行m-a prepare,module-assistant会自动下载需要的kernel-headers,kernel-source,kernel- kbuild等包
如果用其他发行版本,可能需要手动下载安装一些内核源码

代码: 全选

sudo apt-get install module-assistant 
sudo m-a prepare
解压安装
$tar zxvf i915Graphics.tar.gz
$cd dripkg
#./install.sh
XF86Config里面用i810作为驱动模块
好了之后重起X就可以了

看看效果
装几个小游戏,比如supertux, chromium, tuxracer看看效果吧:)

一些提示
如果显卡工作不正常,尝试在BIOS里把显存设置成8MB;尝试升级BIOS

在dripkg目录会生成dri.log,如果安装不成功可以去里面看提示信息
因为有时候内核源码里的函数定义会发生改变,导致老的驱动在新的内核下无法编译
最新的驱动就没事

比如在2.6.10内核中,pci_save_state和pci_restore_state是这样定义的:
在文件/your-kernel-headers-path/include/linux/pci.h中

int pci_save_state(struct pci_dev *dev);
int pci_restore_state(struct pci_dev *dev);

而在Intel的显卡驱动里,dripkg/agpgart-2.0/intel-agp.c里面调用这两个函数的时候却用了
两个参数,手动去掉后面一个就可以编译通过了

也就是intel-agp.c 中的这些行:

1726 pci_save_state(pdev, intel_i830_private.pm_state);

1730 pci_save_state(intel_i830_private.i830_dev,
1731 intel_i830_private.pm_ig_state);

1735 pci_save_state(intel_i810_private.i810_dev,
1736 intel_i810_private.pm_ig_state);

1749 pci_restore_state(pdev, intel_i830_private.pm_state);

1753 pci_restore_state(intel_i830_private.i830_dev,
1754 intel_i830_private.pm_ig_state);

1758 pci_restore_state(intel_i810_private.i810_dev,
1759 intel_i810_private.pm_ig_state);
上次由 gnix_oag 在 2005-09-09 13:32,总共编辑 7 次。
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#2

帖子 gnix_oag » 2005-08-01 9:22

早就有人搞好,

没去找,转了一圈,先试一下。

linuxsir 真强
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#3

帖子 oneleaf » 2005-08-01 9:26

:D
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#4

帖子 gnix_oag » 2005-08-01 9:44

我试了一下,编译没有问题,

但在安装时

Installing files:
DRI XFree86 modules...done
kernel modules...done
core libraries...done

Updating configuration:
Removing old kernel module "gdg"...done
Removing old kernel module "agpgart"...ERROR

You will need to reboot for the changes to take effect,
as we were unable to unload the current kernel modules.

Checking configuration...done

Press ENTER to continue.

它的日志记录我错误的是

ERROR: Module agpgart is in use by intel_agp

怎么办啊
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#5

帖子 yongyi » 2005-08-01 10:01

意思应该是agpgart模块现在由于正在使用,不能卸载,要你重启使修改起作用。
PS:我没安装过这东西的 :P
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#6

帖子 gnix_oag » 2005-08-01 10:09

我重起了,好象什么也没变啊,

用glxinfo:
direct rendering: No

用 glxgears
951 frames in 5.0 seconds = 190.200 FPS
1166 frames in 5.0 seconds = 233.200 FPS
1036 frames in 5.0 seconds = 207.200 FPS
1165 frames in 5.0 seconds = 233.000 FPS
1036 frames in 5.0 seconds = 207.200 FPS
1166 frames in 5.0 seconds = 233.200 FPS
1036 frames in 5.0 seconds = 207.200 FPS
1036 frames in 5.0 seconds = 207.200 FPS

是不在 xorg 里设置一下啊,怎么设置啊
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#7

帖子 gnix_oag » 2005-08-02 3:37

我在 http://dri.freedesktop.org/snapshots/ 下载了最新的驱动
安装好后,把驱动改成 i810 后:
glxgears
3032 frames in 5.0 seconds = 606.400 FPS
3367 frames in 5.0 seconds = 673.400 FPS
3367 frames in 5.0 seconds = 673.400 FPS
3367 frames in 5.0 seconds = 673.400 FPS
3108 frames in 5.0 seconds = 621.600 FPS

有点变化了,但还是很差啊,xorg.conf 还要怎么改啊,它怎么不自动改成
i810呢,能不能改成其它的什么啊,这个我不懂啦

Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "Intel Corporation i915 Integrated Graphics Controller"
Driver "i810"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation i915 Integrated Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection
gai1020
帖子: 34
注册时间: 2005-08-06 18:59

#8

帖子 gai1020 » 2005-08-08 15:47

解压安装
$tar zxvf i915Graphics.tar.gz
$cd dripkg
#./install.sh
XF86Config里面用i810作为驱动模块
好了之后重起X就可以了


UBUNTU 5.04已经不用XF86Config了,用XORG了
这里是不是不一样点的?
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#9

帖子 gnix_oag » 2005-08-09 19:57

是一样的,只要在Xorg中用i810作为驱动模块就行了
头像
firingstone
帖子: 336
注册时间: 2005-07-11 17:37
来自: 浙江

#10

帖子 firingstone » 2005-08-16 19:54

今天实验了一下发现装不上去

代码: 全选

Compiling...
ERROR: Kernel modules did not compile

The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.
dri.log里面是

代码: 全选

Makefile:163: *** Cannot find a kernel config file。 停止。
看了一下install.sh里面都是XF86Config,不是XORG阿,怎么改成xorg的阿,我不会脚本的:(
我的XORG里现在用的是i810装完就是这样了,是不是不用装915的了,但是,不能开阴影效果,一开就好慢
顺便说一下我的是笔记本915mobile 的,有关系么
上次由 firingstone 在 2005-08-16 20:15,总共编辑 1 次。
ubuntu 5.10 +windowsxpsp2
HP NX6120
PM1.6+512M DDR333+915GM+40G HD+Combo

Life is Struggle!
头像
firingstone
帖子: 336
注册时间: 2005-07-11 17:37
来自: 浙江

#11

帖子 firingstone » 2005-08-16 20:10

是不是要改module啊

代码: 全选

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
intel-agp
i810
ide-cd
ide-disk
ide-generic
lp
mousedev
psmouse
sbp2
sr_mod
看了一下,第一个是显卡吧?(没看见网卡?奇怪,我可以上网阿)
那怎么会出错呢?不懂
ubuntu 5.10 +windowsxpsp2
HP NX6120
PM1.6+512M DDR333+915GM+40G HD+Combo

Life is Struggle!
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#12

帖子 yongyi » 2005-08-16 20:14

独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
头像
firingstone
帖子: 336
注册时间: 2005-07-11 17:37
来自: 浙江

#13

帖子 firingstone » 2005-08-16 20:48

谢谢,装上了,可是怎么改xorg.conf
要改那些,我不太敢乱改,上次改了,就进不了x-window 了,有阴影 :)
我的现在是

代码: 全选

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
        # paths to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection
Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option		"HorizScrollDelta"	"0"
EndSection

Section "Device"
	Identifier	"Intel Corporation Intel Default Card"
	Driver		"i810"
	BusID		"PCI:0:2:0"
        Option          "RenderAccel"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Intel Corporation Intel Default Card"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection

Section "Extensions"
 Option "Composite" "Enable"
 Option "RENDER" "Enable"
EndSection
还有,这里我的好像只是intel Corporation Intel Default Card
没有认出是915,有关系么?还有怎么设置显存大小,我现在有多少怎么看?
ubuntu 5.10 +windowsxpsp2
HP NX6120
PM1.6+512M DDR333+915GM+40G HD+Combo

Life is Struggle!
头像
firingstone
帖子: 336
注册时间: 2005-07-11 17:37
来自: 浙江

#14

帖子 firingstone » 2005-08-17 8:46

再加一个问题glxinfo:direct rendering: No
怎么改啊,915应该支持阿,我现在为什么连 3ddesk也用不了阿?

代码: 全选

Attempting to start 3ddesktop server.
3ddeskd: glXIsDirect failed, no Direct Rendering possible!
3ddeskd: Please configure hardware acceleration.  Exiting.
Daemon started.  Run 3ddesk to activate.
Server not found after waiting 5 seconds.
Could not find server.
Try starting manually (3ddeskd)
ubuntu 5.10 +windowsxpsp2
HP NX6120
PM1.6+512M DDR333+915GM+40G HD+Combo

Life is Struggle!
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#15

帖子 gnix_oag » 2005-08-17 8:53

我的也没有加速
回复