検索条件
全4件
(1/1ページ)
$ cat .xsession export LANG="ja_JP.UTF-8"
# pkg install ja-font-ipa
$ pkg search nvidia-driver nvidia-driver-390.87_3 NVidia graphics card binary drivers for hardware OpenGL rendering nvidia-driver-304-304.137_4 NVidia graphics card binary drivers for hardware OpenGL rendering nvidia-driver-340-340.107_4 NVidia graphics card binary drivers for hardware OpenGL renderingこちらの環境は GeForce7050PV/nForce630a なので nvidia-driver-304 をインストールした。
$ cat /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf Section "Device" Identifier "Card0" Driver "nvidia" EndSection又はnvidia-xconfigコマンドをrootで実行すると /etc/X11/xorg.conf が生成される。
# pkg install nvidia-xconfig # nvidia-xconfig
# pkg install kde5 # pkg install sddm # echo "proc /proc procfs rw 0 0" >> /etc/fstab # echo 'dbus_enable="YES"' >> /etc/rc.conf # echo 'hald_enable="YES"' >> /etc/rc.conf # nvidia-xconfig # rebootそれでも、再起動後のログインで画面が真っ黒になる。
$ grep nvidia /var/log/Xorg.0.logどうやらnvidiaドライバを読み込んでいない。
$ cat /var/log/Xorg.0.log | head -64 | tail -41 [ 14.933] (==) --- Start of built-in configuration --- [ 14.933] Section "Device" [ 14.933] Identifier "Builtin Default nv Device 0" [ 14.933] Driver "nv" [ 14.933] EndSection [ 14.933] Section "Screen" [ 14.933] Identifier "Builtin Default nv Screen 0" [ 14.933] Device "Builtin Default nv Device 0" [ 14.933] EndSection [ 14.933] Section "Device" [ 14.933] Identifier "Builtin Default modesetting Device 0" [ 14.933] Driver "modesetting" [ 14.933] EndSection [ 14.933] Section "Screen" [ 14.933] Identifier "Builtin Default modesetting Screen 0" [ 14.933] Device "Builtin Default modesetting Device 0" [ 14.933] EndSection [ 14.933] Section "Device" [ 14.933] Identifier "Builtin Default scfb Device 0" [ 14.933] Driver "scfb" [ 14.933] EndSection [ 14.933] Section "Screen" [ 14.933] Identifier "Builtin Default scfb Screen 0" [ 14.933] Device "Builtin Default scfb Device 0" [ 14.933] EndSection [ 14.933] Section "Device" [ 14.933] Identifier "Builtin Default vesa Device 0" [ 14.933] Driver "vesa" [ 14.933] EndSection [ 14.933] Section "Screen" [ 14.933] Identifier "Builtin Default vesa Screen 0" [ 14.933] Device "Builtin Default vesa Device 0" [ 14.933] EndSection [ 14.933] Section "ServerLayout" [ 14.933] Identifier "Builtin Default Layout" [ 14.933] Screen "Builtin Default nv Screen 0" [ 14.933] Screen "Builtin Default modesetting Screen 0" [ 14.933] Screen "Builtin Default scfb Screen 0" [ 14.933] Screen "Builtin Default vesa Screen 0" [ 14.933] EndSection [ 14.933] (==) --- End of built-in configuration ---nvを読み込もうとして失敗していた。
$ cat /var/log/Xorg.0.log | head -110 | tail -5 [ 18.400] (II) LoadModule: "nv" [ 18.411] (WW) Warning, couldn't open module nv [ 18.411] (II) UnloadModule: "nv" [ 18.411] (II) Unloading nv [ 18.411] (EE) Failed to load module "nv" (module does not exist, 0)
$ cat /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf Section "Device" Identifier "Card0" Driver "nvidia" EndSectionこのファイルは次のコマンドでコンフィグファイルを生成し一部分を抜き出して作った。
$ cat /var/log/Xorg.0.log | head -61 | tail -9 [ 18.937] (II) LoadModule: "nvidia" [ 18.937] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so [ 19.076] (II) Module nvidia: vendor="NVIDIA Corporation" [ 19.076] compiled for 4.0.2, module version = 1.0.0 [ 19.076] Module class: X.Org Video Driver [ 19.086] (II) NVIDIA dlloader X Driver 304.137 Thu Sep 14 13:47:42 PDT 2017 [ 19.086] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 19.086] (--) Using syscons driver with X support (version 2.0) [ 19.086] (--) using VT number 9ログインはできるようなので、ディスプレイマネージャまでは起動している模様。
$ echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsessionこのあたりに現在の状況の原因が有ると予想。