[SOLVED] Nvidia driver not loading; nvidia-dkms-510 not configured

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
James2711
Level 1
Level 1
Posts: 4
Joined: Sat May 14, 2022 7:08 pm
Location: Santos - Brazil
Contact:

[SOLVED] Nvidia driver not loading; nvidia-dkms-510 not configured

Post by James2711 »

Hello guys,
First of all, let me thank all of you kind experts who dedicate some of your time to help the lesser wise linux users. You deserve all the honors.

After installing LM 20.3 Cinnamon on my dell, I found out that the nvidia gpu driver wasn't loading at all, even after installing the proprietary recommended driver. I was using kernel 5.4.0, than after some frustrated attempts and panicking black screens, yesterday I built the kernel 5.13.0 to see if anything changes, just because 13 > 4, and I read somewhere that solved the problem for someone, but still the driver isn't even recognized. I noticed some error messages when installing the driver with command ubuntu-driver install, but of course I don't have a clue what to do to solve it.

After over a week grinding some solutions scattered in this awesome forum, couldn't find any that solved my case, so I thouht perhaps it's some specific detail in my machine that needs fixing. Also, since I work with this computer and one of my attempts inutilized it for a whole working day, I thought maybe it's time to ask for help to someone who actually knows what he/she is doing :D

Could anyone give me a hand on this? Gonna post some info it's usually requested on other similar posts, just in case.

Code: Select all

thiagoand@Toplap:~$ sudo ubuntu-drivers install
[sudo] password for thiagoand:     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-510 (510.60.02-0ubuntu0.20.04.2) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Removing old nvidia-510.60.02 DKMS files...

------------------------------
Deleting module version: 510.60.02
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-510.60.02 DKMS files...
Building for 5.13.0-051300-generic
Building for architecture x86_64
Building initial module for 5.13.0-051300-generic
Error! Bad return status for module build on kernel: 5.13.0-051300-generic (x86_64)
Consult /var/lib/dkms/nvidia/510.60.02/build/make.log for more information.
dpkg: error processing package nvidia-dkms-510 (--configure):
 installed nvidia-dkms-510 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-510:
 nvidia-driver-510 depends on nvidia-dkms-510 (<= 510.60.02-1); however:
  Package nvidia-dkms-510 is not configured yet.
 nvidia-driver-510 depends on nvidia-dkms-510 (>= 510.60.02); however:
  Package nvidia-dkms-510 is not configured yet.

dpkg: error processing package nvidia-driver-510 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.13.0-051300-generic
I: The initramfs will attempt to resume from /dev/nvme0n1p3
I: (UUID=849dafef-f5b9-4415-8fad-81a88a98c377)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
 nvidia-dkms-510
 nvidia-driver-510
E: Sub-process /usr/bin/dpkg returned an error code (1)

Code: Select all

thiagoand@Toplap:~$ xed /var/lib/dkms/nvidia/510.60.02/build/make.log
DKMS make.log for nvidia-510.60.02 for kernel 5.13.0-051300-generic (x86_64)
dom 15 mai 2022 10:46:33 -03
make[1]: Entering directory '/usr/src/linux-headers-5.13.0-051300-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia/510.60.02/build \
single-build= \
need-builtin=1 need-modorder=1
  ln -sf /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-kernel.o_binary /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-kernel.o
  ln -sf /var/lib/dkms/nvidia/510.60.02/build/nvidia-modeset/nv-modeset-kernel.o_binary /var/lib/dkms/nvidia/510.60.02/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: set_pages_array_uc
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: sg_alloc_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 CONFTEST: pde_data
 CONFTEST: PDE_DATA
 CONFTEST: proc_remove
 CONFTEST: pm_vt_switch_required
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: dma_attr_macros
 CONFTEST: dma_map_page_attrs
 CONFTEST: write_cr4
 CONFTEST: of_get_property
 CONFTEST: of_find_node_by_phandle
 CONFTEST: of_node_to_nid
 CONFTEST: pnv_pci_get_npu_dev
 CONFTEST: of_get_ibm_chip_id
 CONFTEST: node_end_pfn
 CONFTEST: pci_bus_address
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_remove_bus_device
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: backlight_device_register
 CONFTEST: get_backlight_device_by_name
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: kernel_read_has_pointer_pos_arg
 CONFTEST: kernel_write
 CONFTEST: kthread_create_on_node
 CONFTEST: of_find_matching_node
 CONFTEST: dev_is_pci
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: tegra_bpmp_send_receive
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: ktime_get_real_ts64
 CONFTEST: full_name_hash
 CONFTEST: hlist_for_each_entry
 CONFTEST: pci_enable_atomic_ops_to_root
 CONFTEST: vga_tryget
 CONFTEST: pgprot_decrypted
 CONFTEST: iterate_fd
 CONFTEST: seq_read_iter
 CONFTEST: sg_page_iter_page
 CONFTEST: unsafe_follow_pfn
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_gem_object_put_unlocked
 CONFTEST: set_close_on_exec
 CONFTEST: add_memory_driver_managed
 CONFTEST: device_property_read_u64
 CONFTEST: devm_of_platform_populate
 CONFTEST: of_dma_configure
 CONFTEST: of_property_count_elems_of_size
 CONFTEST: of_property_read_variable_u8_array
 CONFTEST: i2c_new_client_device
 CONFTEST: i2c_unregister_device
 CONFTEST: of_get_named_gpio
 CONFTEST: devm_gpio_request_one
 CONFTEST: gpio_direction_input
 CONFTEST: gpio_direction_output
 CONFTEST: gpio_get_value
 CONFTEST: gpio_set_value
 CONFTEST: gpio_to_irq
 CONFTEST: icc_get
 CONFTEST: icc_put
 CONFTEST: icc_set_bw
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 CONFTEST: vzalloc
 CONFTEST: wait_on_bit_lock_argument_count
 CONFTEST: bitmap_clear
 CONFTEST: usleep_range
 CONFTEST: radix_tree_empty
 CONFTEST: pnv_npu2_init_context
 CONFTEST: radix_tree_replace_slot
 CONFTEST: cpumask_of_node
 CONFTEST: ioasid_get
 CONFTEST: migrate_vma_setup
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: drm_gem_object_lookup
 CONFTEST: drm_atomic_state_ref_counting
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_atomic_helper_connector_dpms
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_format_num_planes
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: drm_rotation_available
 CONFTEST: drm_vma_offset_exact_lookup_locked
 CONFTEST: nvhost_dma_fence_unpack
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_gpl_sme_active
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present___close_fd
 CONFTEST: is_export_symbol_present_close_fd
 CONFTEST: is_export_symbol_present_get_unused_fd
 CONFTEST: is_export_symbol_present_get_unused_fd_flags
 CONFTEST: is_export_symbol_present_nvhost_get_default_device
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
 CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
 CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
 CONFTEST: is_export_symbol_present_get_dram_num_channels
 CONFTEST: is_export_symbol_present_tegra_dram_types
 CONFTEST: is_export_symbol_present_kthread_create_on_node
 CONFTEST: acpi_op_remove
 CONFTEST: file_operations
 CONFTEST: file_inode
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: backlight_properties_type
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: vmbus_channel_has_ringbuffer_page
 CONFTEST: device_driver_of_match_table
 CONFTEST: device_of_node
 CONFTEST: node_states_n_memory
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: proc_ops
 CONFTEST: timespec64
 CONFTEST: vmalloc_has_pgprot_t_arg
 CONFTEST: acpi_fadt_low_power_s0
 CONFTEST: mm_has_mmap_lock
 CONFTEST: pci_channel_state
 CONFTEST: pci_dev_has_ats_enabled
 CONFTEST: mt_device_gre
 CONFTEST: remove_memory_has_nid_arg
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: vm_fault_t
 CONFTEST: mmu_notifier_ops_invalidate_range
 CONFTEST: migrate_vma_added_flags
 CONFTEST: make_device_exclusive_range
 CONFTEST: drm_bus_present
 CONFTEST: drm_bus_has_bus_type
 CONFTEST: drm_bus_has_get_irq
 CONFTEST: drm_bus_has_get_name
 CONFTEST: drm_driver_has_device_list
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: drm_driver_has_set_busid
 CONFTEST: drm_crtc_state_has_connectors_changed
 CONFTEST: drm_init_function_args
 CONFTEST: drm_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_atomic_helper_plane_destroy_state_has_plane_arg
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: drm_crtc_state_has_async_flip
 CONFTEST: drm_crtc_state_has_pageflip_flags
 CONFTEST: drm_format_modifiers_present
 CONFTEST: drm_vma_node_is_allowed_has_tag_arg
 CONFTEST: drm_vma_offset_node_has_readonly
 CONFTEST: drm_display_mode_has_vrefresh
 CONFTEST: drm_driver_master_set_has_int_return_type
 CONFTEST: drm_driver_has_gem_free_object
 CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg
 CONFTEST: drm_driver_has_gem_prime_callbacks
 CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg
 CONFTEST: drm_gem_object_vmap_has_map_arg
 CONFTEST: drm_plane_atomic_check_has_atomic_state_arg
 CONFTEST: drm_device_has_pdev
 CONFTEST: drm_crtc_state_has_no_vblank
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: pci_class_multimedia_hd_audio
 CONFTEST: drm_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
 CONFTEST: ib_peer_memory_symbols
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-pci.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_pci"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pci.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pci.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-acpi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_acpi"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-acpi.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-acpi.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-cray.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_cray"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-cray.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-cray.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-dma.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_dma"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-dma.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-dma.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-i2c.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_i2c"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-i2c.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-i2c.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-mmap.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_mmap"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-mmap.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-mmap.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-p2p.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_p2p"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-p2p.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-p2p.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-pat.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_pat"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pat.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pat.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-procfs.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_procfs"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-procfs-utils.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_procfs_utils"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs-utils.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs-utils.c
  cc -Wp,-MMD,/var/lib/dkms/nvidia/510.60.02/build/nvidia/.nv-usermap.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fcf-protection=none -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/510.60.02/build/common/inc -I/var/lib/dkms/nvidia/510.60.02/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"510.60.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/510.60.02/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv_usermap"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-usermap.o /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-usermap.c
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs-utils.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs-utils.o'
make[2]: *** Waiting for unfinished jobs....
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-cray.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-cray.o'
/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-dma.c:986: warning: "IMPORT_SGT_STUBS_NEEDED" redefined
  986 | #define IMPORT_SGT_STUBS_NEEDED 0
      | 
/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-dma.c:980: note: this is the location of the previous definition
  980 | #define IMPORT_SGT_STUBS_NEEDED 1
      | 
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-usermap.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-usermap.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pat.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pat.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-i2c.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-i2c.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pci.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-pci.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-mmap.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-mmap.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-dma.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-dma.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-p2p.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-p2p.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-acpi.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-acpi.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv-procfs.o'
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/nvidia/510.60.02/build/nvidia/nv.o] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia/510.60.02/build/nvidia/nv.o'
make[1]: *** [Makefile:1853: /var/lib/dkms/nvidia/510.60.02/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-051300-generic'
make: *** [Makefile:82: modules] Error 2

Code: Select all

thiagoand@Toplap:~$ inxi -Fxxxrz
System:    Kernel: 5.13.0-051300-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: G5 5590 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 0CRKJ6 v: A00 serial: <filter> UEFI: Dell v: 1.16.0 date: 07/29/2021 
Battery:   ID-1: BAT0 charge: 41.5 Wh condition: 41.5/60.0 Wh (69%) volts: 17.0/15.2 model: LGC-LGC3.985 DELL 8622M96 
           type: Li-ion serial: <filter> status: Full 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399 
           Speed: 3956 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 3956 2: 2593 3: 1695 4: 3203 5: 1353 6: 2924 7: 2381 
           8: 1125 9: 1734 10: 1370 11: 1245 12: 802 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Dell driver: N/A bus ID: 01:00.0 chip ID: 10de:2191 
           Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa alternate: nvidia 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a348 
           Device-2: NVIDIA TU116 High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           chip ID: 10de:1aeb 
           Sound Server: ALSA v: k5.13.0-051300-generic 
Network:   Device-1: Realtek vendor: Dell driver: r8169 v: kernel port: 3000 bus ID: 3c:00.0 chip ID: 10ec:2502 
           IF: enp60s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Dell driver: ath10k_pci v: kernel 
           port: 3000 bus ID: 3d:00.0 chip ID: 168c:003e 
           IF: wlp61s0 state: up mac: <filter> 
           Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 1-14:5 chip ID: 0cf3:e007 
           IF-ID-1: docker0 state: down mac: <filter> 
           IF-ID-2: lxcbr0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.03 TiB used: 196.81 GiB (18.7%) 
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC501 NVMe 128GB size: 119.24 GiB speed: 15.8 Gb/s lanes: 2 
           serial: <filter> rev: 80002C00 scheme: GPT 
           ID-2: /dev/sda vendor: Western Digital model: WD10SPZX-75Z10T2 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1A03 temp: 37 C scheme: GPT 
Partition: ID-1: / size: 109.54 GiB used: 25.44 GiB (23.2%) fs: ext4 dev: /dev/nvme0n1p1 
           ID-2: /home size: 931.51 GiB used: 171.37 GiB (18.4%) fs: btrfs dev: /dev/sda1 
           ID-3: swap-1 size: 6.52 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 64.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
           Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-focal.list 
           1: deb http://ppa.launchpad.net/cappelikan/ppa/ubuntu focal main
           2: deb-src http://ppa.launchpad.net/cappelikan/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/insync.list 
           1: deb http://apt.insync.io/mint una non-free contrib
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com una main upstream import backport
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/official-source-repositories.list 
           1: deb-src http://packages.linuxmint.com una main upstream import backport
           2: deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb-src http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http://repository.spotify.com stable non-free
Info:      Processes: 345 Uptime: 14m Memory: 15.32 GiB used: 1.96 GiB (12.8%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.4.0 alt: 8/9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by SMG »

James2711 wrote: Sun May 15, 2022 10:20 amAfter installing LM 20.3 Cinnamon on my dell, I found out that the nvidia gpu driver wasn't loading at all, even after installing the proprietary recommended driver.
Welcome to the forum, James2711

You have a dual-graphics (Intel/Nvidia) laptop. The default install puts the system in Intel-Powersave mode which means the Nvidia driver does not load. It is expected to see N/A in the inxi output when in that mode. Please see this post for an explanation of the difference between the Nvidia driver files being installed and them loading at boot time.

The part in blue is what one expects to see when the system is in Intel-Powersave mode.
Graphics:
Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b
Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Dell driver: N/A bus ID: 01:00.0 chip ID: 10de:2191
Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa alternate: nvidia
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.6 direct render: Yes

The part in red seems to indicate you may have created an xorg.conf file when you should not have done so.

Normally, all one has to do is use Driver Manager to install the recommended Nvidia driver (and reboot) and then change the nvidia-prime-applet to On-Demand or Nvidia-Performance mode and reboot the computer to see the Nvidia driver loaded. Nvidia-prime-applet is explained under the NVIDIA Optimus section in the Linux Mint 20 Cinnamon: New Features. In the graphic in that section the applet is the Intel icon. (It can be either an Intel or Nvidia icon.)

What is the output of cat /etc/X11/xorg.conf? If that file exists, please remove it with sudo rm /etc/X11/xorg.conf.

Do you have Secure Boot enabled on your computer? You can check by running mokutil --sb-state in a terminal. If it is enabled, it will block the Nvidia driver from loading at boot time if you have not created keys for it. I can provide you with instructions for creating keys if you need/want to have Secure Boot enabled.
James2711 wrote: Sun May 15, 2022 10:20 amyesterday I built the kernel 5.13.0 to see if anything changes
What does "I built the kernel" mean? There is no need to be building kernels. One uses the kernels which are in Update Manager. It appears you did not do that. I have no idea what kernel you installed, but recommend you boot into a 5.4 kernel and remove the 5.13 kernel you installed. (Let us know if you need instructions for doing that.)

System: Kernel: 5.13.0-051300-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1
dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal

After doing that, install a 5.13 kernel from Update Manager. I recommend that for 8th-gen Intel and newer CPUs.
  • Open Update Manager.
  • Select View > Linux Kernels and click Continue.
  • Make sure 5.13 is selected on the left panel and then click 5.13.0-41 on the right panel. An "Install" button will appear.
  • Install the kernel and then reboot for it to become active.
Then please open Driver Manager and let us know what driver is showing as installed. There were error messages in your attempt to install from the command line and I'm not sure if that is solely because you do not have the correct kernel installed or if there might be other reasons.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
James2711
Level 1
Level 1
Posts: 4
Joined: Sat May 14, 2022 7:08 pm
Location: Santos - Brazil
Contact:

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by James2711 »

Thank you SMG, the learning curve in this forum is steep!
SMG wrote: Sun May 15, 2022 3:33 pm Please see this post for an explanation of the difference between the Nvidia driver files being installed and them loading at boot time.
That's a great analogy with the car, it's crystal clear now.
SMG wrote: Sun May 15, 2022 3:33 pmWhat is the output of cat /etc/X11/xorg.conf? If that file exists, please remove it with sudo rm /etc/X11/xorg.conf.
I removed xorg.conf with the command you told me. Nonetheless, this is the output of cat /etc/X11/xorg.conf

Code: Select all

thiagoand@Toplap:~$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 470.103.01


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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"
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Coolbits" "12"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
SMG wrote: Sun May 15, 2022 3:33 pm In the graphic in that section the applet is the Intel icon. (It can be either an Intel or Nvidia icon.)
I added that applet (it's showing an Intel icon for me), but when I open it, it's just a blank window.
SMG wrote: Sun May 15, 2022 3:33 pmDo you have Secure Boot enabled on your computer? You can check by running mokutil --sb-state in a terminal. If it is enabled, it will block the Nvidia driver from loading at boot time if you have not created keys for it. I can provide you with instructions for creating keys if you need/want to have Secure Boot enabled.
I disabled Secure Boot earlier in one of my attempts to solve this, and I don't think I'll need it, so I'll just keep it disabled for now.

Code: Select all

thiagoand@Toplap:~$ mokutil --sb-state
SecureBoot disabled
SMG wrote: Sun May 15, 2022 3:33 pmWhat does "I built the kernel" mean?
My apologies, I used the wrong verb, I'm certainly not able to build a Kernel, at most I can build a lego tower, but that's it. I meant 'install', and to do it I used Mainline, but I've just learned from you there is no need for it, as I can manage kernels with the Update Manager. So I followed you instructions, and now I've installed a 5.13.0-41 Kernel.
SMG wrote: Sun May 15, 2022 3:33 pmThen please open Driver Manager and let us know what driver is showing as installed. There were error messages in your attempt to install from the command line and I'm not sure if that is solely because you do not have the correct kernel installed or if there might be other reasons.
I've purged nvidia files with sudo apt-get purge nvidia* then reinstalled the recommended proprietary driver nvidia-driver-510.

Code: Select all

thiagoand@Toplap:~$ inxi -Fxxxrz
System:
  Kernel: 5.13.0-41-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: Dell product: G5 5590 v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Dell model: 0CRKJ6 v: A00 serial: <filter> UEFI: Dell v: 1.16.0 
  date: 07/29/2021 
Battery:
  ID-1: BAT0 charge: 41.5 Wh condition: 41.5/60.0 Wh (69%) volts: 17.0/15.2 
  model: LGC-LGC3.985 DELL 8622M96 type: Li-ion serial: <filter> 
  status: Full 
CPU:
  Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 12.0 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62399 
  Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 806 
  3: 803 4: 822 5: 804 6: 804 7: 1332 8: 800 9: 801 10: 805 11: 812 12: 814 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:3e9b 
  Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: N/A 
  bus ID: 01:00.0 chip ID: 10de:2191 
  Display: x11 server: X.Org 1.20.13 driver: modesetting 
  unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.6 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 chip ID: 8086:a348 
  Device-2: NVIDIA TU116 High Definition Audio driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 chip ID: 10de:1aeb 
  Sound Server: ALSA v: k5.13.0-41-generic 
Network:
  Device-1: Realtek vendor: Dell driver: r8169 v: kernel port: 3000 
  bus ID: 3c:00.0 chip ID: 10ec:2502 
  IF: enp60s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Dell driver: ath10k_pci v: kernel port: 3000 bus ID: 3d:00.0 
  chip ID: 168c:003e 
  IF: wlp61s0 state: down mac: <filter> 
  Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 1-14:5 
  chip ID: 0cf3:e007 
  IF-ID-1: docker0 state: down mac: <filter> 
  IF-ID-2: lxcbr0 state: down mac: <filter> 
Drives:
  Local Storage: total: 1.03 TiB used: 196.57 GiB (18.7%) 
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC501 NVMe 128GB 
  size: 119.24 GiB speed: 15.8 Gb/s lanes: 2 serial: <filter> rev: 80002C00 
  scheme: GPT 
  ID-2: /dev/sda vendor: Western Digital model: WD10SPZX-75Z10T2 
  size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> 
  rev: 1A03 scheme: GPT 
Partition:
  ID-1: / size: 109.54 GiB used: 25.31 GiB (23.1%) fs: ext4 
  dev: /dev/nvme0n1p1 
  ID-2: /home size: 931.51 GiB used: 171.26 GiB (18.4%) fs: btrfs 
  dev: /dev/sda1 
  ID-3: swap-1 size: 6.52 GiB used: 0 KiB (0.0%) fs: swap 
  dev: /dev/nvme0n1p3 
Sensors:
  System Temperatures: cpu: 53.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
  1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-focal.list 
  1: deb http://ppa.launchpad.net/cappelikan/ppa/ubuntu focal main
  2: deb-src http://ppa.launchpad.net/cappelikan/ppa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/insync.list 
  1: deb http://apt.insync.io/mint una non-free contrib
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com una main upstream import backport
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/official-source-repositories.list 
  1: deb-src http://packages.linuxmint.com una main upstream import backport
  2: deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb-src http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/spotify.list 
  1: deb http://repository.spotify.com stable non-free
Info:
  Processes: 354 Uptime: 23m Memory: 15.32 GiB used: 1.94 GiB (12.6%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 8/9 
  Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
I understand now it's okay that it shows N/A about Nvidia driver, but this outputs make me think the driver is not being loaded on boot:

Code: Select all

thiagoand@Toplap:~$ prime-select query
on-demand

Code: Select all

thiagoand@Toplap:~$ 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.
Edit: I've tryied sudo ubuntu-drivers install with no errors now, and it solved the blank nvidia settings gui :D The driver still doesn't load, though

Code: Select all

thiagoand@Toplap:~$ sudo ubuntu-drivers install
[sudo] password for thiagoand:     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Trying to select the on-demand PRIME profile
Info: selecting the on-demand profile
Writing /lib/modprobe.d/nvidia-runtimepm.conf
Updating the initramfs. Please wait for the operation to complete:
Done
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by SMG »

James2711 wrote: Sun May 15, 2022 5:45 pmI removed xorg.conf with the command you told me. Nonetheless, this is the output of cat /etc/X11/xorg.conf
If you take a look at that file, you'll see there is no mention of Intel or i915 in it. That means it does not work properly for a dual-graphics laptop like you have. There are other ways to set Coolbits if you want/need to do that.
James2711 wrote: Sun May 15, 2022 5:45 pmI added that applet (it's showing an Intel icon for me), but when I open it, it's just a blank window.
What did you add? (Some people have mistakenly added a Cinnamon spice with a similar name. That spice applet does not work properly.)

You can install the applet with sudo apt-get install nvidia-prime-applet
James2711 wrote: Sun May 15, 2022 5:45 pmI've purged nvidia files with sudo apt-get purge nvidia* then reinstalled the recommended proprietary driver nvidia-driver-510.
One should not really use that command to remove Nvidia drivers on a dual-graphics laptop. You really just want to remove the specific driver you installed and not everything. That explains why you didn't have the nvidia-prime-applet that should have been on your system.

Linux Mint makes it extremely easy to add Nvidia drivers by using Driver Manager. Driver Manager also shows what driver the system thinks is installed. That is why I asked you to open Driver Manager and let us what it indicates. That will help in the investigation.

Please also provide the output dpkg -l | grep -i nvidia
James2711 wrote: Sun May 15, 2022 5:45 pmI understand now it's okay that it shows N/A about Nvidia driver, but this outputs make me think the driver is not being loaded on boot:

Code: Select all

thiagoand@Toplap:~$ prime-select query
on-demand
You are correct that On-Demand should show the Nvidia driver, but you've been doing quite a few terminal commands instead of using the GUI tools so we will need to investigate further.
James2711 wrote: Sun May 15, 2022 5:45 pmit solved the blank nvidia settings gui
Hopefully, you did not save any changes in that GUI. Saving changes can create an xorg.conf file that might cause problems.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
James2711
Level 1
Level 1
Posts: 4
Joined: Sat May 14, 2022 7:08 pm
Location: Santos - Brazil
Contact:

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by James2711 »

Thanks for the quick reply.
SMG wrote: Sun May 15, 2022 7:09 pmWhat did you add? (Some people have mistakenly added a Cinnamon spice with a similar name. That spice applet does not work properly.)
I added this
nvidia applet.png
SMG wrote: Sun May 15, 2022 7:09 pmOne should not really use that command to remove Nvidia drivers on a dual-graphics laptop. You really just want to remove the specific driver you installed and not everything. That explains why you didn't have the nvidia-prime-applet that should have been on your system.
Living and learning. Never again :D
SMG wrote: Sun May 15, 2022 7:09 pmLinux Mint makes it extremely easy to add Nvidia drivers by using Driver Manager. Driver Manager also shows what driver the system thinks is installed. That is why I asked you to open Driver Manager and let us what it indicates. That will help in the investigation.
Ok, since I don't know how to show you that with terminal, I'm pasting a screenshot of it [which I just recently learned how to do in the forum :D].
nvidia driver.png
SMG wrote: Sun May 15, 2022 7:09 pmPlease also provide the output dpkg -l | grep -i nvidia

Code: Select all

thiagoand@Toplap:~$ dpkg -l | grep -i nvidia
ii  bbswitch-dkms                                 0.8-8ubuntu0.20.04.1                        amd64        Interface for toggling the power on NVIDIA Optimus video cards
ii  bumblebee                                     3.2.1-22                                    amd64        NVIDIA Optimus support for Linux
ii  libaccinj64-10.1:amd64                        10.1.243-3                                  amd64        NVIDIA ACCINJ Library (64-bit)
ii  libcublas10:amd64                             10.1.243-3                                  amd64        NVIDIA cuBLAS Library
ii  libcublaslt10:amd64                           10.1.243-3                                  amd64        NVIDIA cuBLASLt Library
ii  libcudart10.1:amd64                           10.1.243-3                                  amd64        NVIDIA CUDA Runtime Library
ii  libcufft10:amd64                              10.1.243-3                                  amd64        NVIDIA cuFFT Library
ii  libcufftw10:amd64                             10.1.243-3                                  amd64        NVIDIA cuFFTW Library
ii  libcuinj64-10.1:amd64                         10.1.243-3                                  amd64        NVIDIA CUINJ Library (64-bit)
ii  libcupti-dev:amd64                            10.1.243-3                                  amd64        NVIDIA CUDA Profiler Tools Interface development files
ii  libcupti-doc                                  10.1.243-3                                  all          NVIDIA CUDA Profiler Tools Interface documentation
ii  libcupti10.1:amd64                            10.1.243-3                                  amd64        NVIDIA CUDA Profiler Tools Interface runtime library
ii  libcurand10:amd64                             10.1.243-3                                  amd64        NVIDIA cuRAND Library
ii  libcusolver10:amd64                           10.1.243-3                                  amd64        NVIDIA cuSOLVER Library
ii  libcusolvermg10:amd64                         10.1.243-3                                  amd64        NVIDIA cuSOLVERmg Library
ii  libcusparse10:amd64                           10.1.243-3                                  amd64        NVIDIA cuSPARSE Library
ii  libnppc10:amd64                               10.1.243-3                                  amd64        NVIDIA Performance Primitives core runtime library
ii  libnppial10:amd64                             10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Arithmetic and Logic
ii  libnppicc10:amd64                             10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Color Conversion
ii  libnppicom10:amd64                            10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Compression
ii  libnppidei10:amd64                            10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Data Exchange and Initialization
ii  libnppif10:amd64                              10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Filters
ii  libnppig10:amd64                              10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Geometry transforms
ii  libnppim10:amd64                              10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Morphological operations
ii  libnppist10:amd64                             10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Statistics
ii  libnppisu10:amd64                             10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Support
ii  libnppitc10:amd64                             10.1.243-3                                  amd64        NVIDIA Performance Primitives lib for Image Threshold and Compare
ii  libnpps10:amd64                               10.1.243-3                                  amd64        NVIDIA Performance Primitives for signal processing runtime library
ii  libnvgraph10:amd64                            10.1.243-3                                  amd64        NVIDIA Graph Analytics library (nvGRAPH)
ii  libnvidia-cfg1-510:amd64                      510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-510                          510.60.02-0ubuntu0.20.04.2                  all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-470:amd64                   470.103.01-0ubuntu0.20.04.1                 amd64        NVIDIA libcompute package
ii  libnvidia-compute-510:amd64                   510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA libcompute package
ii  libnvidia-compute-510:i386                    510.60.02-0ubuntu0.20.04.2                  i386         NVIDIA libcompute package
ii  libnvidia-decode-510:amd64                    510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-510:i386                     510.60.02-0ubuntu0.20.04.2                  i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-510:amd64                    510.60.02-0ubuntu0.20.04.2                  amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-510:i386                     510.60.02-0ubuntu0.20.04.2                  i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-510:amd64                     510.60.02-0ubuntu0.20.04.2                  amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-510:amd64                      510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-510:i386                       510.60.02-0ubuntu0.20.04.2                  i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-510:amd64                        510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-510:i386                         510.60.02-0ubuntu0.20.04.2                  i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ml-dev                              10.1.243-3                                  amd64        NVIDIA Management Library (NVML) development files
ii  libnvjpeg10:amd64                             10.1.243-3                                  amd64        NVIDIA JPEG library (nvJPEG)
ii  libnvrtc10.1:amd64                            10.1.243-3                                  amd64        CUDA Runtime Compilation (NVIDIA NVRTC Library)
ii  libnvtoolsext1:amd64                          10.1.243-3                                  amd64        NVIDIA Tools Extension Library
ii  libnvtt2:amd64                                2.0.8-1+dfsg-8.2build2                      amd64        NVIDIA Texture Tools
ii  libnvvm3:amd64                                10.1.243-3                                  amd64        NVIDIA NVVM Library
rc  linux-objects-nvidia-470-5.4.0-107-generic    5.4.0-107.121                               amd64        Linux kernel nvidia modules for version 5.4.0-107 (objects)
rc  linux-objects-nvidia-510-5.4.0-109-generic    5.4.0-109.123                               amd64        Linux kernel nvidia modules for version 5.4.0-109 (objects)
ii  linux-objects-nvidia-510-5.4.0-110-generic    5.4.0-110.124                               amd64        Linux kernel nvidia modules for version 5.4.0-110 (objects)
ii  linux-signatures-nvidia-5.4.0-110-generic     5.4.0-110.124                               amd64        Linux kernel signatures for nvidia modules for version 5.4.0-110-generic
ii  nsight-compute                                10.1.243-3                                  amd64        NVIDIA Nsight Compute
ii  nsight-systems                                10.1.243-3                                  amd64        NVIDIA Nsight Systems
ii  nvidia-compute-utils-510                      510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA compute utilities
ii  nvidia-dkms-510                               510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA DKMS package
ii  nvidia-driver-510                             510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-510                      510.60.02-0ubuntu0.20.04.2                  amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-510                      510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA kernel source package
ii  nvidia-prime                                  0.8.16~0.20.04.2                            all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                           1.3.1                                       all          An applet for NVIDIA Prime
ii  nvidia-settings                               470.57.01-0ubuntu0.20.04.3                  amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-510                              510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                       0.18build1                                  all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-510                 510.60.02-0ubuntu0.20.04.2                  amd64        NVIDIA binary Xorg driver
SMG wrote: Sun May 15, 2022 7:09 pmHopefully, you did not save any changes in that GUI. Saving changes can create an xorg.conf file that might cause problems.
Luckily I just saw it was showing things and closed it. Here's another print of what it is, in case it is not what should be (because I saw some other posts showing different options on nvidia settings GUI)
nvidia settings.png
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by SMG »

James2711 wrote: Sun May 15, 2022 7:37 pmI added this
nvidia applet.png
I am not familiar with that applet.

Your package listing indicates you do have the nvidia-prime-applet installed.

Code: Select all

ii  nvidia-prime-applet                     1.3.1                                  all          An applet for NVIDIA Prime
I'm not sure if that is the Intel icon you mentioned in the prior post or not. You will probably find out for sure after you remove Bumblebee. The applet is a Linux Mint file designed specifically for switching. After changing to a different setting, you would need to reboot for the change to take effect.

Your nvidia package output is showing why Nvidia is not loading. You installed the old, outdated Bumblebee technology instead of just using the in-built nvidia-prime-applet code. Bumblebee/bbswitch is known to cause problems on Linux Mint.

Use this command to make sure all of Bumblebee is removed: sudo apt-get purge bumblebee* primus* and then reboot and I would expect the Nvidia driver will now load.

Did you need CUDA? It appears all the CUDA 10.1 files installed. Many people need a newer CUDA version than that which is why I ask.

I do not know how those two Nvidia-470 files got in there, but I do not expect them to cause any problems (especially since one is for the 5.4 kernel).
James2711 wrote: Sun May 15, 2022 7:37 pmLuckily I just saw it was showing things and closed it. Here's another print of what it is, in case it is not what should be (because I saw some other posts showing different options on nvidia settings GUI)
nvidia settings.png
You will eventually be able to see more information than that after we get your system running properly.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
James2711
Level 1
Level 1
Posts: 4
Joined: Sat May 14, 2022 7:08 pm
Location: Santos - Brazil
Contact:

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by James2711 »

SMG wrote: Sun May 15, 2022 8:10 pmI'm not sure if that is the Intel icon you mentioned in the prior post or not. You will probably find out for sure after you remove Bumblebee. The applet is a Linux Mint file designed specifically for switching. After changing to a different setting, you would need to reboot for the change to take effect.
SMG, IT WORKED! :shock: :shock: you remotely solved a problem I'm weeks trying to, I can't emphasize enough how happy I am haha!
As you might've noticed I've been weeks 'working' ('working' as in 'messing entirely with the OS') on a solution for this, and you got it. At first I opened a terminal and entered that command sudo apt-get purge bumblebee* primus* but then all windows got unresponsive, so I pressed ctrl+alt+f1 (a command I learned during this campaign) and tryied it again and then rebooted, and bum, it didn't got stuck with a flashing dash in a black window.

That Intel icon I mentioned does exactly what you said, gives me switching option and the possibility to acces some information about the graphic card, like thermal settings.

That other applet you weren't familiar with showed my an error after removing bumblebee, and since it showed exactly the same GUI as the Intel icon, I removed it too. Here's a print of it:
errorr.png
It's now a working OS with on-demand nvidia GPU Card. nvidia-smi now doesn't show an error output, and inxi -G shows a driver:

Code: Select all

thiagoand@Toplap:~$ inxi -G
Graphics:
  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
  Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: nvidia 
  v: 510.60.02 
  Display: x11 server: X.Org 1.20.13 driver: modesetting,nvidia 
  unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.6 

Code: Select all

thiagoand@Toplap:~$ nvidia-smi
Sun May 15 21:57:30 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.60.02    Driver Version: 510.60.02    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   48C    P8     2W /  N/A |      5MiB /  6144MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1744      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+
SMG wrote: Sun May 15, 2022 8:10 pmDid you need CUDA? It appears all the CUDA 10.1 files installed. Many people need a newer CUDA version than that which is why I ask.
As for CUDA, I really don't think I use it as I had to search on the internet what's that about. I saw it's sort of a development tool, so I really won't use that. I probably installed it in a desperate move late at night. Same for the two Nvidia-470 files, cause when I started trying to solve this I was was running on 5.4 kernel.
SMG wrote: Sun May 15, 2022 8:10 pmYou will eventually be able to see more information than that after we get your system running properly.
Yes, now it's looking more like others I found here in the forum.

You made my night.. nah, my week. Happy comrade here. Hopefully this thread will help others too.
I wish you the best, regards from sweaty Brazil :D :D :lol:
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia driver not loading; nvidia-dkms-510 not configured

Post by SMG »

James2711 wrote: Sun May 15, 2022 9:03 pmSMG, IT WORKED!
Glad to hear that. :)

Please go to your first post in this topic, click the pencil icon, and add [SOLVED] to the beginning of the title so others know you are no longer seeking help on this issue.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Graphics Cards & Monitors”