Debian Jessieにnvidia専用ドライバを使用させる方法は?

Debian Jessieにnvidia専用ドライバを使用させる方法は?

私は以下の指示に従いました。Debian Wikiバックポート経由でDebian Jessieにnvidia独自のグラフィックドライバをインストールします。残念ながら、最善の努力にもかかわらず、Xサーバーは新しいドライバを使用しません。

カーネルモジュールが正しく構築されインストールされています。

$ sudo lsmod | grep nvidia
nvidia               8487526  0 
drm                   249955  5 i915,drm_kms_helper,nvidia
i2c_core               46012  12 drm,i915,i2c_i801,snd_soc_rt5640,i2c_hid,i2c_designware_platform,regmap_i2c,drm_kms_helper,i2c_algo_bit,nvidia,v4l2_common,videodev

xorg.confファイルがない場合、Xは正常に動作しますが、nvidiaドライバを使用しません。nvidia-settingsレポートには「NVIDIA Xドライバを使用していないようです」と記載されています。

Xorg.log.0:http://pastebin.com/3Anr3FWU(こうして表現するのが正しいですか? そうしたらいいです)

次のxorg.confを使用してください。

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 340.46  (buildd@brahms)  Tue Oct  7 08:00:32 UTC 2014

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

(wikiで予想より低いバージョンの352.79 vs 340.46を参照していますが、おそらく何もありません。)そしてXサーバーはまったく起動しません(点滅カーソルと一緒に黒い画面が表示されますが、tty1-6は使用されます可能)。 「デバイス」セクションを除くすべてのアイテムを削除しても、結果は同じです。

Xorg.log.0:http://pastebin.com/cYLSYiUV

これは、nvidia 940M専用グラフィックカード(およびIntelオンボードgfx)を搭載したMSIノートブックです。

$ lspci | egrep -i "vga|nvidia"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation Device 1347 (rev a2)

だから:Xを起動してnvidiaドライバを使用するにはどうすればよいですか?

ベストアンサー1

動作しているようです! @casに感謝します(質問のコメントを参照)。 Bumblebeeをインストールしました(ここでnvidiaドライバと依存関係をインストールしたためバックポートされました)。ウィキペディア):

$ sudo aptitude install -t jessie-backports bumblebee bumblebee-nvidia

そして再起動して、すべてが正常に動作することを確認してください(Xサーバーを再起動する必要さえないかもしれませんが、幸いです)。ちなみに、まだNVIDIAドライバをインストールしていない場合は、このドライバもインストールされると思いますか?しかし、まだテストしていません。代わりに新しいスタイルを披露することができます。実行中にどこにも「nvidia」が表示されない場合、primusrun glxinfoこれが発生する可能性があります。おそらくWikiに沿ってDebianをインストールするとうまくいくでしょう(確実にするには再起動する必要があります。新しいカーネルモジュールをインストールします)。

その後、使用glxinfoしてglxgearsテストします。

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:

glxinfoをベア実行すると、統合インテルグラフィックスカードが使用されることに注意してください(メサはソフトウェアOpenGLを意味していたようですが、今はそれが何を意味するのかわかりませんが、明らかに別のカードを使用していないようです)。

$ primusrun glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 940M/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 352.79
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.79
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:

成功!

おすすめ記事