최근 Ubuntu 18.04를 설치하고 NVIDIA 드라이버를 설치했는데 로드되지 않는 것 같습니다.
다음과 같이 올바르게 부팅하려면 grub 파일을 다음과 같이 편집해야 했습니다.이 작은 가이드.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 tpm_tis.interrupts=0 acpi_osi=Linux i915.preliminary_hw_support=1 idle=nomwait"
현재 내 명령 출력은 다음과 같습니다.
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Error querying enabled displays on GPU 0 (Missing Extension)
$ name -r
4.15.0-38-generic
$ lshw -c display
WARNING: you should run this program as super-user.
*-display UNCLAIMED
description: VGA compatible controller
product: GP102 [GeForce GTX 1080 Ti]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:0a:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller cap_list
configuration: latency=0
resources: memory:f4000000-f4ffffff memory:60000000-6fffffff memory:70000000-71ffffff ioport:a000(size=128) memory:f5000000-f507ffff
*-display UNCLAIMED
description: VGA compatible controller
product: GP102 [GeForce GTX 1080 Ti]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:09:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller cap_list
configuration: latency=0
resources: memory:f6000000-f6ffffff memory:80000000-8fffffff memory:90000000-91ffffff ioport:b000(size=128) memory:f7000000-f707ffff
*-display UNCLAIMED
description: VGA compatible controller
product: GP102 [GeForce GTX 1080 Ti]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:06:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller cap_list
configuration: latency=0
resources: memory:f8000000-f8ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:c000(size=128) memory:f9000000-f907ffff
*-display UNCLAIMED
description: VGA compatible controller
product: GP102 [GeForce GTX 1080 Ti]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:05:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list
configuration: latency=0
resources: memory:fa000000-faffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:d000(size=128) memory:c0000-dffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
$ lspci | grep -i nvidia
05:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
05:00.1 Audio device: NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
06:00.1 Audio device: NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
09:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
09:00.1 Audio device: NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
0a:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
0a:00.1 Audio device: NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
$ lsmod
Module Size Used by
snd_hda_codec_hdmi 49152 4
nls_iso8859_1 16384 1
input_leds 16384 0
intel_rapl 20480 0
eeepc_wmi 16384 0
asus_wmi 28672 1 eeepc_wmi
sparse_keymap 16384 1 asus_wmi
video 45056 1 asus_wmi
mxm_wmi 16384 0
wmi_bmof 16384 0
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
intel_wmi_thunderbolt 16384 0
coretemp 16384 0
snd_hda_codec_realtek 106496 1
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
kvm 598016 0
irqbypass 16384 1 kvm
snd_seq_midi 16384 0
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_hda_intel 40960 7
ghash_clmulni_intel 16384 0
pcbc 16384 0
snd_rawmidi 32768 1 snd_seq_midi
snd_hda_codec 126976 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 81920 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 98304 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_seq 65536 2 snd_seq_midi,snd_seq_midi_event
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
aesni_intel 188416 0
snd_timer 32768 2 snd_seq,snd_pcm
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
glue_helper 16384 1 aesni_intel
snd 81920 25 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
mei_me 40960 0
lpc_ich 24576 0
intel_cstate 20480 0
soundcore 16384 1 snd
intel_rapl_perf 16384 0
shpchp 36864 0
mei 90112 1 mei_me
joydev 24576 0
wmi 24576 4 intel_wmi_thunderbolt,asus_wmi,wmi_bmof,mxm_wmi
mac_hid 16384 0
sch_fq_codel 20480 6
parport_pc 36864 0
ppdev 20480 0
lp 20480 0
parport 49152 3 parport_pc,lp,ppdev
ip_tables 28672 0
x_tables 40960 1 ip_tables
autofs4 40960 2
hid_generic 16384 0
usbhid 49152 0
hid 118784 2 usbhid,hid_generic
drm_kms_helper 172032 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
igb 212992 0
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
e1000e 249856 0
dca 16384 1 igb
drm 401408 1 drm_kms_helper
i2c_algo_bit 16384 1 igb
ahci 36864 2
ptp 20480 2 igb,e1000e
pps_core 20480 1 ptp
libahci 32768 1 ahci
ipmi_devintf 20480 0
ipmi_msghandler 53248 1 ipmi_devintf
sudo ubuntu-drivers autoinstall
저는 아래와 같이 드라이버를 설치했습니다.이 가이드
편집: 다음은 추가 명령 출력입니다.
$ dpkg --get-selections | grep nvidia-driver-
nvidia-driver-390 install
$ lsmod | grep nvidia
<blank>
$ ls /lib/modules/*/updates/dkms/nvidia.ko
/lib/modules/4.15.0-38-generic/updates/dkms/nvidia.ko
답변1
최근에 같은 문제가 발생했습니다. 이를 작동시키기 위해 내가 한 일은 다음과 같습니다.
- 시냅틱을 통해 모든 nvidia 패키지를 제거했습니다(아마도 충분할 것입니다
sudo apt purge nvidia*
) - 컴퓨터를 다시 시작하세요
- nvidia-drivers-396 설치(귀하의 경우 nvidia-driver-390)
- 컴퓨터를 다시 시작하세요
- 구현하다:
sudo prime-select nvidia
sudo prime-select intel
sudo prime-select nvidia
- 로그아웃하면(다시 시작해도 동일한 작업이 수행됨) 작동합니다.