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

时间:2013-12-12 21:04:59

标签: linux nvidia optimus

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

我列出了所有步骤,与this link

非常相似

最终结果是x无法启动,我可以启动到终端。我觉得自己最后一步陷入困境,请帮忙:

这些是我采取的步骤

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

00:02.0 VGA兼容控制器:英特尔公司第四代核心处理器集成图形控制器(rev 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)黑名单nouveau,在/etc/modprobe.d/中使用黑名单nouveau

创建一个文件blacklist.conf

重新启动

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的迹象 - 设备未经授权。

 *-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时,我得到的只是一个黑屏。

0 个答案:

没有答案