我在运行 Ubuntu 20.04 的机器上遇到了亮度闪烁的问题。我的机器是双启动的,这仅在我使用 Ubuntu 时发生。
我看到很多其他帖子都在谈论类似的问题,但没有一个解决方案对我有用。我已经录制了闪烁的视频(见下面的链接),希望能帮助缩小答案。
https://giphy.com/gifs/YT8GA1ExAPqAa0POiv
有没有人见过这个问题?我目前在联想 Yoga 730-15ikb 上双启动
我在运行 Ubuntu 20.04 的机器上遇到了亮度闪烁的问题。我的机器是双启动的,这仅在我使用 Ubuntu 时发生。
我看到很多其他帖子都在谈论类似的问题,但没有一个解决方案对我有用。我已经录制了闪烁的视频(见下面的链接),希望能帮助缩小答案。
https://giphy.com/gifs/YT8GA1ExAPqAa0POiv
有没有人见过这个问题?我目前在联想 Yoga 730-15ikb 上双启动
我似乎有 50/50 的机会,当我启动时,我的屏幕会每隔 5 秒左右闪烁/闪烁一次。如果它要闪烁,它会在笔记本电脑启动时启动,我想是在加载图形驱动程序时,因为您可以看到使用时加载的命令的屏幕亮度差异GRUB_CMDLINE_LINUX_DEFAULT="text nouveau.modeset=0"
我的系统无法使用 nouveau 驱动程序启动,因此我禁用了它并尝试了推荐的 440 驱动程序以及 435。我目前正在使用 450 NVIDIA 驱动程序,它是唯一可以与 x 服务器软件一起使用的驱动程序。所有三个驱动程序都有相同的闪烁问题。
我试过用同样的问题进行全新安装,并尝试将内核更新到 5.8rc7。
我唯一的解决办法是重置笔记本电脑。
华硕 Rog G15 Ryzen 7 与 NVIDIA GTX1660ti
ubuntu 20.04lts
sudo dmidecode -s bios-version
GA502IU.216
free -h
可用的免费共享缓冲区/缓存总数 内存:15Gi 1.4Gi 12Gi 43Mi 1.4Gi 13Gi 交换:2.0Gi 0B 2.0Gi
sysctl vm.swappiness
vm.swappiness = 60
https://justpaste.it/8c8x1 - 如果下面的格式不那么可读,我会附上这个。
`sudo lshw -C 内存
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: GA502IU.217
date: 08/03/2020
size: 64KiB
capacity: 16MiB
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi
*-memory
description: System Memory
physical id: a
slot: System board or motherboard
size: 16GiB
*-bank:0
description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0.3 ns)
product: 8ATF1G64HZ-3G2J1
vendor: Micron Technology
physical id: 0
serial: 00000000
slot: DIMM 0
size: 8GiB
width: 64 bits
clock: 3200MHz (0.3ns)
*-bank:1
description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0.3 ns)
product: 8ATF1G64HZ-3G2J1
vendor: Micron Technology
physical id: 1
serial: 24F55C3D
slot: DIMM 0
size: 8GiB
width: 64 bits
clock: 3200MHz (0.3ns)
*-cache:0
description: L1 cache
physical id: c
slot: L1 - Cache
size: 512KiB
capacity: 512KiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: d
slot: L2 - Cache
size: 4MiB
capacity: 4MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: e
slot: L3 - Cache
size: 8MiB
capacity: 8MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=3`
430 安装失败日志 DKMS make.log
Tue 18 Aug 20:54:05 BST 2020
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-42-generic'
SYMLINK /var/lib/dkms/nvidia/430.09/build/nvidia/nv-kernel.o
SYMLINK /var/lib/dkms/nvidia/430.09/build/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: INIT_WORK
CONFTEST: hash__remap_4k_pfn
CONFTEST: list_is_first
CONFTEST: set_pages_uc
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: 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_master_drop_has_from_release_arg
CONFTEST: drm_helper_mode_fill_fb_struct
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
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-instance.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-acpi.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-chrdev.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-cray.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-dma.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-gvi.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-i2c.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-mempool.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-mmap.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-p2p.o
In file included from ./include/linux/bitops.h:5,
from ./include/linux/kernel.h:12,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from /var/lib/dkms/nvidia/430.09/build/common/inc/nv-lock.h:16,
from /var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:19,
from /var/lib/dkms/nvidia/430.09/build/nvidia/nv.c:14:
./include/linux/bits.h:8: warning: "BIT" redefined
8 | #define BIT(nr) (UL(1) << (nr))
|
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv.c:12:
/var/lib/dkms/nvidia/430.09/build/common/inc/nvmisc.h:58: note: this is the location of the previous definition
58 | #define BIT(b) (1U<<(b))
|
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-pat.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-procfs.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-usermap.o
CC [M] /var/lib/dkms/nvidia/430.09/build/nvidia/nv-vm.o
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-chrdev.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-instance.c:13:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv.c:14:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-dma.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-acpi.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-cray.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/430.09/build/nvidia/nv.c:42:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
42 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-gvi.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/430.09/build/nvidia/nv.c: In function ‘nvidia_init_module’:
/var/lib/dkms/nvidia/430.09/build/nvidia/nv.c:786:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
786 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/430.09/build/nvidia/nv.c: At top level:
/var/lib/dkms/nvidia/430.09/build/nvidia/nv.c:882:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
882 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-i2c.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-mempool.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.c:39:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
39 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.c: In function ‘nv_init_module’:
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.c:349:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
349 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.c: In function ‘nv_exit_module’:
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.c:364:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
364 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-chrdev.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-pat.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-instance.o] Error 1
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-cray.o] Error 1
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-procfs.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-p2p.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-p2p.c:19:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
19 | #if (NV_BUILD_MODULE_INSTANCES == 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-mempool.o] Error 1
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-usermap.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-gvi.o] Error 1
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-mmap.c:15:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-pat.o] Error 1
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-mmap.c: In function ‘nv_encode_caching’:
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-mmap.c:338:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
338 | if (NV_ALLOW_CACHING(memory_type))
| ^
/var/lib/dkms/nvidia/430.09/build/nvidia/nv-mmap.c:340:9: note: here
340 | default:
| ^~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-i2c.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-usermap.o] Error 1
In file included from /var/lib/dkms/nvidia/430.09/build/nvidia/nv-vm.c:14:
/var/lib/dkms/nvidia/430.09/build/common/inc/nv-linux.h:1593:6: error: "NV_BUILD_MODULE_INSTANCES" is not defined, evaluates to 0 [-Werror=undef]
1593 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-frontend.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-dma.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-mmap.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-p2p.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-procfs.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-vm.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv-acpi.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/nvidia/430.09/build/nvidia/nv.o] Error 1
make[1]: *** [Makefile:1731: /var/lib/dkms/nvidia/430.09/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
make: *** [Makefile:79: modules] Error 2```
我使用这些说明在我的 Razer Blade 15 上设置了 Ubuntu 18.04,2019 年中,Nvidia 2060 RTX GPU
除了WIFI之外,一切都很好。
但是当我尝试将其连接到 HDMI 设备时,屏幕(随机)开始闪烁。我使用过许多其他设备来观看电影或在外接显示器上做一些工作。第一次尝试设置 Ubuntu 时,我遇到了这些闪烁问题,但重新安装后它们就消失了。
由于我现在使用笔记本电脑几个月了,我正在寻找一种方法来解决这个问题,而无需备份和重新安装所有东西。
我尝试了几种方法来更新或重新安装 nvidia 驱动程序,但到目前为止都没有达到预期的效果。
但正如你所见,我的系统甚至无法正确检测到我的显卡型号
sudo lshw -c display
[sudo] password for thedoc:
*-display
description: VGA compatible controller
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: /dev/fb0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=nvidia latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
resources: iomemory:600-5ff iomemory:600-5ff irq:181 memory:57000000-57ffffff memory:6030000000-603fffffff memory:6040000000-6041ffffff ioport:4000(size=128) memory:58000000-5807ffff
*-display
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: iomemory:600-5ff iomemory:400-3ff irq:179 memory:6043000000-6043ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff
之后,我今天尝试卸载并重新安装所有与 nvidia 相关的软件包,包括 cuda 和 libcudnn 使用这个. 之后我有一些未满足的依赖项,我尝试使用这些依赖项进行修复
sudo apt-get remove --purge nvidia-* -y
sudo ubuntu-drivers autoinstall
看起来一切都很好,nvidia 驱动程序都已正确安装和加载,但重新启动后我立即恢复了屏幕闪烁。
我猜这可以正常工作
nvidia-smi
Mon Aug 17 15:00:34 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.95.01 Driver Version: 440.95.01 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 2060 Off | 00000000:01:00.0 Off | N/A |
| N/A 52C P8 8W / N/A | 706MiB / 5934MiB | 2% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1345 G /usr/lib/xorg/Xorg 28MiB |
| 0 1598 G /usr/bin/gnome-shell 25MiB |
| 0 2020 G /usr/lib/xorg/Xorg 206MiB |
| 0 2181 G /usr/bin/gnome-shell 284MiB |
| 0 2583 G ...uest-channel-token=16910184081649606580 48MiB |
| 0 2830 G ...AAAAAAAAAAAACAAAAAAAAAA= --shared-files 108MiB |
+-----------------------------------------------------------------------------+
当前加载的驱动程序是 nvidia-driver-440-server,因为它是我的系统推荐的,并且屏幕闪烁很严重
sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001F11sv00001A58sd00002004bc03sc00i00
vendor : NVIDIA Corporation
driver : nvidia-driver-435 - distro non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-440-server - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
== /sys/devices/pci0000:00/0000:00:14.3 ==
modalias : pci:v00008086d0000A370sv00008086sd00000034bc02sc80i00
vendor : Intel Corporation
manual_install: True
driver : backport-iwlwifi-dkms - distro free
当我禁用 NVIDIA GPU 并改用 Intel GPU 时,一切都很好,没有闪烁。因此,我认为我的驱动程序安装存在一些严重问题。
有时通知栏中也会出现错误,很遗憾我无法复制和粘贴。但它们都与“nvidia-smi”相关。
非常感谢任何帮助,我对 linux 比较陌生,因为这是我第一次认真使用它作为操作系统。如果我可以通过提供信息以任何方式提供帮助,请告诉我。
编辑:
经过几个月的反复试验,我终于可以解决问题
xrandr --mode 1920x1080 --rate 59.97
我的笔记本电脑有 144Hz 的能力,但这似乎对他来说太过分了,降低刷新率解决了这个问题
我感到有点松了一口气,但也有点愚蠢,一个 linve 解决了几个小时的挣扎和阅读/写作论坛帖子无法解决的问题
我有一个带有 Intel 集成 (Ivybridge) 显卡的 Ubuntu 18.04 桌面。当我启动系统时,登录屏幕和默认的 Ubuntu 会话显示严重扭曲的图形和颜色,使其几乎无法使用。图片附在下面。
但是,我在这个系统中也安装了 gnome flashback (metacity) 和 xfce4 桌面,当我登录到这些会话时,除了少数应用程序(google-chrome、skype 等,我还没有检查所有),显然没有如此严重的失真应用程序虽然)。到目前为止,鹦鹉螺和其他应用程序在这些桌面上运行平稳,没有任何故障。有没有办法解决 Ubuntu 会话和登录屏幕的问题?我尝试了以下链接中提到的一些解决方案,但没有成功 -
系统信息:
$uname -a
Linux scorpio 5.3.0-62-generic #56~18.04.1-Ubuntu SMP Wed Jun 24 16:17:03 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
这是glxinfo -B的输出
name of display: :1.0
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) Ivybridge Desktop (0x152)
Version: 19.2.8
Accelerated: yes
Video memory: 1536MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.2
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
OpenGL core profile version string: 4.2 (Core Profile) Mesa 19.2.8
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.0 Mesa 19.2.8
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 19.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
和inxi -G的输出
Graphics: Card: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
Display Server: x11 (X.Org 1.20.8 ) drivers: fbdev (unloaded: modesetting,vesa)
Resolution: [email protected]
OpenGL: renderer: Mesa DRI Intel Ivybridge Desktop version: 4.2 Mesa 19.2.8
还有lshw -c video给出
*-display
description: VGA compatible controller
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:28 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
cat /var/log/gpu-manager.log的输出
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.3.0-62-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/5.3.0-62-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? no
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:152
BusID "PCI:0@0:2:0"
Is boot vga? yes
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card0", driven by "i915"
output 0:
card0-VGA-1
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 1
Has amd? no
Has intel? yes
Has nvidia? no
How many cards? 1
Has the system changed? No
Single card detected
Nothing to do
我对这个论坛很陌生。如果我能得到任何帮助来解决这个困扰我很长时间的问题,我将不胜感激。
非常感谢。
当我启用分数缩放时,我的主显示器上出现鼠标光标闪烁。我在带有 Intel UHD620 显卡的 Dell Inspiron XPS 9380 上运行 Ubuntu 20.04 桌面。
我有一个双显示器设置,因此,我的主屏幕上有 200% 的缩放比例(13 英寸到 4k),我的第二个显示器上有 100% 的缩放比例,它位于桌面上方并扩展了桌面(“加入显示器”) . 为了实现这种配置,我在设置 GUI 的屏幕显示选项卡中启用了分数缩放。
缩放正是我想要的,但是,光标仅在主显示器上非常快速且不规则地闪烁。使用任何程序时,它看起来令人不快并且非常分散注意力。单击功能工作正常,尽管闪烁,光标仍能完美平滑地跟踪。
我无法通过在命令行中使用“xrandr”来实现相同的显示配置,因此理想情况下,我将继续使用 GUI 中可用的小数缩放设置。
我刚收到我的新 xps 13 9380,它有 4k 显示器并预装了 ubuntu,自从我开始使用它后,我就遇到了闪烁的问题。
这里的视频:
https://photos.app.goo.gl/1PkL2HrjMBP41aML9
https://photos.app.goo.gl/CMzmMwrCPH5wh8aw6
这可能是 ubuntu 配置问题还是我应该向戴尔报告显示故障?
检查 BIOS(版本 1.2.1 - 最新)后,它可能是 ubuntu 配置问题,因为没有闪烁,所以硬件很好。
我有一个非常奇怪的问题。当我滚动网页时,按住右箭头快速浏览图像或使用 OpenGL 以高 fps 渲染某些东西时,我在屏幕中央或稍低一点的地方看到了这条闪烁的水平线。感觉系统无法处理大量变化像素的重绘、快速更改缓冲区或类似的事情。
我刚刚安装了 Ubuntu 18.04 MATE、410 NVIDIA 驱动程序,除此之外系统很干净。我不知道如何解决这个问题以及为什么会这样。哦,最后一件事 - 我有 GeForce GTX Titan Black,也许这与问题有关。
我的外接高清显示器出现问题,它开始闪烁,并且像素行彼此有点不对齐,所以图片有点模糊。我尝试了从更改某些设置到不同内核的所有方法,但没有任何效果。
我最近升级到 Ubuntu 18.04,但我遇到了微妙的(但持续不断且相当烦人)的屏幕闪烁。我的电脑是 HP Envy x360 Convertible 15-bp1xx;使用英特尔图形驱动程序。闪烁并非特定于任何应用程序,但在大的中灰色区域(例如具有深色主题、桌面背景等的应用程序)中更为明显