滚动版上的bumblebee和nvidia驱动无法正常工作


#1

https://en.opensuse.org/SDB:NVIDIA_Bumblebee,一直以来都是按照这个帖子安装的,以前一直没出过问题,然后这次安装了Tumbleweed 0302版,照例折腾一下bumbleweed,目前的情况是完全按照帖子里的要求做了,bumblebee和bbswitch已安装,用户也已添加到bumblebee和video用户组,开源驱动已屏蔽并重新mkinitrd。之后就是添加bumblebee源并安装nvidia驱动,一切都很顺利,装完之后重启

taxue@Silence:~> optirun --status
Bumblebee status: Error (3.2.1): Could not load GPU driver
taxue@Silence:~> optirun glxgears
[ 1971.085890] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 1971.085925] [ERROR]Aborting because fallback start is disabled.

google了一下,有说需要去bumblebee配置文件里手动指定驱动版本的,有说跟xserver有关,需要卸载xserver-legacy(差不多类似的名字),但是openSUSE里只能搜到xserver-wayland,因此目前不知道该怎么解决了。
显卡是940MX,笔记本是Thinkpad T470


#2

可能是 dkms 构建的时候出错了,看下 /var/lib/dkms/nvidia/${驱动版本}/${内核版本}/x86_64/log/make.log 有没有错误信息 。


#3
taxue@Silence:~> cat /var/lib/dkms/nvidia/390.25/4.15.7-1-default/x86_64/log/make.log
DKMS make.log for nvidia-390.25 for kernel 4.15.7-1-default (x86_64)
Wed Mar  7 10:58:57 CST 2018
make[1]: Entering directory '/usr/src/linux-4.15.7-1'
make[2]: Entering directory '/usr/src/linux-4.15.7-1-obj/x86_64/default'
 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: 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: 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: 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: is_export_symbol_gpl_of_node_to_nid
 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: kernel_write
 CONFTEST: strnstr
 CONFTEST: iterate_dir
 CONFTEST: kstrtoull
 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: pnv_npu2_init_context
 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: 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]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-frontend.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-instance.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-gpu-numa.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-acpi.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-chrdev.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-cray.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-dma.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-gvi.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-i2c.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-mempool.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-mmap.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-p2p.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-pat.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-procfs.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-usermap.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-vm.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-vtophys.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/os-interface.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/os-mlock.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/os-pci.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/os-registry.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/os-usermap.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-modeset-interface.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-pci-table.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-kthread-q.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-kthread-q-selftest.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-memdbg.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-ibmnpu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv-report-err.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nv_uvm_interface.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia/nvlink_linux.o
  SYMLINK /var/lib/dkms/nvidia/390.25/build/nvidia/nv-kernel.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm_utils.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm_common.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm_linux.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/nvstatus.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/nvCpuUuid.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_tools.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_global.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu_isr.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_procfs.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_va_space.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu_semaphore.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_mem.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_rm_mem.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_channel.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_lock.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_hal.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_range_tree.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_range_allocator.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_va_range.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_va_block.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_range_group.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu_replayable_faults.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu_access_counters.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_events.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_module.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_mmu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pte_batch.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_tlb_batch.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_push.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pushbuffer.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_thread_context.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_tracker.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_kepler.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_kepler_ce.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_kepler_host.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_kepler_mmu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_maxwell.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_maxwell_host.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pascal.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pascal_ce.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pascal_host.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pascal_mmu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pascal_fault_buffer.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_volta_host.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_volta_mmu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_volta.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_volta_fault_buffer.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_volta_access_counter_buffer.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_policy.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_utils.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_kvmalloc.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pmm_sysmem.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pmm_gpu.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_migrate.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_map_external.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_user_channel.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_hmm.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_heuristics.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_thrashing.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_prefetch.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_test_rng.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_range_tree_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_range_allocator_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_gpu_semaphore_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_mem_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_rm_mem_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_page_tree_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_tracker_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_push_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_channel_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_ce_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_lock_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_utils_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_kvmalloc_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pmm_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_pmm_sysmem_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_events_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_perf_module_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_get_rm_ptes_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_fault_buffer_flush_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_mmu_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_peer_identity_mappings_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_va_block_test.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm/uvm8_range_group_tree_test.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-modeset/nvidia-modeset-linux.o
  SYMLINK /var/lib/dkms/nvidia/390.25/build/nvidia-modeset/nv-modeset-kernel.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-modeset.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-drv.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-utils.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-crtc.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-encoder.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-connector.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-gem.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-fb.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-modeset.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-prime-fence.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-linux.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-helper.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nv-pci-table.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-gem-nvkms-memory.o
  CC [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm/nvidia-drm-gem-user-memory.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm.o
ld -r -o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-interface.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-frontend.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-instance.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-gpu-numa.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-acpi.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-chrdev.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-cray.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-dma.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-gvi.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-i2c.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-mempool.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-mmap.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-p2p.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-pat.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-procfs.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-usermap.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-vm.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-vtophys.o /var/lib/dkms/nvidia/390.25/build/nvidia/os-interface.o /var/lib/dkms/nvidia/390.25/build/nvidia/os-mlock.o /var/lib/dkms/nvidia/390.25/build/nvidia/os-pci.o /var/lib/dkms/nvidia/390.25/build/nvidia/os-registry.o /var/lib/dkms/nvidia/390.25/build/nvidia/os-usermap.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-modeset-interface.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-pci-table.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-kthread-q.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-kthread-q-selftest.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-memdbg.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-ibmnpu.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv-report-err.o /var/lib/dkms/nvidia/390.25/build/nvidia/nv_uvm_interface.o /var/lib/dkms/nvidia/390.25/build/nvidia/nvlink_linux.o
ld -r -o /var/lib/dkms/nvidia/390.25/build/nvidia-modeset/nv-modeset-interface.o /var/lib/dkms/nvidia/390.25/build/nvidia-modeset/nvidia-modeset-linux.o
  Building modules, stage 2.
  MODPOST 4 modules
  CC      /var/lib/dkms/nvidia/390.25/build/nvidia-drm.mod.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-drm.ko
  CC      /var/lib/dkms/nvidia/390.25/build/nvidia-modeset.mod.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-modeset.ko
  CC      /var/lib/dkms/nvidia/390.25/build/nvidia-uvm.mod.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia-uvm.ko
  CC      /var/lib/dkms/nvidia/390.25/build/nvidia.mod.o
  LD [M]  /var/lib/dkms/nvidia/390.25/build/nvidia.ko
make[2]: Leaving directory '/usr/src/linux-4.15.7-1-obj/x86_64/default'
make[1]: Leaving directory '/usr/src/linux-4.15.7-1'

似乎没什么问题?


#4

sudo dkms status 里能看到 nvidia 的模块吗?


#5
taxue@Silence:~> sudo dkms status
[sudo] password for root: 
nvidia, 390.25, 4.15.7-1-default, x86_64: installed

不过之前网上搜索的时候,貌似ubuntu上执行这个命令还会有bbswitch还是bumblebee的模块


#6
/etc/bumblebee/bumblebee.conf

贴出来看看?


#7
taxue@Silence:~> cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib64/primus:/usr/lib/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib64/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib64/nvidia/xorg/,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

#8

@taxuezju18

sudo journalctl -u bumblebeed —since today

#9
taxue@Silence:~> sudo journalctl -u bumblebeed > /home/taxue/log.txt
taxue@Silence:~> cat /home/taxue/log.txt 
-- Logs begin at Mon 2018-03-05 21:53:52 CST, end at Sat 2018-03-10 10:36:12 CST. --
3月 05 23:13:10 Silence systemd[1]: Started Bumblebee C Daemon.
3月 05 23:13:10 Silence bumblebeed[17259]: [ 4424.281855] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 05 23:13:10 Silence bumblebeed[17259]: rmmod: ERROR: Module nouveau is in use
3月 05 23:13:13 Silence bumblebeed[17259]: [ 4427.312798] [ERROR]Unloading nouveau driver timed out.
3月 05 23:27:00 Silence bumblebeed[17259]: [ 5254.297140] [WARN]Received Terminated signal.
3月 05 23:27:00 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 05 23:27:00 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 06 15:55:42 Silence systemd[1]: Started Bumblebee C Daemon.
3月 06 15:55:42 Silence bumblebeed[1122]: [    6.380281] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303330] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303352] [ERROR][XORG] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303360] [WARN][XORG] (WW) Warning, couldn't open module nouveau
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303368] [ERROR][XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303379] [ERROR][XORG] (EE) No drivers available.
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303386] [ERROR][XORG] (EE)
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303392] [ERROR][XORG] (EE) no screens found(EE)
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303398] [ERROR][XORG] (EE)
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303405] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303411] [ERROR][XORG] (EE)
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303418] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
3月 07 11:01:22 Silence bumblebeed[1122]: [68746.303424] [ERROR]X did not start properly
3月 07 11:01:40 Silence bumblebeed[1122]: [68764.921210] [WARN]Received Terminated signal.
3月 07 11:01:40 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 07 11:01:40 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 07 11:02:06 Silence systemd[1]: Started Bumblebee C Daemon.
3月 07 11:02:06 Silence bumblebeed[1649]: [    7.385579] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 07 11:02:51 Silence bumblebeed[1649]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:02:51 Silence bumblebeed[1649]: [   52.505496] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:02:51 Silence bumblebeed[1649]: [   52.505516] [ERROR]Could not load GPU driver
3月 07 11:07:48 Silence bumblebeed[1649]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:07:48 Silence bumblebeed[1649]: [  349.297702] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:07:48 Silence bumblebeed[1649]: [  349.297713] [ERROR]Could not load GPU driver
3月 07 11:10:05 Silence bumblebeed[1649]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:10:05 Silence bumblebeed[1649]: [  487.049745] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:10:05 Silence bumblebeed[1649]: [  487.049756] [ERROR]Could not load GPU driver
3月 07 11:11:30 Silence bumblebeed[1649]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:11:30 Silence bumblebeed[1649]: [  571.385794] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:11:30 Silence bumblebeed[1649]: [  571.385806] [ERROR]Could not load GPU driver
3月 07 11:11:41 Silence bumblebeed[1649]: [  582.868045] [WARN]Received Terminated signal.
3月 07 11:11:41 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 07 11:11:41 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 07 11:12:08 Silence systemd[1]: Started Bumblebee C Daemon.
3月 07 11:12:08 Silence bumblebeed[1679]: [    9.274449] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 07 11:12:33 Silence bumblebeed[1679]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:12:33 Silence bumblebeed[1679]: [   34.657825] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:12:33 Silence bumblebeed[1679]: [   34.657841] [ERROR]Could not load GPU driver
3月 07 11:14:15 Silence bumblebeed[1679]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:14:15 Silence bumblebeed[1679]: [  136.493082] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:14:15 Silence bumblebeed[1679]: [  136.493093] [ERROR]Could not load GPU driver
3月 07 11:14:57 Silence bumblebeed[1679]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:14:57 Silence bumblebeed[1679]: [  178.357827] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:14:57 Silence bumblebeed[1679]: [  178.357839] [ERROR]Could not load GPU driver
3月 07 11:43:31 Silence bumblebeed[1679]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:43:31 Silence bumblebeed[1679]: [ 1892.557842] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:43:31 Silence bumblebeed[1679]: [ 1892.557853] [ERROR]Could not load GPU driver
3月 07 11:44:49 Silence bumblebeed[1679]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 07 11:44:49 Silence bumblebeed[1679]: [ 1971.085859] [ERROR]Module nvidia could not be loaded (timeout?)
3月 07 11:44:49 Silence bumblebeed[1679]: [ 1971.085869] [ERROR]Could not load GPU driver
3月 07 16:05:53 Silence bumblebeed[1679]: [17634.985767] [WARN]Received Terminated signal.
3月 07 16:05:53 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 07 16:05:53 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 08 07:20:01 Silence systemd[1]: Started Bumblebee C Daemon.
3月 08 07:20:01 Silence bumblebeed[1690]: [   10.533283] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 08 07:38:10 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 08 07:38:10 Silence bumblebeed[1690]: [ 1099.472031] [WARN]Received Terminated signal.
3月 08 07:38:10 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 09 13:31:25 Silence systemd[1]: Started Bumblebee C Daemon.
3月 09 13:31:25 Silence bumblebeed[1796]: [   11.482446] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 09 19:05:22 Silence bumblebeed[1796]: [20049.680857] [WARN]Received Terminated signal.
3月 09 19:05:22 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 09 19:05:22 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 09 19:05:49 Silence systemd[1]: Started Bumblebee C Daemon.
3月 09 19:05:49 Silence bumblebeed[1710]: [   10.039097] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 09 19:06:32 Silence bumblebeed[1710]: modprobe: ERROR: could not insert 'nvidia': No such device
3月 09 19:06:32 Silence bumblebeed[1710]: [   52.761772] [ERROR]Module nvidia could not be loaded (timeout?)
3月 09 19:06:32 Silence bumblebeed[1710]: [   52.761787] [ERROR]Could not load GPU driver
3月 09 19:07:13 Silence bumblebeed[1710]: [   93.902484] [WARN]Received Terminated signal.
3月 09 19:07:13 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 09 19:07:13 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 09 22:11:41 Silence systemd[1]: Started Bumblebee C Daemon.
3月 09 22:11:41 Silence bumblebeed[1716]: [    9.736683] [INFO]/usr/sbin/bumblebeed 3.2.1 started
3月 09 22:32:28 Silence bumblebeed[1716]: [ 1256.871071] [WARN]Received Terminated signal.
3月 09 22:32:28 Silence systemd[1]: Stopping Bumblebee C Daemon...
3月 09 22:32:28 Silence systemd[1]: Stopped Bumblebee C Daemon.
-- Reboot --
3月 10 10:31:27 Silence systemd[1]: Started Bumblebee C Daemon.
3月 10 10:31:27 Silence bumblebeed[1772]: [   10.101831] [INFO]/usr/sbin/bumblebeed 3.2.1 started

很奇怪加了后面的参数会报错,--since 或者 -S都说是invalid…
另外我的 /etc/modprobe.d/99-local.conf 中是有 blacklist nouveau


#10
modprobe: ERROR: could not insert 'nvidia': No such device

你的 modprobe 挂不上 nvidia 模块,你 lsmod 看下 nvidia 模块在不在,看看 nvidia.ko 的安装位置是不是错了,再看看把 KernelDriver=nvidia 换成 nvidia-390 有效没


#11

lsmod结果里没有nvidia,这种情况怎么解决呢


#12

没挂上正常,那条错误告诉你的就是没挂上,问题是为什么没挂上。

你的 nvidia.ko 在什么位置