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

CPU/显卡/打印机/USB设备等硬件问题
poetbox
帖子: 99
注册时间: 2008-07-12 23:51

#16

帖子 poetbox » 2008-08-03 19:13

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

好像也是不行!
我觉得此事成功不易,果然还是失败的居多。
建议大家都先用VM虚拟机,在虚拟机中用的是虚拟显卡,这个显卡支持非常好直接就能调宽屏,有各种各样的分辨率支持不必费任何心思。
--
另外,希望大家谁成功之后,告知一声成功的诀窍。先谢了。
头像
q290264917
帖子: 46
注册时间: 2008-07-29 21:48
联系:

楼主在吗?

#17

帖子 q290264917 » 2008-08-04 19:43

q@q-laptop:~/qudong/2d-driver$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... yes
checking if XINERAMA is defined... yes
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XV is defined... yes
checking if XF86MISC is defined... yes
checking if DPMSExtension is defined... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... yes
checking for ANSI C header files... (cached) yes
checking for /usr/include/xorg/dri.h... yes
checking for /usr/include/xorg/sarea.h... yes
checking for /usr/include/xorg/dristruct.h... yes
checking whether to include DRI support... yes
checking for DRI... yes
checking for NONE/share/X11/sgml/defs.ent... no
checking for linuxdoc... no
checking for ps2pdf... /usr/bin/ps2pdf
checking Whether to build documentation... no
checking Whether to build pdf documentation... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
q@q-laptop:~/qudong/2d-driver$ make
make all-recursive
make[1]: Entering directory `/home/q/qudong/2d-driver'
Making all in src
make[2]: Entering directory `/home/q/qudong/2d-driver/src'
make[2]: 没有什么可以做的为 `all'。
make[2]: Leaving directory `/home/q/qudong/2d-driver/src'
Making all in man
make[2]: Entering directory `/home/q/qudong/2d-driver/man'
make[2]: 没有什么可以做的为 `all'。
make[2]: Leaving directory `/home/q/qudong/2d-driver/man'
make[2]: Entering directory `/home/q/qudong/2d-driver'
make[2]: Leaving directory `/home/q/qudong/2d-driver'
make[1]: Leaving directory `/home/q/qudong/2d-driver'
q@q-laptop:~/qudong/2d-driver$ make install
Making install in src
make[1]: Entering directory `/home/q/qudong/2d-driver/src'
make[2]: Entering directory `/home/q/qudong/2d-driver/src'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/local/lib/xorg/modules/drivers" || mkdir -p -- "/usr/local/lib/xorg/modules/drivers"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'sis_drv.la' '/usr/local/lib/xorg/modules/drivers/sis_drv.la'
/usr/bin/install -c .libs/sis_drv.so /usr/local/lib/xorg/modules/drivers/sis_drv.so
/usr/bin/install: cannot remove `/usr/local/lib/xorg/modules/drivers/sis_drv.so': Permission denied
make[2]: *** [install-sis_drv_laLTLIBRARIES] 错误 1
make[2]: Leaving directory `/home/q/qudong/2d-driver/src'
make[1]: *** [install-am] 错误 2
make[1]: Leaving directory `/home/q/qudong/2d-driver/src'
make: *** [install-recursive] 错误 1
q@q-laptop:~/qudong/2d-driver$



我的显示的是这个!
请问是怎么回事呀!
头像
q290264917
帖子: 46
注册时间: 2008-07-29 21:48
联系:

请问

#18

帖子 q290264917 » 2008-08-04 20:00

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... yes
checking if XINERAMA is defined... yes
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XV is defined... yes
checking if XF86MISC is defined... yes
checking if DPMSExtension is defined... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... yes
checking for ANSI C header files... (cached) yes
checking for /usr/include/xorg/dri.h... yes
checking for /usr/include/xorg/sarea.h... yes
checking for /usr/include/xorg/dristruct.h... yes
checking whether to include DRI support... yes
checking for DRI... yes
checking for /usr/share/X11/sgml/defs.ent... no
checking for linuxdoc... no
checking for ps2pdf... /usr/bin/ps2pdf
checking Whether to build documentation... no
checking Whether to build pdf documentation... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
q@q-laptop:~/qudong/2d-driver$ make
make all-recursive
make[1]: Entering directory `/home/q/qudong/2d-driver'
Making all in src
make[2]: Entering directory `/home/q/qudong/2d-driver/src'
make[2]: 没有什么可以做的为 `all'。
make[2]: Leaving directory `/home/q/qudong/2d-driver/src'
Making all in man
make[2]: Entering directory `/home/q/qudong/2d-driver/man'
make[2]: 没有什么可以做的为 `all'。
make[2]: Leaving directory `/home/q/qudong/2d-driver/man'
make[2]: Entering directory `/home/q/qudong/2d-driver'
make[2]: Leaving directory `/home/q/qudong/2d-driver'
make[1]: Leaving directory `/home/q/qudong/2d-driver'
q@q-laptop:~/qudong/2d-driver$ sudo make install
Making install in src
make[1]: Entering directory `/home/q/qudong/2d-driver/src'
make[2]: Entering directory `/home/q/qudong/2d-driver/src'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/lib/xorg/modules/drivers" || mkdir -p -- "/usr/lib/xorg/modules/drivers"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'sis_drv.la' '/usr/lib/xorg/modules/drivers/sis_drv.la'
/usr/bin/install -c .libs/sis_drv.so /usr/lib/xorg/modules/drivers/sis_drv.so
/usr/bin/install -c .libs/sis_drv.lai /usr/lib/xorg/modules/drivers/sis_drv.la
libtool: install: warning: remember to run `libtool --finish /usr/local/lib/xorg/modules/drivers'
make[2]: Leaving directory `/home/q/qudong/2d-driver/src'
make[1]: Leaving directory `/home/q/qudong/2d-driver/src'
Making install in man
make[1]: Entering directory `/home/q/qudong/2d-driver/man'
make[2]: Entering directory `/home/q/qudong/2d-driver/man'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/man/man4" || mkdir -p -- "/usr/man/man4"
/usr/bin/install -c -m 644 'sis.4' '/usr/man/man4/sis.4'
make[2]: Leaving directory `/home/q/qudong/2d-driver/man'
make[1]: Leaving directory `/home/q/qudong/2d-driver/man'
make[1]: Entering directory `/home/q/qudong/2d-driver'
make[2]: Entering directory `/home/q/qudong/2d-driver'
make[2]: 没有什么可以做的为 `install-exec-am'。
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]: Leaving directory `/home/q/qudong/2d-driver'
make[1]: Leaving directory `/home/q/qudong/2d-driver'
q@q-laptop:~/qudong/2d-driver$
这样是不是代表我安装上驱动了呢!
mercuryhg
帖子: 39
注册时间: 2006-12-17 23:15

#19

帖子 mercuryhg » 2008-08-05 10:18

楼主在不在啊?
我的机器是神舟的Q540S,和你的应该就是CPU不一样,驱动我已经编译成功了,可是用了你提供的XORG.CONF文件却也不能使分辨率到1280X800,不知道是不是XORG.CONF文件的问题啊?
mercuryhg
帖子: 39
注册时间: 2006-12-17 23:15

#20

帖子 mercuryhg » 2008-08-05 13:36

实在是没办法了,全部按楼主的步骤来了,也都通过了,可是还是不行,这个驱动说安不上就是安不上。看来还是只能用XP了。
poetbox
帖子: 99
注册时间: 2008-07-12 23:51

#21

帖子 poetbox » 2008-08-05 17:33

mercuryhg 写了:实在是没办法了,全部按楼主的步骤来了,也都通过了,可是还是不行,这个驱动说安不上就是安不上。看来还是只能用XP了。
楼主很忙难得来这里。
你能把驱动编译成功真是不简单。如果仅仅只是换Xorg.conf不行,可以考虑自己写一个。
zm2355
帖子: 7
注册时间: 2007-12-23 22:59

#22

帖子 zm2355 » 2008-08-06 2:37

下载了5楼的驱动文件
怎么安装阿
刚开始接触linux,麻烦赐教
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

#23

帖子 想入非非 » 2008-08-06 3:03

上次编译内核的失败,我都有阴影了
mercuryhg
帖子: 39
注册时间: 2006-12-17 23:15

#24

帖子 mercuryhg » 2008-08-06 9:52

poetbox 写了:
mercuryhg 写了:实在是没办法了,全部按楼主的步骤来了,也都通过了,可是还是不行,这个驱动说安不上就是安不上。看来还是只能用XP了。
楼主很忙难得来这里。
你能把驱动编译成功真是不简单。如果仅仅只是换Xorg.conf不行,可以考虑自己写一个。
已经用X -CONFIGURE来重新写了,还是不行。
un44444444
帖子: 10
注册时间: 2007-05-14 16:45

#25

帖子 un44444444 » 2008-08-07 3:59

诸位,不要轻易放弃啊.
当时为了找这个驱动,我也是花了很多时间的.
现在看来,我还算幸运,很顺利就成功了.
对你们遇到的问题, 我很难有经验提供你们参考.

to mercuryhg:
你试试把编译好的驱动放到/usr/lib/xorg/modules/drivers/下试试, 默认安装的目录应该是和ubuntu不匹配,多了一级local.
如果还不行,你再找找有个调整分辨率的选项,看里面有没有我们配置的分辨率.

to zm2355:
如果机器的型号差不多的话, 也按上面的步骤试一试.

to poetbox, etrock
编译错误的情况,我没遇到过. 而且从错误提示看,真找不到地方入手.
你们试着干净地编译一把:
把压缩包的源代码重启解到新的目录,直接./configure执行配置,然后再make.
bzip2 -d intelsrc.tar.bz2
tar xvf intelsrc.tar
cd 2d-driver
./configure
make

如果以上编译不过, 那就把congfigure过的代码带包传上来, 我把文件比对一下,看看那个宏有问题.
un44444444
帖子: 10
注册时间: 2007-05-14 16:45

#26

帖子 un44444444 » 2008-08-07 4:23

驱动的复制要用sudo
sudo cp -v /usr/local/lib/xorg/modules/drivers/sis_drv.* /usr/lib/xorg/modules/drivers/
mercuryhg
帖子: 39
注册时间: 2006-12-17 23:15

#27

帖子 mercuryhg » 2008-08-07 11:55

那看起来是我又再来试试,晚上回去重新做个GHOST备份,要不然还原不回来就麻烦了。
poetbox
帖子: 99
注册时间: 2008-07-12 23:51

#28

帖子 poetbox » 2008-08-08 10:34

我再去试试吧。
另外,我发现了一个网址:
https://launchpad.net/ubuntu/intrepid/+ ... .0-1build1
内容是:
哪位英文好点的来看看是什么意思:
xserver-xorg-video-sis 1:0.10.0-1build1 (source) in ubuntu intrepid
Publishing history
1:0.10.0-1build1 PUBLISHED: Intrepid pocket Release in component main and section x11

Published on 2008-07-07
Download
xserver-xorg-video-sis_0.10.0.orig.tar.gz (804.1 KiB)
xserver-xorg-video-sis_0.10.0-1build1.diff.gz (64.9 KiB)
xserver-xorg-video-sis_0.10.0-1build1.dsc (1.7 KiB)
Changelog
xserver-xorg-video-sis (1:0.10.0-1build1) intrepid; urgency=low

* Rebuild against the new xserver-xorg-dev.

-- Timo Aaltonen <email address hidden> Mon, 07 Jul 2008 17:52:08 +0300View changesfile
un44444444
帖子: 10
注册时间: 2007-05-14 16:45

#29

帖子 un44444444 » 2008-08-08 14:48

poetbox 发的是UBUNTU官方的sis驱动。
我对比了下源代码,文件相差无几,结构是一样的;
intelsrc可以支持更高的分辨率和多几种型号,xserver-xorg-video-sis应该会更稳定。

推荐使用UBUNTU的sis驱动,下载地址:
8.04 https://launchpad.net/ubuntu/hardy/+sou ... -video-sis
8.10 https://launchpad.net/ubuntu/intrepid/+ ... -video-sis

根据不同平台选择文件,比如UBUNTU8.04,CPU类型为I386,使用这个包
http://launchpadlibrarian.net/10378381/ ... 6_i386.deb

再接下来,就是修改xorg.conf了。
linqingzhou
帖子: 16
注册时间: 2008-08-06 21:31

#30

帖子 linqingzhou » 2008-08-09 21:44

un44444444 写了:poetbox 发的是UBUNTU官方的sis驱动。
我对比了下源代码,文件相差无几,结构是一样的;
intelsrc可以支持更高的分辨率和多几种型号,xserver-xorg-video-sis应该会更稳定。

推荐使用UBUNTU的sis驱动,下载地址:
8.04 https://launchpad.net/ubuntu/hardy/+sou ... -video-sis
8.10 https://launchpad.net/ubuntu/intrepid/+ ... -video-sis

根据不同平台选择文件,比如UBUNTU8.04,CPU类型为I386,使用这个包
http://launchpadlibrarian.net/10378381/ ... 6_i386.deb

再接下来,就是修改xorg.conf了。

我的笔记本是方正R620,与神舟Q550S的显卡相同,为sis mirage 3 graphics。在winxp下查看驱动有sis660、sis741、sis760 字样。在UBUNTU8.04下,我安装了http://launchpadlibrarian.net/10378381/xserver-xorg-video-sis_0.9.3-6_i386.deb,但是上不了1280X800。查看了驱动sis_drv.so好像是2007年的,后来我在英文论坛http://ubuntuforums.org/showthread.php?t=615094&highlight=M671&page=6上另找了驱动,问题解决了!
1、把3个文件拷到drivers下:sudo cp sis_drv.* /usr/lib/xorg/modules/drivers/
2、修改/etc/X11/xorg.conf 文件

Section "Device"
Identifier "Configured Video Device"
Boardname "SiS"
Busid "PCI:1:0:0"
Driver "sis"
Screen 0
Vendorname "SiS"
Option "EnableSiSCtrl" "yes"
Option "XvDefaultAdaptor" "Blitter"
EndSection

保存,注销,登录 ......
注意:不能直接点击出来修改!要用sudo gedit /etc/X11/xorg.conf 修改, 或用 sudo cp xorg.conf /etc/X11/xorg.conf 把当前目录下修改好的xorg.conf( /etc/X11/xorg.conf另存得来) 将/etc/X11/xorg.conf盖了。在修改前最好用sudo dpkg-reconfigure -phigh xserver-xorg备份。


3、如果没有达到1280X800,执行sudo displayconfig-gtk,按名称更改显卡为sis_silicon integrated.....显示屏选择 lcd panel 1280x800 60hz,确定,注销,登录......顺利的话1280X800就能出来了。
附件
sis_vga_150508_ubuntu_8[1].04.tar.bz2
先解压,再复制
(1.02 MiB) 已下载 477 次
回复