opensuse 11.3 将nouvesau 驱动替换为 nvidia

原文地址:http://forums.opensuse.org/english/get-help-here/pre-release-beta/440556-11-3-rc1-nvidia-driver.html

 

Further to this, on this same PC, with openSUSE-11.3 RC1 I now have the proprietary nvidia driver running (see pix):

It was a bit more tricky than normal due to complexities associated with the nouveau driver. The solution is in the 11.3 release notes, but the solution is not something one normally does, and it may take a bit of time/effort to wrap one's head around the activities needed with the work around.

Technical

Initializing Graphics with KMS (Kernel Mode Setting)

With openSUSE 11.3 we are switching to KMS (Kernel Mode Setting) for Intel, ATI and NVIDIA graphics, which now is our default. If you encounter problems with the KMS driver support (intel, radeon, nouveau), disable KMS by adding nomodeset to the kernel boot command line. To set this permanently, add it to the kernel command line in /boot/grub/menu.lst. This option makes sure the appropriate kernel module (intel, radeon, nouveau) is loaded with modeset=0 in initrd, i.e. KMS is disabled.

In the rare cases when loading the DRM module from initrd is a general problem and unrelated to KMS, it is even possible to disable loading of the DRM module in initrd completely. For this set the NO_KMS_IN_INITRD sysconfig variable to yes via YAST, which then recreates initrd afterwards. Reboot your machine.

On Intel without KMS the Xserver falls back to the fbdev driver (the intel driver only supports KMS). On ATI for current GPUs it falls back to radeonhd. On NVIDIA without KMS the nv driver is used (the nouveau driver only supports KMS).

So what I did on 11.3 RC1 to install the proprietary graphic driver was:

  1. reboot and specify in the grub boot line "nomodeset 3" (no quotes), and that boots to run level 3 (with the nomodeset specified - which is necessary so nvidia driver will build) and then login as user oldcpu, and then type 'su' to switch to root
  2. black list the nouveau driver in /etc/modprobe.d/50-blacklist.conf using the vi editor
  3. build the proprietary graphic driver "the hardway" (after first ensuring kernel-source , kernel-syms of same kernel version installed and also base-development pattern installed) with:
    Code:
    sh NVIDIA-Linux-x86-195.36.31-pkg1.run -q
  4. type:
    Code:
    nvidia-xconfig
    to build a custom /etc/X11/xorg.conf (that may not be necessary ... )
  5. run "yast" (no quotes) and go to yast > System > /etc/sysconfig Editor > System > Kernel > NO_KMS_IN_INITRD and change it to "yes".

    .

    .

    It took about 1 minute for that to be applied. THAT WAS NECESSARY (and new to me - but its in the release notes).
  6. reboot and the proprietary driver started.

When trying to figure this out, I also removed the xorg-x11-driver-nouveau rpm, but I do not think that is necessary.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值