Ubuntu8.04成功安装Sis显卡驱动

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
un44444444
帖子: 10
注册时间: 2007-05-14 16:45
送出感谢: 0
接收感谢: 0

Ubuntu8.04成功安装Sis显卡驱动

#1

帖子 un44444444 » 2008-04-20 19:33

神舟天运Q550S,使用集成的SiS 672(FX)显卡,全新安装ubuntu8.04。
安装后默认使用vesa驱动,分辨率只有800*600,看起来实在不舒服。
使用Sis驱动后,目前分辨率可以达到1280*800。

具体做法参考这个帖子:
http://ubuntuforums.org/showthread.php?p=4558160

步骤如下:
1、安装需要的库,可通过“新立得软件包管理器”获取。
x11proto-core-dev
x11proto-fonts-dev
x11proto-gl-dev
x11proto-input-dev
x11proto-randr-dev
x11proto-render-dev
x11proto-video-dev
x11proto-xext-dev
x11proto-xf86dga-dev
x11proto-xf86dri-dev
x11proto-xf86misc-dev
x11proto-xinerama-dev
mesa-common-dev(根据mercuryhg说法,现在已经找不到mesa-common-lib了)
(根据etrock说明,可能还缺少xserver-xorg)
(可能还需要libdrm-dev)

另外可能还缺少libc6-dev,这样接下来使用gcc编译时会报错
C compiler cannot create executables

2、使用附件中由打过补丁的源代码进行编译,得到适合本机的显卡驱动。
源代码里修改者已经配置好了,不要重新配置。
bzip2 -d intelsrc.tar.bz2
tar xvf intelsrc.tar
cd 2d-driver
make
sudo make install
(貌似好多人掉这个坑里了, 不好意思... 这里需要root权限)
sudo mv -v /usr/local/lib/xorg/modules/drivers/sis_drv.* /usr/lib/xorg/modules/drivers/
(默认的安装路径不对, 需要移动到系统的驱动目录下)

3、先备份再修改/etc/X11/xorg.conf配置,可用gtf工具计算某种显示模式的配置参数。
$ sudo cp -v /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
$ gtf 1280 800 60

# 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync

以下几个参数应该都比较重要
Driver "sis"
Vendorname "SiS"
Option "EnableSiSCtrl" "yes"
Option "XvDefaultAdaptor" "Blitter"

最后注销后重新登陆,就可以看到我们想要的效果了。
可惜无法支持3D,桌面特效无法打开。
同样是Sis显卡的tx可以一起关注这个下面这个帖子,希望能尽快拿到3D的驱动。
http://ubuntuforums.org/showthread.php?t=615094

---------------------------------------------------------------------------------------------
30楼 linqingzhou 的方正R620本, 使用另一驱动, 已经成功.


---------------------------------------------------------------------------------------------
以下再发几个二进制驱动, 无法编译源码的试一试.
注意: 修改/etc/X11/xorg.conf时, 一定要备份一下, 毕竟并不能保证一次就成功.
这样就算出问题, 无法进入图形界面, 也可以通过还原配置文件来解决.
附件
intelbin.tar.bz2
附件里直接包含了xorg.conf, 是为D201GLY2台式机准备的1024*768.
同样是从http://ubuntuforums.org/showthread.php?p=4558160上搬过来, 和 intelsrc.tar.bz2一起发布的.
(268.74 KiB) 下载 485 次
drivers.zip
我现在用的驱动, 从5楼搬上来的.
(1.24 MiB) 下载 1173 次
intelsrc.tar.bz2
Sis显卡驱动代码, 从http://ubuntuforums.org/showthread.php?p=4558160上搬过来的.
(789.76 KiB) 下载 1000 次
xorg.tar.gz
一些配置文件,供参考
(1.49 KiB) 下载 491 次
上次由 un44444444 在 2008-12-17 19:47,总共编辑 3 次。
头像
woaiwojia
帖子: 1353
注册时间: 2007-09-10 20:20
系统: Debian
来自: 南京
送出感谢: 0
接收感谢: 0

#2

帖子 woaiwojia » 2008-04-20 19:42

我这里没有装那个驱动,就是没有3D

SI7012
etrock
帖子: 6
注册时间: 2008-05-11 23:59
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 etrock » 2008-07-10 19:27

搂主还在吗?

这个怎么编译阿?我怎么全部都升级了所需的库了,怎么还是满屏的错误阿?


init301.c:11490: error: 'struct SiS_Private' has no member named 'SiS_TVMode'
init301.c:11493: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c:11495: error: 'struct SiS_Private' has no member named 'SiS_VBType'
init301.c:11497: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11500: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11503: error: 'struct SiS_Private' has no member named 'SiS_TVMode'
init301.c:11508: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11512: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c: In function 'SiS_SearchVBModeID':
init301.c:11522: error: 'struct SiS_Private' has no member named 'SiS_VGAINFO'
init301.c:11527: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c:11528: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c: In function 'SiS_OEM300Setting':
init301.c:11548: error: 'struct SiS_Private' has no member named 'UseCustomMode'
init301.c:11553: error: 'struct SiS_Private' has no member named 'SiS_VBInfo'
init301.c:11555: error: 'struct SiS_Private' has no member named 'SiS_IF_DEF_LVDS'
init301.c:11559: error: 'struct SiS_Private' has no member named 'UseCustomMode'
init301.c:11560: error: 'struct SiS_Private' has no member named 'SiS_VBInfo'
init301.c:11562: error: 'struct SiS_Private' has no member named 'SiS_VBType'
make[2]: *** [init301.lo] 错误 1
make[2]: Leaving directory `/tmp/2d-driver/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/2d-driver'
make: *** [all] 错误 2
etrock
帖子: 6
注册时间: 2008-05-11 23:59
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 etrock » 2008-07-10 20:08

哪位帮帮忙阿~~~拜托了..
un44444444
帖子: 10
注册时间: 2007-05-14 16:45
送出感谢: 0
接收感谢: 0

#5

帖子 un44444444 » 2008-07-24 22:39

不好意思,好久没来逛了~~~.
从你的错误提示看来, 是在没理由啊,
这些变量是定义在vstruct.h文件的.

你试一试以下命令,增加一步configure:
cd 2d-driver
./configure
make
make install

实在不行就试一试我现在用的驱动,见附件(drivers.zip).
附件
drivers.zip
(1.24 MiB) 下载 408 次
poetbox
帖子: 99
注册时间: 2008-07-12 23:51
送出感谢: 0
接收感谢: 0

#6

帖子 poetbox » 2008-07-26 20:04

etrock 写了:搂主还在吗?

这个怎么编译阿?我怎么全部都升级了所需的库了,怎么还是满屏的错误阿?


init301.c:11490: error: 'struct SiS_Private' has no member named 'SiS_TVMode'
init301.c:11493: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c:11495: error: 'struct SiS_Private' has no member named 'SiS_VBType'
init301.c:11497: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11500: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11503: error: 'struct SiS_Private' has no member named 'SiS_TVMode'
init301.c:11508: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11512: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c: In function 'SiS_SearchVBModeID':
init301.c:11522: error: 'struct SiS_Private' has no member named 'SiS_VGAINFO'
init301.c:11527: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c:11528: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c: In function 'SiS_OEM300Setting':
init301.c:11548: error: 'struct SiS_Private' has no member named 'UseCustomMode'
init301.c:11553: error: 'struct SiS_Private' has no member named 'SiS_VBInfo'
init301.c:11555: error: 'struct SiS_Private' has no member named 'SiS_IF_DEF_LVDS'
init301.c:11559: error: 'struct SiS_Private' has no member named 'UseCustomMode'
init301.c:11560: error: 'struct SiS_Private' has no member named 'SiS_VBInfo'
init301.c:11562: error: 'struct SiS_Private' has no member named 'SiS_VBType'
make[2]: *** [init301.lo] 错误 1
make[2]: Leaving directory `/tmp/2d-driver/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/2d-driver'
make: *** [all] 错误 2
这个错误害得我电脑都开不了机!!!
我这几天都不能用了 。现在又重装了,宁可没有分辨率,至少还要启动啊。
un44444444
帖子: 10
注册时间: 2007-05-14 16:45
送出感谢: 0
接收感谢: 0

#7

帖子 un44444444 » 2008-07-27 20:45

:em06 ,不至于吧,
驱动没有编译通过, 怎么会对系统造成影响呢?

如果是用我自己在附件里给的驱动, 倒是有可能导致问题.
因为CPU 、内核系统可能不一样的话
poetbox
帖子: 99
注册时间: 2008-07-12 23:51
送出感谢: 0
接收感谢: 0

#8

帖子 poetbox » 2008-07-29 15:48

un44444444 写了::em06 ,不至于吧,
驱动没有编译通过, 怎么会对系统造成影响呢?

如果是用我自己在附件里给的驱动, 倒是有可能导致问题.
因为CPU 、内核系统可能不一样的话
编译出错后,一 直进不了图形界面。
尝试恢复X11相关文件都无效。最后彻底重新安装了。现在不敢乱试了。因为安装这东东太耗时间了。要是能帮我安装一下就好了。
poetbox
帖子: 99
注册时间: 2008-07-12 23:51
送出感谢: 0
接收感谢: 0

#9

帖子 poetbox » 2008-07-29 15:50

etrock 写了:搂主还在吗?

这个怎么编译阿?我怎么全部都升级了所需的库了,怎么还是满屏的错误阿?


init301.c:11490: error: 'struct SiS_Private' has no member named 'SiS_TVMode'
init301.c:11493: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c:11495: error: 'struct SiS_Private' has no member named 'SiS_VBType'
init301.c:11497: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11500: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11503: error: 'struct SiS_Private' has no member named 'SiS_TVMode'
init301.c:11508: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c:11512: error: 'struct SiS_Private' has no member named 'SiS_Part2Port'
init301.c: In function 'SiS_SearchVBModeID':
init301.c:11522: error: 'struct SiS_Private' has no member named 'SiS_VGAINFO'
init301.c:11527: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c:11528: error: 'struct SiS_Private' has no member named 'SiS_VBModeIDTable'
init301.c: In function 'SiS_OEM300Setting':
init301.c:11548: error: 'struct SiS_Private' has no member named 'UseCustomMode'
init301.c:11553: error: 'struct SiS_Private' has no member named 'SiS_VBInfo'
init301.c:11555: error: 'struct SiS_Private' has no member named 'SiS_IF_DEF_LVDS'
init301.c:11559: error: 'struct SiS_Private' has no member named 'UseCustomMode'
init301.c:11560: error: 'struct SiS_Private' has no member named 'SiS_VBInfo'
init301.c:11562: error: 'struct SiS_Private' has no member named 'SiS_VBType'
make[2]: *** [init301.lo] 错误 1
make[2]: Leaving directory `/tmp/2d-driver/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/2d-driver'
make: *** [all] 错误 2
这位朋友,你试成功了吗?如果成功了,麻烦告知一声好不好?至少你对楼主的辛苦是个安慰,至少对我进一步安装也带来点信心。OK?
反馈一下吧,朋友。
etrock
帖子: 6
注册时间: 2008-05-11 23:59
送出感谢: 0
接收感谢: 0
联系:

#10

帖子 etrock » 2008-08-02 0:32

哈哈,楼上的,不好意思了,有段时间没来了...

这个驱动我最后还是没装上,最后用了别人的CONF文件分辨率是可以改了,结果...却是1280*768,把我给气的...

死活上不了1280*800,最后干脆把ubuntu卸了算了(暂时我还不需要用,在学嵌入式,用虚拟机挂个红帽子就凑合了)

希望高手能解决...
etrock
帖子: 6
注册时间: 2008-05-11 23:59
送出感谢: 0
接收感谢: 0
联系:

#11

帖子 etrock » 2008-08-02 0:34

un44444444 写了:不好意思,好久没来逛了~~~.
从你的错误提示看来, 是在没理由啊,
这些变量是定义在vstruct.h文件的.

你试一试以下命令,增加一步configure:
cd 2d-driver
./configure
make
make install

实在不行就试一试我现在用的驱动,见附件(drivers.zip).

最好每个命令都加个SUDO,UBUNTU第一次用,感觉不是ROOT登陆超不爽!
poetbox
帖子: 99
注册时间: 2008-07-12 23:51
送出感谢: 0
接收感谢: 0

#12

帖子 poetbox » 2008-08-02 9:51

etrock 写了:
最好每个命令都加个SUDO,UBUNTU第一次用,感觉不是ROOT登陆超不爽!
全加Sudo搞定了吗?是不是就可以了啊 :?:

我现在用的虚拟机,虚拟的显卡支持分辨率,所以没有测试。如果你能测试成功,我就准备直接安装不用虚拟机了。虚拟机中的文件我已经全部TAR打包备份到主机中,可以直接恢复。
马大千金
帖子: 4
注册时间: 2008-08-02 19:37
送出感谢: 0
接收感谢: 0

#13

帖子 马大千金 » 2008-08-02 19:40

:) :) :)
头像
q290264917
帖子: 46
注册时间: 2008-07-29 21:48
送出感谢: 0
接收感谢: 0
联系:

#14

帖子 q290264917 » 2008-08-02 22:25

我用了一下
也是满屏的错误!
不好意思,好久没来逛了~~~.
从你的错误提示看来, 是在没理由啊,
这些变量是定义在vstruct.h文件的.

你试一试以下命令,增加一步configure:
cd 2d-driver
./configure
make
make install

实在不行就试一试我现在用的驱动,见附件(drivers.zip).
也用了这个方法也是错误!
不知道该怎么办了!
楼主帮忙呀!
头像
q290264917
帖子: 46
注册时间: 2008-07-29 21:48
送出感谢: 0
接收感谢: 0
联系:

#15

帖子 q290264917 » 2008-08-02 22:27

最好每个命令都加个SUDO,UBUNTU第一次用,感觉不是ROOT登陆超不爽!

好像也是不行!
回复

回到 “常用硬件支持”