System not using Nvidia Graphics card despite driver being installed

My laptop has GP108M [GeForce MX150] card. It is on dual boot with windows 10 and ubuntu 19.04. The problem is in ubuntu where despite the driver installed, the system is not using the graphics card. Running “nvidia-settings” gives the following output.

ERROR: Unable to load info from any available system


(nvidia-settings:5808): GLib-GObject-CRITICAL **: 18:33:32.098: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 18:33:32.103: PRIME: Requires offloading
** Message: 18:33:32.103: PRIME: is it supported? yes

and opens windows where i can only select which card to use.

The nvidia-bug-report.log.gz has the following content

____________________________________________

Start of NVIDIA bug report log file.  Please include this file, along
with a detailed description of your problem, when reporting a graphics
driver bug via the NVIDIA Linux forum (see devtalk.nvidia.com)
or by sending email to 'linux-bugs@nvidia.com'.

nvidia-bug-report.sh Version: 26499344

Date: Mon Jun 17 14:03:58 IST 2019
uname: Linux kunal-X510UNR 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
command line flags: 

____________________________________________

*** /etc/issue
*** ls: -rw-r--r-- 1 root root 20 2019-04-16 13:06:43.000000000 +0530 /etc/issue
Ubuntu 19.04 \n \l


____________________________________________

*** /etc/debian_version
*** ls: -rw-r--r-- 1 root root 11 2018-08-07 04:05:13.000000000 +0530 /etc/debian_version
buster/sid

____________________________________________

*** /var/log/nvidia-installer.log does not exist

____________________________________________

*** /var/lib/dkms/nvidia/430.26/5.0.0-15-generic/x86_64/log/make.log
*** ls: -rw-r--r-- 1 root root 404923 2019-06-17 13:35:37.390494052 +0530 /var/lib/dkms/nvidia/430.26/5.0.0-15-generic/x86_64/log/make.log
DKMS make.log for nvidia-430.26 for kernel 5.0.0-15-generic (x86_64)
Mon Jun 17 13:35:05 IST 2019
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-15-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)
mkdir -p /var/lib/dkms/nvidia/430.26/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia/430.26/build/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia/430.26/build
  ln -sf /var/lib/dkms/nvidia/430.26/build/nvidia/nv-kernel.o_binary /var/lib/dkms/nvidia/430.26/build/nvidia/nv-kernel.o
  ln -sf /var/lib/dkms/nvidia/430.26/build/nvidia-modeset/nv-modeset-kernel.o_binary /var/lib/dkms/nvidia/430.26/build/nvidia-modeset/nv-modeset-kernel.o
(cat /dev/null;   echo kernel//var/lib/dkms/nvidia/430.26/build/nvidia.ko;   echo kernel//var/lib/dkms/nvidia/430.26/build/nvidia-uvm.ko;   echo kernel//var/lib/dkms/nvidia/430.26/build/nvidia-modeset.ko;   echo kernel//var/lib/dkms/nvidia/430.26/build/nvidia-drm.ko;) > /var/lib/dkms/nvidia/430.26/build/modules.order
 CONFTEST: INIT_WORK
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_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: 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: 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: do_gettimeofday
 CONFTEST: kernel_read
 CONFTEST: kernel_write
 CONFTEST: dma_direct_map_resource
 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: 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: vmf_insert_pfn
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_dev_put
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: scatterlist
 CONFTEST: file_operations
 CONFTEST: vm_operations_struct
 CONFTEST: atomic_long_type
 CONFTEST: file_inode
 CONFTEST: task_struct
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: swiotlb_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: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: vmbus_channel_has_ringbuffer_page
 CONFTEST: fault_flags
 CONFTEST: atomic64_type
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: node_states_n_memory
 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_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: dom0_kernel_present
 CONFTEST: nvidia_vgpu_hyperv_available
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: pm_runtime_available
 CONFTEST: drm_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test