无法安装用于Optimus / Bumblebee配置的NVIDIA图形驱动程序

我按照以下步骤在我的全新笔记本电脑上(基于msi准系统MS-16GC)在Fedora 20上运行Optimus / Bumblebee配置(新鲜的基本安装)。

我已列出所有步骤,与此链接非常相​​似

最终的结果是x不能启动,我可以启动到终端。 我觉得我陷入了最后一步,请帮助:

这些是我采取的步骤

1)我的BIOS不支持打开/关闭nvidia卡2)Fedora 20从live cd - kernel / software安装完毕 - 安装了kernel-devel和kernel-headers,以及gcc-c ++和lshw。 NVIDIA显示驱动程序版本331.20已下载,但尚未安装。 3)后续当前内核:3.11.10-301.fc20.x86_64 4)lspci提供了两个设备intrest

00:02.0 VGA兼容控制器:英特尔公司第四代核心处理器集成图形控制器(06版)01:00.0 3D控制器:NVIDIA公司GK106M [GeForce GTX 765M](rev a1)

lshw显示NVIDIA卡使用nouveau

 *-display

        description: 3D controller
        product: GK106M [GeForce GTX 765M]
        vendor: NVIDIA Corporation
        physical id: 0
        bus info: pci@0000:01:00.0
        version: a1
        width: 64 bits
        clock: 33MHz
        capabilities: bus_master cap_list rom
        configuration: driver=nouveau latency=0
        resources: irq:16 memory:f6000000-f6ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:f7000000-f707ffff

*-display
     description: VGA compatible controller
     product: 4th Gen Core Processor Integrated Graphics Controller
     vendor: Intel Corporation
     physical id: 2
     bus info: pci@0000:00:02.0
     version: 06
     width: 64 bits
     clock: 33MHz
     capabilities: vga_controller bus_master cap_list rom
     configuration: driver=i915 latency=0
     resources: irq:43 memory:f7400000-f77fffff memory:b0000000-bfffffff ioport:f000(size=64)

在准备驱动程序NVIDIA驱动程序安装

5)blacklist nouveau,通过在/etc/modprobe.d/中创建一个文件blacklist.conf与黑名单nouveau

重启

mv / boot / initramfs - $(uname -r).img / boot / initramfs - $(uname -r)-nouveau.img dracut / boot / initramfs - $(uname -r).img $(uname -r)

重启

在/ etc / default / grub中,我将rdblacklist = nouveau添加到GRUB_CMDLINE_LINUX,然后是grub2-mkconfig> /boot/grub2/grub.cfg命令

重新启动电脑(只是为了确保)

lshw现在输出以下内容 - 没有禁用nouveau的迹象 - 设备是UNCLAIMED。

 *-display UNCLAIMED
                description: 3D controller
                product: GK106M [GeForce GTX 765M]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: latency=0
                resources: memory:f6000000-f6ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:f7000000-f707ffff
 *-display
             description: VGA compatible controller
             product: 4th Gen Core Processor Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 06
             width: 64 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:43 memory:f7400000-f77fffff memory:b0000000-bfffffff ioport:f000(size=64)

6)接下来,我在我的主目录中创建一个名为.xinitrc的文件,其中包含以下行

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec gnome-session

7)然后我在/ etc / X11中创建一个名为xorg.conf2的文件,其中包含以下数据

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "intel"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Option "ConstrainCursor" "no"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
#Comment to output using hdmi cable  
 Option "UseDisplayDevice" "none"
EndSection

8)安装驱动程序的时间

/ *我卡在这里* /

键入chmod + x NVIDIA *然后./NVIDIA*

接下来我将xorg.conf2移至xorg.conf

这安装很好,但我得到的只是一个黑屏,当我从命令行输入startx时也是如此。

链接地址: http://www.djcxy.com/p/38505.html

上一篇: Can't install NVIDIA graphics driver for Optimus/Bumblebee configuration

下一篇: Can't run my own OpenGL 3 programs on Ubuntu