我的/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 中添加。
这里是与我的电脑相关的所有硬件信息,这些信息可能是必要的。它有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
,kern.log
但即使我限制了大小,但在此期间我仍然会面临 wifi 驱动程序问题和风扇加速问题。它不会解决问题的根本原因。
更新 4
看到日志信息后,我认为问题背后的原因是wpa_supplicant
。因此,我将 Ubuntu 上的无线守护进程从更改wpa_supplicant
为iwd
。它工作了两天,但后来我遇到了同样的问题System hanging and Wifi disconnection
,但这次没有任何大量数据的记录/var/log/
。
答案1
我已将我wireless daemon
的 Ubuntu 上的 从更改wpa_supplicant
为iwd
。
- iwd(iNet Wireless Daemon)是一款现代的、新兴的 Linux 无线守护进程。
- iwd 由英特尔编写,旨在取代 wpa_supplicant。
安装说明
安装 iwd
sudo apt install iwd
配置 NetworkManager 以使用 iwd
sudo gedit /etc/NetworkManager/conf.d/iwd.conf
添加以下两行:
[device] wifi.backend=iwd
禁用 wpa_supplicant 并重新启动:
sudo systemctl mask wpa_supplicant sudo reboot
笔记
如果您之前曾连接过任何 wifi 网络。您只需忘记连接并重新连接即可将它们传输到 iwd 的秘密存储中
/var/lib/iwd/
。有时重启后,即使已连接,网络管理器中也可能出现无 wifi 的问题。如果出现此问题,可以按上述方法
systemctl
重启。iwd
如果问题仍然存在,可以参考维基百科。
笔记
虽然它没有完全解决我的问题,但是减少了问题发生的频率,到目前为止这是一个很大的安慰。
参考: