LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1083|回复: 9

救命!linux-6629驱动问题

[复制链接]
发表于 2005-1-4 14:44:45 | 显示全部楼层 |阅读模式
我sh那个bin文件后startx能进入xwindows,运行chromium显示正常运行顺畅,说明装好了驱动
可是我一旦重启就进不了图形界面了.....要重装驱动才startx进入图形界面,再重启又进不了了.........
晕死,,我告了两天两夜了,精神快崩溃了,各位大虾救命!!!
附上xorg.conf内容
# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
    # Multiple FontPath entries are allowed (they are concatenated together)
    # By default, Mandrake 6.0 and later now use a font server independent of
    # the X server to render fonts.
    FontPath "unix/:-1"
EndSection

Section "ServerFlags"
    #DontZap # disable <Crtl><Alt><BS> (server abort)
    #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
    AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
EndSection

Section "Module"
    Load "dbe" # Double-Buffering Extension
    Load "v4l" # Video for Linux
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx" # 3D layer
EndSection

Section "InputDevice"
    Identifier "Keyboard1"
    Driver "keyboard"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "en_US"
    Option "XkbOptions" ""
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "rotocol" "ExplorerPS/2"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "lug'n Play"
    HorizSync 30-60
    VertRefresh 56-75
   
    # Sony Vaio C1(X,XS,VE,VN)?
    # 1024x480 @ 85.6 Hz, 48 kHz hsync
    ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494  563 -hsync -vsync
   
    # Dell D800 and few Inspiron (16/10) 1280x800
    ModeLine "1280x800"  147.89  1280 1376 1512 1744  800 801 804 848
   
    # Dell D800 and few Inspiron (16/10) 1680x1050
    ModeLine "1680x1050"  214.51  1680 1800 1984 2288  1050 1051 1054 1103
   
    # Dell D800 and few Inspiron (16/10) 1920x1200
    ModeLine "1920x1200" 230 1920 1936 2096 2528 1200 1201 1204 1250 +HSync +VSync
   
    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
   
    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
EndSection

Section "Device"
    Identifier "device1"
    VendorName "nVidia Corp."
    BoardName "NVIDIA GeForce3 (generic)"
    Driver "nvidia"
    Option "DPMS"
    BusID       "CI:1:0:0"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 24
   
    Subsection "Display"
        Depth 8
        Virtual 1024 768
    EndSubsection
   
    Subsection "Display"
        Depth 15
        Virtual 1024 768
    EndSubsection
   
    Subsection "Display"
        Depth 16
        Virtual 1024 768
    EndSubsection
   
    Subsection "Display"
        Depth 24
        Virtual 1024 768
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"
    Screen "screen1"
EndSection
 楼主| 发表于 2005-1-4 16:24:33 | 显示全部楼层
晕死!等了好久
 楼主| 发表于 2005-1-4 22:36:42 | 显示全部楼层
已经知道问题所在 就是开机时系统不能自己insmod nvidia.ko,虽然开机进不了图形界面,不过可以在字符下用root登入modprob -v nvidia 然后startx就能进入图形界面了.nvidia的驱动正常,opengl也打开了,
运行glxgears
10791 frames in 5.0 seconds = 2158.200 FPS
13895 frames in 5.0 seconds = 2779.000 FPS
13871 frames in 5.0 seconds = 2774.200 FPS
13809 frames in 5.0 seconds = 2761.800 FPS
13672 frames in 5.0 seconds = 2734.400 FPS

可是我不知道怎么修改,一开机就进入不用那么麻烦!
nvidia 的readme 要求/etc/modprobe.conf里面要有"alias char-major-195 nvidia"
我的/etc/modprobe.conf设置内容
# This file is autogenerated from /etc/modules.conf using generate-modprobe.conf command

alias eth0 8139too
alias sound-slot-0 snd-cmipci
install usb-interface /sbin/modprobe uhci-hcd; /bin/true
remove snd-cmipci /sbin/modprobe -r snd-pcm-oss; /sbin/modprobe --first-time -r --ignore-remove snd-cmipci
install snd-cmipci /sbin/modprobe --first-time --ignore-install snd-cmipci && { /sbin/modprobe snd-pcm-oss; /bin/true; }
alias char-major-195 nvidia
好像也对啊!就是不懂为什么就进不会自动进入Xwindows!!!!!
 楼主| 发表于 2005-1-4 22:38:15 | 显示全部楼层
郁闷!
怎么好像在自问自答呢???
大虾们不在吗???
顶一顶
发表于 2005-1-4 22:46:46 | 显示全部楼层
不知mandrake下是否有/etc/modules文件,在里面添加一行nvidia看看开机后是否能自动加载。debian下是这样的。
发表于 2005-1-4 22:57:14 | 显示全部楼层
把下面的一行加入到 /etc/rc.d/rc.local中,来试试看。。

/sbin/modprobe nvidia
 楼主| 发表于 2005-1-4 23:08:28 | 显示全部楼层
怎么加?加在哪?
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

[ -f /etc/sysconfig/system ] && source /etc/sysconfig/system
[ -f /etc/sysconfig/msec ] && source /etc/sysconfig/msec
[ -z "$SECURE_LEVEL" ] && SECURE_LEVEL=3
[ -f /etc/sysconfig/init ] && source /etc/sysconfig/init
if [ $SECURE_LEVEL -lt 4 ]; then
    [ -z "$REWRITEISSUE" ] && REWRITEISSUE=rewrite
    if [ $SECURE_LEVEL -lt 3 ]; then
        [ -z "$REWRITEISSUENET" ] && REWRITEISSUENET=rewrite
    fi
fi

SYSTEM=${SYSTEM=Mandrakelinux}

# Source functions
. /etc/init.d/functions

if [ "$REWRITEISSUE" = "rewrite" -a -f /etc/mandrake-release ]; then
    R=$(cat /etc/mandrake-release)

    arch=$(uname -m)
    a="a"
    case "_$arch" in
            _a*) a="an";;
            _i*) a="an";;
    esac
   
    NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
    if [ "$NUMPROC" -gt "1" ]; then
        SMP="$NUMPROC-processor "
        [ "$NUMPROC" = "2" ] && \
        SMP="Dual-processor "
        if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
            a="an"
        else
            a="a"
        fi
    fi

    # This will overwrite /etc/issue at every boot.  So, make any changes you
    # want to make to /etc/issue here or you will lose them when you reboot.

    if [ -x /usr/bin/linux_logo ]; then
        /usr/bin/linux_logo -n -f | sed -e 's|\\|\\\\|g' > /etc/issue
        echo "" >> /etc/issue
    else
        > /etc/issue
    fi
    echo "$R" >> /etc/issue
    echo "Kernel $(uname -r) on $a $SMP$(uname -m) / \l" >> /etc/issue
   
    if [ "$REWRITEISSUENET" = "rewrite" ]; then
        echo "Welcome to ${HOST}" > /etc/issue.net
        echo "$R" >> /etc/issue.net
        echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue.net
    else
        NAME="$SYSTEM"
        gprintf "Welcome to %s\n" "$NAME" > /etc/issue.net
        echo "-------------------------" >> /etc/issue.net
    fi
else
    if [ -f /etc/security/msec/issue.$SECURE_LEVEL ]; then
        cat /etc/security/msec/issue.$SECURE_LEVEL > /etc/issue
    elif [ -f /etc/security/msec/issue ]; then
        cat /etc/security/msec/issue > /etc/issue
    else
        rm -f /etc/issue
    fi
    if [ -f /etc/security/msec/issue.net.$SECURE_LEVEL ]; then
        cat /etc/security/msec/issue.net.$SECURE_LEVEL > /etc/issue.net
    elif [ -f /etc/security/msec/issue.net ]; then
        cat /etc/security/msec/issue.net > /etc/issue.net
    else
        rm -f /etc/issue.net
    fi
fi

touch /var/lock/subsys/local
 楼主| 发表于 2005-1-4 23:19:56 | 显示全部楼层
Post by 听峰
不知mandrake下是否有/etc/modules文件,在里面添加一行nvidia看看开机后是否能自动加载。debian下是这样的。

mandrake 有这个文件,不过好像2.6内核后起作用的是/etc/modprobe.conf(nvidia的readme好像这样说)
发表于 2005-1-10 21:49:57 | 显示全部楼层
在刚装完驱动之后,不要重起,运行,
cp -a /dev/nvidia* /etc/udev/devices
chown root:root /etc/udev/devices/nvidia*

重起看看,是不是好了?
发表于 2005-1-11 15:43:14 | 显示全部楼层
Post by lzjx
怎么加?加在哪?
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

[ -f /etc/sysconfig/system ] && source /etc/sysconfig/system
[ -f /etc/sysconfig/msec ] && source /etc/sysconfig/msec
[ -z "$SECURE_LEVEL" ] && SECURE_LEVEL=3
[ -f /etc/sysconfig/init ] && source /etc/sysconfig/init
if [ $SECURE_LEVEL -lt 4 ]; then
    [ -z "$REWRITEISSUE" ] && REWRITEISSUE=rewrite
    if [ $SECURE_LEVEL -lt 3 ]; then
        [ -z "$REWRITEISSUENET" ] && REWRITEISSUENET=rewrite
    fi
fi

SYSTEM=${SYSTEM=Mandrakelinux}

# Source functions
. /etc/init.d/functions

if [ "$REWRITEISSUE" = "rewrite" -a -f /etc/mandrake-release ]; then
    R=$(cat /etc/mandrake-release)

    arch=$(uname -m)
    a="a"
    case "_$arch" in
            _a*) a="an";;
            _i*) a="an";;
    esac
   
    NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
    if [ "$NUMPROC" -gt "1" ]; then
        SMP="$NUMPROC-processor "
        [ "$NUMPROC" = "2" ] && \
        SMP="Dual-processor "
        if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
            a="an"
        else
            a="a"
        fi
    fi

    # This will overwrite /etc/issue at every boot.  So, make any changes you
    # want to make to /etc/issue here or you will lose them when you reboot.

    if [ -x /usr/bin/linux_logo ]; then
        /usr/bin/linux_logo -n -f | sed -e 's|\\|\\\\|g' > /etc/issue
        echo "" >> /etc/issue
    else
        > /etc/issue
    fi
    echo "$R" >> /etc/issue
    echo "Kernel $(uname -r) on $a $SMP$(uname -m) / \l" >> /etc/issue
   
    if [ "$REWRITEISSUENET" = "rewrite" ]; then
        echo "Welcome to ${HOST}" > /etc/issue.net
        echo "$R" >> /etc/issue.net
        echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue.net
    else
        NAME="$SYSTEM"
        gprintf "Welcome to %s\n" "$NAME" > /etc/issue.net
        echo "-------------------------" >> /etc/issue.net
    fi
else
    if [ -f /etc/security/msec/issue.$SECURE_LEVEL ]; then
        cat /etc/security/msec/issue.$SECURE_LEVEL > /etc/issue
    elif [ -f /etc/security/msec/issue ]; then
        cat /etc/security/msec/issue > /etc/issue
    else
        rm -f /etc/issue
    fi
    if [ -f /etc/security/msec/issue.net.$SECURE_LEVEL ]; then
        cat /etc/security/msec/issue.net.$SECURE_LEVEL > /etc/issue.net
    elif [ -f /etc/security/msec/issue.net ]; then
        cat /etc/security/msec/issue.net > /etc/issue.net
    else
        rm -f /etc/issue.net
    fi
fi

touch /var/lock/subsys/local

在最后一行下面加上modprobe nvidia就行了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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