QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 737|回复: 2

在2.6.5-rcXXX下配置带TV输出的N卡

[复制链接]
发表于 2004-4-3 13:24:42 | 显示全部楼层 |阅读模式
环境:

gentoo.2004.0
kernel-2.6.5-rc3-mm4
NVIDIA-Linux-x86-1.0-5336

如果你还在用XFree86的nv驱动,那么你将享受不到N卡的大部分好处,低桢,没有opengl支持....

内核:

由于最新的内核有一个优化内核堆栈的参数,默认是打开的,而Nvdia方面目前的驱动不支持这个参数。

假设你的kernel源码在/usr/src/linux

找到

[code:1]
/usr/src/linux/arch/i386/arch/i386/Kconfig
[/code:1]



打开寻找如下段

[code:1]
config 4KSTACKS        def_bool y
[/code:1]



把y改成n,然后重新配置内核(略)

如果不按上面的步骤,即使你手工修改配置完毕的.config配置文件,在make的时候,还是会用默认致打开这个选项。

其他内核相关选项

内核中的关于framebuffer设定要注意,如果你要做bootsplash,只选择VESA,而不要选择Nvidia Riva,作为模块和编译内核都不可以。

去掉关于Character Device中drm设定部分,因为配置好glx之后,这个就不需要,而且放在内核里可能有冲突。

Nvidia Linux Driver:

最新的是5336,在这一版才真正支持2.6内核,和我一样用gentoo的兄弟不要emerge nvidia-kernel,因为目前的ebuild有问题,从官方下载NVIDIA-Linux-x86-1.0-5336-pkg1.run来安装。新的安装程序已经很好用了,其实也没什么必要非要用emerge来装了。

按提示一步一步Next(windows习气)基本上会先尝试安装预编译版本,如果没有会自动连Nvidia的Ftp,自动下载,自动编译。

完成之后,记得把模块加到启动里
gentoo环境里
修改

[code:1]
/etc/modules.autoload.d/kernel-2.6
[/code:1]



另起一行添加
nvidia 字样到文件中就可以了

OK,重启,没有意外的话你的内核和N卡驱动程序应该相安无事了。
 楼主| 发表于 2004-4-3 13:26:01 | 显示全部楼层
正确配置XF86Config,这个是关键。黑屏的情况出了内核配置不当外,绝大部分是XF86Config写得不够正确。

我的配置是两个独立xfree86桌面,可以在显示器上工作,TV上看电影...

Nvidia的Linux驱动程序带了TwinView,但是似乎没有windows下的那种双屏独立模式,所以我没用使用TwinView。

下面是和N卡有关的XFConfig部分

[code:1]
Section "Monitor"
    Identifier  "CRT"
    HorizSync   30-70
    VertRefresh 50-100
EndSection

#####  ADDED by allblue #####
Section "Monitor"
     Identifier  "TV"
     HorizSync   30-50
     VertRefresh 60
EndSection
##########################

Section "Device"
    Identifier  "Ti4200"
    Driver      "nvidia"
##### ADDED by allblue ######
     BusID       "PCI:1:0:0"
     Screen      0
     Option "NoLogo" "1"
###########################     
    VideoRam    131072
    # Insert Clocks lines here if appropriate
EndSection


###### ADDED by allblue######
Section "Device"
     Identifier  "TVDevice"
     Driver      "nvidia"
     BusID       "PCI:1:0:0"
     Screen      1
     Option  "SecondMonitorHorizSync"  "30-50"
     Option  "SecondMonitorVertRefresh" "60"
     Option  "TVStandard"  "PAL-D"
     Option "TVOutFormat" "COMPOSITE"      
EndSection
############################

Section "Screen"
    Identifier  "Screen 0"
    Device      "Ti4200"
    Monitor     "CRT"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

###### ADDED by allblue######
Section "Screen"
     Identifier  "Screen 1"
     Device      "TVDevice"
     Monitor     "TV"
     DefaultDepth 24

     Subsection "Display"
         Depth       24
         Modes       "1024x768"
     EndSubsection
EndSection
############################

Section "ServerLayout"

    Identifier  "Simple Layout"
    Screen      0 "Screen 0"
    Screen      1 "Screen 1" RightOf "Screen 0"

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection
[/code:1]
回复

使用道具 举报

 楼主| 发表于 2004-4-3 13:28:08 | 显示全部楼层
TV部分请参考NV的README和你的电视实际参数再改改
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 12:24 , Processed in 0.043943 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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