我的/var/log/syslog
并且var/log/kern.log
很快就充满了它冻结了我的计算机,甚至关机,重新启动都不起作用。我的 wifi 停止工作,即使我使用终端重新启动网络服务systemctl
也不起作用。
这是与我的网络管理器错误相关的图像。我的网络管理器问题与此问题类似。
两个日志文件都充满了相同的 10 行消息。
Aug 10 04:29:35 kernel: [ 471.710774] worker_thread+0x4d/0x400
Aug 10 04:29:35 kernel: [ 471.710776] kthread+0x104/0x140
Aug 10 04:29:35 kernel: [ 471.710778] ? process_one_work+0x3b0/0x3b0
Aug 10 04:29:35 kernel: [ 471.710780] ? kthread_park+0x90/0x90
Aug 10 04:29:35 kernel: [ 471.710782] ret_from_fork+0x35/0x40
Aug 10 04:29:35 kernel: [ 471.710784] ---[ end trace e68a032e184ce76a ]---
Aug 10 04:29:35 kernel: [ 471.710803] ------------[ cut here ]------------
Aug 10 04:29:35 kernel: [ 471.710804] wlp3s0: Failed check-sdata-in-driver check, flags: 0x4
Aug 10 04:29:35 kernel: [ 471.710834] WARNING: CPU: 2 PID: 8 at net/mac80211/driver-ops.h:17 drv_sta_state+0x254/0x3f0 [mac80211]
Aug 10 04:29:35 kernel: [ 471.710835] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep nls_iso8859_1 intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp amdgpu mei_hdcp kvm snd_hda_codec_hdmi amd_iommu_v2 gpu_sched crct10dif_pclmul snd_hda_codec_conexant snd_hda_codec_generic ledtrig_audio ghash_clmulni_intel snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep snd_pcm aesni_intel crypto_simd snd_seq_midi cryptd glue_helper intel_cstate snd_seq_midi_event intel_rapl_perf uvcvideo snd_rawmidi iwlmvm videobuf2_vmalloc mac80211 videobuf2_memops libarc4 videobuf2_v4l2 rtsx_usb_ms btusb i915 videobuf2_common memstick snd_seq serio_raw btrtl radeon btbcm snd_seq_device iwlwifi btintel ttm input_leds videodev bluetooth mc joydev snd_timer drm_kms_helper ecdh_generic ecc i2c_algo_bit fb_sys_fops ideapad_laptop cfg80211 syscopyarea snd sysfillrect mei_me sparse_keymap mei sysimgblt soundcore wmi mac_hid acpi_pad sch_fq_codel parport_pc ppdev lp parport drm
我在以前版本的 Ubuntu 中没有这个问题。它从我升级到 20.04 LTS 开始。即使我已经重新安装了 Ubuntu,甚至我尝试升级我的内核,但它没有帮助。即使使用amdgpu
而不是radeon
没有帮助。我也尝试过添加nomodeset
grub。
这是我的PC的所有硬件相关信息,可能是信息所必需的。它有Integrated graphics
.
VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] (rev 83)
更新 1
我已经附上Logs
了发生错误时的重要日志消息。
12:33:22 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:33:22 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:33:22 PM kernel: INFO: task kworker/1:0:19 blocked for more than 241 seconds.
12:31:21 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:31:21 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:31:21 PM kernel: INFO: task NetworkManager:921 blocked for more than 241 seconds.
12:31:21 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:31:21 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:31:21 PM kernel: INFO: task kworker/3:3:356 blocked for more than 241 seconds.
12:31:21 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:31:21 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:31:21 PM kernel: INFO: task kworker/0:2:157 blocked for more than 241 seconds.
12:31:21 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:31:21 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:31:21 PM kernel: INFO: task kworker/3:0:31 blocked for more than 241 seconds.
12:31:21 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:31:21 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:31:21 PM kernel: INFO: task kworker/1:0:19 blocked for more than 120 seconds.
12:29:20 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:29:20 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:29:20 PM kernel: INFO: task NetworkManager:921 blocked for more than 120 seconds.
12:29:20 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:29:20 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:29:20 PM kernel: INFO: task kworker/3:3:356 blocked for more than 120 seconds.
12:29:20 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:29:20 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:29:20 PM kernel: INFO: task kworker/0:2:157 blocked for more than 120 seconds.
12:29:20 PM kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
12:29:20 PM kernel: Tainted: G W 5.4.0-42-generic #46-Ubuntu
12:29:20 PM kernel: INFO: task kworker/3:0:31 blocked for more than 120 seconds.
12:25:55 PM kernel: iwlwifi 0000:03:00.0: Failed to send binding (action:1): -5
12:21:28 PM bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
12:21:19 PM kernel: ACPI Error: Aborting method \_SB.PCI0.GFX0._DSM due to previous error (AE_NOT_FOUND) (20190816/psparse-529)
12:21:19 PM kernel: uvcvideo: Failed to query (GET_INFO) UVC control 8 on unit 1: -32 (exp. 1).
12:21:18 PM kernel: ACPI Error: Aborting method \_SB.PCI0.GFX0._DSM due to previous error (AE_NOT_FOUND) (20190816/psparse-529)
12:21:18 PM kernel: DMAR: Failed to find handle for ACPI object \_SB.PCI0.SDHC
12:21:18 PM kernel: Initramfs unpacking failed: Decoding failed
12:21:18 PM kernel: ACPI Error: Aborting method \_SB.PCI0.GFX0._DSM due to previous error (AE_NOT_FOUND) (20190816/psparse-529)
更新 2
这个问题中提到的答案只告诉要么删除日志文件。直到现在我也在做同样的事情,但它并没有解决问题。大多数时候会出现同样的问题,甚至关机也不起作用。所以,我曾经强行关闭,然后在恢复模式下重新启动以从 CLI 中删除日志文件。
更新 3
正如这个问题中提到的。对它的回答只给出了限制syslog
and大小的解决方案kern.log
,但即使我限制了大小,但在那段时间我仍然会面临 wifi 驱动程序问题和风扇加速问题。它不会解决问题的根本原因。
更新 4
看到日志消息后,我认为问题背后的原因是wpa_supplicant
. 因此,我将 Ubuntu 上的无线守护程序wpa_supplicant
从iwd
. 它工作了两天,但后来我遇到了同样的问题System hanging and Wifi disconnection
,但是这次没有记录任何大量数据/var/log/
。
我已经将我
wireless daemon
的 Ubuntu 从更改wpa_supplicant
为iwd
.安装说明
安装 iwd
配置 NetworkManager 以使用 iwd
添加这两行:
禁用 wpa_supplicant 并重新启动:
笔记
如果您之前连接到任何 wifi 网络。您只需要忘记连接并重新连接即可将它们传输到 iwd 的秘密存储中
/var/lib/iwd/
。有时重新启动后,即使您已连接,也可能会遇到网络管理器中没有 wifi 的问题。如果这是一个可以
systemctl
用来重新启动iwd
上述问题的问题。如果任何问题仍然存在,可以参考ArchWiki。
笔记
虽然它并没有完全解决我的问题,但减少了问题的频率,这到现在是一个很大的解脱。
参考: