Unable to change screen resolution after trying to overclock nvidia graphics 1050ti

I was was trying to overclock my nvidia graphics card 1050ti but I was unable to. After restarting my pc my screen resolution is all messed up, all the icons and cursor are really big and i am unable to change the nouveau driver to nvidia driver. Image

I am also unable to change resolution of the screen through settings

-Ubuntu 18.04

-Nvidia 1050ti

-Amd ryzen 1600

How do I update Nvidia display driver on ubuntu 18.04, if I already installed cuda toolkit 10.2 and its bundled display driver?

I installed CUDA toolkit 10.2 on ubuntu 18.04 LTS. I previously did not have any nvidia display drivers, so it came bundled with the 418 version display driver. This seemed to work fine.

I noticed on the NVIDIA site that the latest driver was 430. I want to update my display driver from 418 to 430. How can I do this?

[Downloading the driver directly] (https://www.nvidia.com/Download/index.aspx), and then running the installer, doesn’t work; it gives a complaint that Nvidia is already running with Xorg.

Blank Screen on switching from nvidia to intel with ubuntu 16.04 on ASUS TUF FX504

I have recently installed nvidia-415 (415.27) from PPA.
OS: Ubuntu 16.04
System: ASUS TUF FX504 (gaming)
NVIDIA: Geforce 1050 ti
CPU: intel i5 8th gen

following are the observations:-

  • Nvidia mode works fine as I get output on nvidia-smi
  • On switching to Intel mode using NVIDIA-Xserver setting, I get blank screen just after logout and also after reboot.
  • On changing again to Nvidia mode using tty1 in recovery mode using prime-select nvidia everything works fine.

Nvidia Graphics card not detevted

I just installed linux Mint 19.2 Cinamon and i tried to detect my Nvidia Graphics Card but i can only find my Intel HD Graphics. I Use a Dell Inspiron 5558 which has an Nvidia 920m Graphics Card. I tried many commands on the terminal which i found on other topics but still nothing.

Here is my system information: System: Host: efraim-Inspiron-5558 Kernel: 4.15.0-65-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: Cinnamon 4.2.4 wm: muffin dm: LightDM Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic Machine: Type: Laptop System: Dell product: Inspiron 5558 v: N/A serial: Chassis: type: 9 serial: Mobo: Dell model: 0WMF3P v: A00 serial: UEFI [Legacy]: Dell v: A17 date: 05/14/2019 Battery: ID-1: BAT0 charge: 24.9 Wh condition: 24.9/41.4 Wh (60%) volts: 16.6/14.8 model: Samsung SDI DELL 07G075AA5AA serial: status: Full CPU: Topology: Dual Core model: Intel Core i5-5200U bits: 64 type: MT MCP arch: Broadwell rev: 4 L2 cache: 3072 KiB flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 17558 Speed: 2457 MHz min/max: 500/2700 MHz Core speeds (MHz): 1: 2471 2: 2498 3: 2487 4: 2594 Graphics: Device-1: Intel HD Graphics 5500 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1616 Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa resolution: 1366×768~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2) v: 4.5 Mesa 19.0.8 compat-v: 3.0 direct render: Yes Audio: Device-1: Intel Broadwell-U Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:03.0 chip ID: 8086:160c Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:9ca0 Sound Server: ALSA v: k4.15.0-65-generic Network: Device-1: Intel Wireless 3160 driver: iwlwifi v: kernel port: f040 bus ID: 06:00.0 chip ID: 8086:08b3 IF: wlp6s0 state: up mac: Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 v: 2.3LK-NAPI port: e000 bus ID: 07:00.0 chip ID: 10ec:8136 IF: enp7s0 state: down mac: Drives: Local Storage: total: 931.51 GiB used: 23.17 GiB (2.5%) ID-1: /dev/sda vendor: Western Digital model: WD10JPVX-75JC3T0 size: 931.51 GiB speed: 6.0 Gb/s serial: Partition: ID-1: / size: 915.89 GiB used: 23.17 GiB (2.5%) fs: ext4 dev: /dev/sda1 Sensors: System Temperatures: cpu: 59.0 C mobo: N/A sodimm: 40.0 C Fan Speeds (RPM): cpu: 3500 Repos: No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/chrome.list 1: deb [arch=amd64] http: //dl.google.com/linux/chrome/deb/ stable main Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 1: deb [arch=amd64] http: //dl.google.com/linux/chrome/deb/ stable main Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-bionic.list 1: deb http: //ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb http: //packages.linuxmint.com tina main upstream import backport #id:linuxmint_main 2: deb http: //archive.ubuntu.com/ubuntu bionic main restricted universe multiverse 3: deb http: //archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse 4: deb http: //archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse 5: deb http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 6: deb http: //archive.canonical.com/ubuntu/ bionic partner Info: Processes: 215 Uptime: 1h 32m Memory: 7.70 GiB used: 1.85 GiB (24.0%) Init: systemd v: 237 runlevel: 5 Compilers: gcc: 7.4.0 alt: 7 Client: Unknown python3.6 client inxi: 3.0.32

Installing NVIDIA drivers: Error occurring while Building kernel modules (410.57)

I have an RTX 2080Ti and want to install the latest drivers.

I run these commands:

  • chmod +x NVIDIA-Linux-x86_64–410.57.run
  • sudo ./NVIDIA-Linux-x86_64–410.57.run --no-x-check

And in the installation process I get

An error occurred while performing the step: “Building kernel modules”. See /var/log/nvidia-installer.log for details.

nvidia-installer.log:

nvidia-installer log file ‘/var/log/nvidia-installer.log’ creation time: Sat Oct 5 13:07:16 2019 installer version: 410.57

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line: ./nvidia-installer –no-x-check

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface -> Detected 8 CPUs online; setting concurrency level to 8. -> Installing NVIDIA driver version 410.57. -> Running distribution scripts executing: ‘/usr/lib/nvidia/pre-install’… -> done. -> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Continue installation) -> Performing CC sanity check with CC=”/usr/bin/cc”. -> Kernel source path: ‘/lib/modules/5.0.0-31-generic/build’ -> Kernel output path: ‘/lib/modules/5.0.0-31-generic/build’ -> Performing Compiler check. -> Performing Dom0 check. -> Performing Xen check. -> Performing PREEMPT_RT check. -> Performing vgpu_kvm check. -> Cleaning kernel module build directory. executing: ‘cd ./kernel; /usr/bin/make -k -j8 clean NV_EXCLUDE_KERNEL_MODULES=”” SYSSRC=”/lib/modules/5.0.0-31-generic/build” SYSOUT=”/lib/modules/5.0.0-31-generic/build”‘… rm -f -r conftest make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-31-generic’ make[1]: Leaving directory ‘/usr/src/linux-headers-5.0.0-31-generic’ -> Building kernel modules executing: ‘cd ./kernel; /usr/bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES=”” SYSSRC=”/lib/modules/5.0.0-31-generic/build” SYSOUT=”/lib/modules/5.0.0-31-generic/build”‘… make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-31-generic’ SYMLINK /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: INIT_WORK CONFTEST: remap_pfn_range CONFTEST: hash__remap_4k_pfn CONFTEST: follow_pfn CONFTEST: vmap CONFTEST: set_pages_uc CONFTEST: set_memory_uc CONFTEST: set_memory_array_uc CONFTEST: change_page_attr CONFTEST: pci_get_class CONFTEST: pci_choose_state CONFTEST: vm_insert_page CONFTEST: acpi_device_id CONFTEST: acquire_console_sem CONFTEST: console_lock CONFTEST: kmem_cache_create CONFTEST: on_each_cpu CONFTEST: smp_call_function CONFTEST: acpi_evaluate_integer CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: acpi_walk_namespace CONFTEST: pci_domain_nr CONFTEST: pci_dma_mapping_error CONFTEST: sg_alloc_table CONFTEST: sg_init_table CONFTEST: pci_get_domain_bus_and_slot CONFTEST: get_num_physpages CONFTEST: efi_enabled CONFTEST: proc_create_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: 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: for_each_online_node CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: request_threaded_irq CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: dma_map_resource CONFTEST: backlight_device_register CONFTEST: register_acpi_notifier CONFTEST: timer_setup CONFTEST: pci_enable_msix_range CONFTEST: remap_page_range CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: fatal_signal_pending CONFTEST: list_cut_position CONFTEST: vzalloc CONFTEST: wait_on_bit_lock_argument_count CONFTEST: bitmap_clear CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: pnv_npu2_init_context CONFTEST: drm_dev_unref CONFTEST: drm_reinit_primary_mode_group CONFTEST: drm_atomic_set_mode_for_crtc CONFTEST: drm_atomic_clean_old_fb CONFTEST: get_user_pages_remote CONFTEST: get_user_pages CONFTEST: drm_gem_object_lookup CONFTEST: drm_atomic_state_free CONFTEST: drm_driver_has_gem_prime_res_obj CONFTEST: drm_atomic_helper_disable_all CONFTEST: drm_atomic_helper_set_config CONFTEST: drm_atomic_helper_connector_dpms CONFTEST: drm_connector_funcs_have_mode_in_name CONFTEST: is_export_symbol_gpl_of_node_to_nid CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs CONFTEST: i2c_adapter CONFTEST: pm_message_t CONFTEST: irq_handler_t CONFTEST: acpi_device_ops CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: proc_dir_entry CONFTEST: scatterlist CONFTEST: sg_table CONFTEST: file_operations CONFTEST: vm_operations_struct CONFTEST: atomic_long_type CONFTEST: pci_save_state CONFTEST: file_inode CONFTEST: task_struct CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: dma_map_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_present CONFTEST: vm_fault_has_address CONFTEST: backlight_properties_type CONFTEST: fault_flags CONFTEST: atomic64_type CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_ops_fault_removed_vma_arg 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_legacy_dev_list CONFTEST: drm_driver_has_set_busid CONFTEST: drm_crtc_state_has_connectors_changed CONFTEST: drm_init_function_args CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg CONFTEST: drm_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type CONFTEST: kref_has_refcount_of_type_refcount_t CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg CONFTEST: drm_crtc_helper_funcs_has_atomic_enable CONFTEST: drm_old_atomic_state_iterators_present CONFTEST: drm_mode_object_find_has_file_priv_arg CONFTEST: dma_buf_owner CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: drm_atomic_modeset_nonblocking_commit_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-chrdev.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-gvi.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-mempool.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-mmap.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-p2p.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-usermap.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-mlock.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-pci.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-usermap.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-modeset-interface.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-pci-table.o /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘os_get_current_time’:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:434:5: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘efi_gettimeofday’? [-Werror=implicit-function-declaration] do_gettimeofday(&tm); ^~~~~~~~~~~~~~~ efi_gettimeofday /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: At top level:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1669:5: error: unknown type name ‘ipmi_user_t’ ipmi_user_t p_user; // ptr to ipmi_msghandler user structure ^~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1678:5: error: unknown type name ‘ipmi_user_t’; did you mean ‘pci_power_t’? ipmi_user_t user, ^~~~~~~~~~~ pci_power_t /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘os_ipmi_connect’:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1750:66: error: passing argument 4 of ‘ipmi_create_user’ from incompatible pointer type [-Werror=incompatible-pointer-types] err_no = ipmi_create_user(devIndex, &nv_ipmi_hndlrs, p_priv, &p_priv->p_user); ^ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:111:5: note: expected ‘struct ipmi_user ’ but argument is of type ‘int *’ int ipmi_create_user(unsigned int if_num, ^~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1762:35: warning: passing argument 1 of ‘ipmi_set_gets_events’ makes pointer from integer without a cast [-Wint-conversion] err_no = ipmi_set_gets_events(p_priv->p_user, 0); ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:255:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_set_gets_events(struct ipmi_user *user, bool val); ^~~~~~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1771:14: error: implicit declaration of function ‘nv_ipmi_set_my_address’; did you mean ‘ipmi_set_my_address’? [-Werror=implicit-function-declaration] err_no = nv_ipmi_set_my_address(p_priv->p_user, myAddr); ^~~~~~~~~~~~~~~~~~~~~~ ipmi_set_my_address /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1788:32: warning: comparison between pointer and integer if (p_priv->p_user != NULL) ^~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1790:35: warning: passing argument 1 of ‘ipmi_destroy_user’ makes pointer from integer without a cast [-Wint-conversion] ipmi_destroy_user(p_priv->p_user); ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:124:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_destroy_user(struct ipmi_user *user); ^~~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘os_ipmi_disconnect’:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1811:23: warning: passing argument 1 of ‘ipmi_destroy_user’ makes pointer from integer without a cast [-Wint-conversion] ipmi_destroy_user(p_priv->p_user); ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:124:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_destroy_user(struct ipmi_user *user); ^~~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘_os_ipmi_send_cmd’:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1870:35: warning: passing argument 1 of ‘ipmi_request_settime’ makes pointer from integer without a cast [-Wint-conversion] err_no = ipmi_request_settime(p_priv->p_user, &tx_addr.i_addr, ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:166:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_request_settime(struct ipmi_user *user, ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.c: In function ‘nvswitch_os_snprintf_time’:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.c:1582:5: error: implicit declaration of function ‘time_to_tm’; did you mean ‘time64_to_tm’? [-Werror=implicit-function-declaration] time_to_tm(time_nsec / NVSWITCH_NSEC_PER_SEC, 0, &t); ^~~~~~~~~~ time64_to_tm /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c: In function ‘nvlink_sleep’:
/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c:570:5: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘efi_gettimeofday’? [-Werror=implicit-function-declaration] do_gettimeofday(&tm_aux); ^~~~~~~~~~~~~~~ efi_gettimeofday scripts/Makefile.build:284: recipe for target ‘/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.o’ failed make[2]:
[/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.o] Error 1 cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target ‘/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o’ failed make[2]:
[/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o] Error 1 cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target ‘/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o’ failed make[2]:
[/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o] Error 1 make[2]: Target ‘__build’ not remade because of errors.
Makefile:1608: recipe for target ‘_module_/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel’ failed
make[1]:
[module/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel] Error 2
make[1]: Target ‘modules’ not remade because of errors. make[1]: Leaving directory ‘/usr/src/linux-headers-5.0.0-31-generic’
Makefile:79: recipe for target ‘modules’ failed make: *
[modules] Error 2 -> Error. ERROR: An error occurred while performing the step: “Checking to see whether the nvidia kernel module was successfully built”. See /var/log/nvidia-installer.log for details. -> The command cd ./kernel; /usr/bin/make -k -j8 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.0.0-31-generic/build" SYSOUT="/lib/modules/5.0.0-31-generic/build" failed with the following output:

make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-31-generic’ CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-pci-table.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘os_get_current_time’: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:434:5: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘efi_gettimeofday’? [-Werror=implicit-function-declaration] do_gettimeofday(&tm); ^~~~~~~~~~~~~~~ efi_gettimeofday /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: At top level: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1669:5: error: unknown type name ‘ipmi_user_t’ ipmi_user_t p_user; // ptr to ipmi_msghandler user structure ^~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1678:5: error: unknown type name ‘ipmi_user_t’; did you mean ‘pci_power_t’? ipmi_user_t user, ^~~~~~~~~~~ pci_power_t /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘os_ipmi_connect’: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1750:66: error: passing argument 4 of ‘ipmi_create_user’ from incompatible pointer type [-Werror=incompatible-pointer-types] err_no = ipmi_create_user(devIndex, &nv_ipmi_hndlrs, p_priv, &p_priv->p_user); ^ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:111:5: note: expected ‘struct ipmi_user ’ but argument is of type ‘int *’ int ipmi_create_user(unsigned int
if_num, ^~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1762:35: warning: passing argument 1 of ‘ipmi_set_gets_events’ makes pointer from integer without a cast [-Wint-conversion] err_no = ipmi_set_gets_events(p_priv->p_user, 0); ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:255:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_set_gets_events(struct ipmi_user *user, bool val); ^~~~~~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1771:14: error: implicit declaration of function ‘nv_ipmi_set_my_address’; did you mean ‘ipmi_set_my_address’? [-Werror=implicit-function-declaration] err_no = nv_ipmi_set_my_address(p_priv->p_user, myAddr); ^~~~~~~~~~~~~~~~~~~~~~ ipmi_set_my_address /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1788:32: warning: comparison between pointer and integer if (p_priv->p_user != NULL) ^~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1790:35: warning: passing argument 1 of ‘ipmi_destroy_user’ makes pointer from integer without a cast [-Wint-conversion] ipmi_destroy_user(p_priv->p_user); ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:124:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_destroy_user(struct ipmi_user *user); ^~~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘os_ipmi_disconnect’: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1811:23: warning: passing argument 1 of ‘ipmi_destroy_user’ makes pointer from integer without a cast [-Wint-conversion] ipmi_destroy_user(p_priv->p_user); ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:124:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_destroy_user(struct ipmi_user *user); ^~~~~~~~~~~~~~~~~ /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c: In function ‘_os_ipmi_send_cmd’: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:1870:35: warning: passing argument 1 of ‘ipmi_request_settime’ makes pointer from integer without a cast [-Wint-conversion] err_no = ipmi_request_settime(p_priv->p_user, &tx_addr.i_addr, ^~~~~~ In file included from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:334:0, from /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.c:15: ./include/linux/ipmi.h:166:5: note: expected ‘struct ipmi_user *’ but argument is of type ‘int’ int ipmi_request_settime(struct ipmi_user *user, ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.c: In function ‘nvswitch_os_snprintf_time’: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.c:1582:5: error: implicit declaration of function ‘time_to_tm’; did you mean ‘time64_to_tm’? [-Werror=implicit-function-declaration] time_to_tm(time_nsec / NVSWITCH_NSEC_PER_SEC, 0, &t); ^~~~~~~~~~ time64_to_tm /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c: In function ‘nvlink_sleep’: /tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c:570:5: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘efi_gettimeofday’? [-Werror=implicit-function-declaration] do_gettimeofday(&tm_aux); ^~~~~~~~~~~~~~~ efi_gettimeofday scripts/Makefile.build:284: recipe for target ‘/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.o’ failed make[2]:
[/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-interface.o] Error 1 cc1: some warnings being treated as errors scripts/Makefile.build:284: recipe for target ‘/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o’ failed make[2]: [/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o] Error 1 cc1: some warnings being treated as errors scripts/Makefile.build:284: recipe for target ‘/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o’ failed make[2]: [/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o] Error 1 make[2]: Target ‘__build’ not remade because of errors. Makefile:1608: recipe for target ‘_module_/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel’ failed make[1]: [module/tmp/selfgz8836/NVIDIA-Linux-x86_64-410.57/kernel] Error 2 make[1]: Target ‘modules’ not remade because of errors. make[1]: Leaving directory ‘/usr/src/linux-headers-5.0.0-31-generic’ Makefile:79: recipe for target ‘modules’ failed make: * [modules] Error 2 ERROR: The nvidia kernel module was not created. ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

MSHYBRID / NVIDIA Optimus mode for partitioning GPU work?

I purchased a high-end laptop with an RTX 2070 (not max q) to help run my pytorch models. This laptop comes with a BIOS feature called MSHYBRID (Same as NVIDIA Optimus by another name). I read some posts about MSHYBRID mode. To enable it, I had to add GRUB_GFXPAYLOAD_LINUX=1920*1080 to grub. After that, I now have the option in my NVIDIA Settings to switch between discrete (NVIDIA) and Intel integrated graphics. If I switch from one to the other, it makes me logout and then back in to switch GPUs.

However, it’s my understanding that MSHYBRID/Optimus allows Intel to drive the display and NVIDIA to be used secondarily. This is what I want. I want Intel to drive my display and PyTorch/Tensorflow to be able to use my RTX 2070 for compute purposes. That way, I can train models with no disruption to things like video playback. When I run nvidia-smi with MSHYBRID enabled, it says:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. 

This doesn’t sound like what I want. I continued installing CUDA on this new machine anyway. I run:

import torch torch.cuda.get_device_name(0) 

output: 'GeForce RTX 2070'

So I switch to MSHYBRID mode, logout and back in. Trouble starts:

>>> import torch >>> torch.cuda.is_available() False >>> torch.cuda.device_count() 0 

I’m pretty sure this would work in Windows. Often, this feature is used in order to power the display by Intel while simultaneously rendering via the NVIDIA GPU. I believe in Windows it is software controlled. Am I missing something – some linux project to make it work? Can it work?

Unstable 4 Monitor Daisychain Configuration using Ubuntu 18.04.3 and Nvidia K2200 Card on HP Z840

I am attempting to build a 4-monitor workstation on an HP Z840 with Nvidia K2200 graphics card and using Ubuntu 18.04.3 and was hoping someone may have troubleshooting suggestions.

I installed Ubuntu server, desktop and netboot on this hardware and tried both the Nouveau and nvidia-driver-435 driver. In these different package/driver configurations, all four displays were recognized in the “Displays” program. However, only two or three monitors would show the desktop. The remaining monitors were black, even though I could mouse across all four monitors.

Returning to the workstation after it had been idle, I moved the mouse and all four monitors showed the desktop (prior to this only 2 displays were live). After a reboot, only two monitors showed the desktop. I waited for the workstation to enter idle state again. After moving the mouse, three monitors were live and the fourth no longer appeared in the “Displays” systems setting module. The Xorg.0.log does not show errors.

The 4 monitors are Dell U2415 using display port daisychaining where the first 3 monitors are DP1.2 enabled and the last monitor in this chain is not.

I don’t understand this instability. How can I troubleshoot this?

Problem switching GPUs with prime-select (nvidia and intel)

Im pretty new to Linux and Im triying to get working both my integrated Intel and dedicated Nvidia (1050 Ti) GPUs in my dell XPS 9570, with prime-select program, but Im having troubles.

If I dont touch the xorg.conf generated with nvidia-xconfig:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig:  version 430.50   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     SubSection     "Display"         Depth       24     EndSubSection EndSection 

my intel graphic works great but a I get a black screen with the nvidia one.

If i use this xorg.conf (I took it in nvidia forum):

Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "nvidia"     Inactive       "intel" EndSection  Section "Device"     Identifier     "intel"     Driver     "modesetting"     BusID      "PCI:0@0:2:0"     Option     "AccelMethod" "None" EndSection  Section "Screen"     Identifier     "intel"     Device     "intel" EndSection  Section "Device"     Identifier     "nvidia"     BusID      "PCI:1@0:0:0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation"     Option     "ConstrainCursor" "off" EndSection  Section "Screen"     Identifier     "nvidia"     Device         "nvidia"     Option     "AllowEmptyInitialConfiguration" "on"     Option     "IgnoreDisplayDevices" "CRT" EndSection 

the nvidia gpu works but the intel one get black screen in booting.

Any ideas to fix this? I purge and reinstal nvidia (as usual pipeline) many times, but the error keeps.

Thank you.