歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 我的SiS315顯卡驅動方法

我的SiS315顯卡驅動方法

日期:2017/2/27 9:21:54   编辑:更多Linux
  本文論討在: [url]http://www.Linuxsir.com/bbs/showthread.PHP?s=&threadid=5461[/url] 如果你找不到合適的顯卡驅動程序,可以嘗試用Frame buffer驅動顯卡. 我的系統配置: 顯卡:Sis315(Sis740主板集成) Linux:Debian Woody3.0r0 Xfree86:4.0 Kernel:2.2.20(或2.4.18) 原理上,只要是2.2.x以上版本的內核,就可以用Frame buffer. 要使用Frame buffer,顯卡必須支持vesa 2.0標准,只要不是老古董的顯卡,一般都支持這個標准.使用Frame buffer分四個步驟: 1.建立一個支持Frame buffer的內核 2.建立Frame buffer設備 3.配置lilo 4.設置Xfree86 1.編譯內核 取得內核的源代碼,解壓到/usr/src/linux目錄,'make menUConfig'就進入內核參數的設置畫面. 這裡只介紹與Frame buffer有關的選項. character device -> <*>/dev/agpgart 支持AGP標准 ... [*]Generic SiS support 我的顯卡是SiS的,所以選這一項 ... [*]Direct Rendering Manager (XFree86 DRI support) ... <*> SiS SiS支持,不知道不選有沒有關系,我一直選上 Console drivers -> [*] VGA text console [*] Video mode selection support Frame-buffer support ---> [*] Support for frame buffer devices (EXPERIMENTAL) 這個一定要 ... [*] VESA VGA graphics console 必選 ... <*> SIS acceleration (EXPERIMENTAL) 這一項根據自己的顯卡選 ... [*] SIS 315H/315 support <*> Virtual Frame Buffer support (ONLY FOR TESTING!) 可能不用選,沒試 [*] Advanced low level driver options 選上這一項後,下面多出很多,用缺省的就行 make bzImage   make modules   make modules_install   把編譯好的內核拷到 /boot目錄,文件名可自定,如    cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.5-fb 2.建立 frame buffer設備   frame buffer設備的 major為 29,minor 為 0(fb0),32(fb1). . . 224(fb7)?   創建fb設備 # mknod /dev/fb0 c 29 0   ....   3.配置 lilo 的啟動選項,主要是vga一項   下面是典型的lilo.conf文件(位於/etc目錄)   boot = /dev/hda2   timeout = 500   prompt   read-only   image = /boot/vmlinuz-2.2.x   label = linux   root = /dev/hda2   other = /dev/hda1   label = dos   添加一新配置需添加 image,label,root及配合VESA frame buffer的 vga等四項: image = /boot/vmlinuz-2.2.5-fb (新編譯的內核)   label = linuxfb (啟動標號,可自定)    root = /dev/hda2 (著一句具體會有不同,照你自己的lilo.conf)    vga = 0x314 (顯示模式,參照下表)    other = /dev/hda1    label = dos    Linux_kernel_mode_number = VESA_mode_number + 0x200    640x480 800x600 1024x768 1280x1024    256 0x301 0x303 0x305 0x307


   32k 0x310 0x313 0x316 0x319    64k 0x311 0x314 0x317 0x31A    16M 0x312 0x315 0x318 0x31B 我用的vga=788,相當於800*600*16,色彩深度16足夠了,華麗,速度也可以. 重新起動,選新內核,應該有小企鵝的logo出現 4.設置Xfree86 主要是設置用vesa驅動,並配置相應的Screen 重新設置xserver-xfree86,Debian裡用命令dpkg-reconfigure xserver-xfree86 驅動程序選vesa,色彩深度選16(跟前面lilo裡的色彩深度一致,否則起動不了) /etc/X11/XF86Config-4應該像這樣 Device部分 Section "Device" Identifier "Generic Video Card" Driver "vesa" 用vesa驅動 Option "UseFBDev" "true" EndSection Screen部分 Section "Screen" Identifier "Default Screen" Device "Generic Video Card" Monitor "Generic Monitor" DefaultDepth 16 這是關鍵,前面選的色彩深度是16,這裡也必須是16 ... SubSection "Display" 這是對應的Screen部分 Depth 16 Modes "1024x768" "800x600" "640x480" EndSubSection ... EndSection 現在試試startx,應該就可以了.至少能看到圖形界面. 不少是抄的,我用的Debian Woody一開始就自動用vesa驅動我的顯卡, 只要稍作改動就能用X了.(Frame buffer設備我就不用建)上面有很多是我在Debian potato上用vesa 的方法.現在SiS315好像只能這樣驅動(尤其是集成的) 太長了,難免有錯,要是用的話,手邊最好有張救援盤.good luck,everyone



Copyright © Linux教程網 All Rights Reserved