Ubuntu:20.04
笔记本电脑:HP elitebook g7
Linux:5.6.0-1034-oem(或 5.4.0)
冻结是随机发生的。与任何操作均无关联,有时一天发生一次,有时一天发生五次。
它从 2-3 周前开始。
什么都不起作用:鼠标、键盘、ctrl+alt+fX,……唯一的解决办法是关闭笔记本电脑。
Syslog 没有显示任何错误。
请问您有什么想法吗?
免费-h
total used free shared buff/cache available
Mem: 15Gi 8,5Gi 1,9Gi 1,1Gi 5,0Gi 6,5Gi
Swap: 2,0Gi 0B 2,0Gi
sysctl vm.swappiness
vm.swappiness = 60
grep -i 交换 /etc/fstab
/swapfile none swap sw 0 0
sudo dmidecode -s bios 版本
S70 Ver. 01.01.06, S70 Ver. 01.03.02
memtest86
Passed on 100%
编辑(2021.2.1)
ls-al / var /崩溃
(一次崩溃,但它发生在上次启动时并且是 12 小时前)
_usr_bin_seahorse.1000.crash
日志控制-b-1
(最后 2 秒)
úno 01 18:53:08 ondra-work avahi-daemon[965]: Joining mDNS multicast group on interface veth3ba8083.IPv6 with address fe80::74db:e6ff:feb4:f476.
úno 01 18:53:08 ondra-work avahi-daemon[965]: New relevant interface veth3ba8083.IPv6 for mDNS.
úno 01 18:53:08 ondra-work avahi-daemon[965]: Registering new address record for fe80::74db:e6ff:feb4:f476 on veth3ba8083.*.
úno 01 18:53:08 ondra-work kernel: veth54120d1: renamed from eth0
úno 01 18:53:08 ondra-work kernel: br-f273e5b15276: port 1(veth3ba8083) entered disabled state
úno 01 18:53:08 ondra-work systemd-udevd[17727]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
úno 01 18:53:08 ondra-work NetworkManager[974]: <info> [1612201988.4813] manager: (veth54120d1): new Veth device (/org/freedesktop/NetworkManager/Devices/166)
úno 01 18:53:08 ondra-work avahi-daemon[965]: Interface veth3ba8083.IPv6 no longer relevant for mDNS.
úno 01 18:53:08 ondra-work avahi-daemon[965]: Leaving mDNS multicast group on interface veth3ba8083.IPv6 with address fe80::74db:e6ff:feb4:f476.
úno 01 18:53:08 ondra-work kernel: br-f273e5b15276: port 1(veth3ba8083) entered disabled state
úno 01 18:53:08 ondra-work kernel: device veth3ba8083 left promiscuous mode
úno 01 18:53:08 ondra-work kernel: br-f273e5b15276: port 1(veth3ba8083) entered disabled state
úno 01 18:53:08 ondra-work avahi-daemon[965]: Withdrawing address record for fe80::74db:e6ff:feb4:f476 on veth3ba8083.
úno 01 18:53:08 ondra-work systemd-udevd[17727]: veth54120d1: Failed to get link config: No such device
úno 01 18:53:08 ondra-work NetworkManager[974]: <info> [1612201988.5099] device (veth3ba8083): released from master device br-f273e5b15276
úno 01 18:53:08 ondra-work gnome-shell[2744]: Removing a network device that was not added
úno 01 18:53:08 ondra-work gnome-shell[2744]: Removing a network device that was not added
úno 01 18:54:08 ondra-work NetworkManager[974]: <info> [1612202048.3850] manager: (vethb4cde64): new Veth device (/org/freedesktop/NetworkManager/Devices/167)
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered blocking state
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered disabled state
úno 01 18:54:08 ondra-work kernel: device vethe1b03b2 entered promiscuous mode
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered blocking state
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered forwarding state
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered disabled state
úno 01 18:54:08 ondra-work systemd-udevd[17931]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
úno 01 18:54:08 ondra-work NetworkManager[974]: <info> [1612202048.3866] manager: (vethe1b03b2): new Veth device (/org/freedesktop/NetworkManager/Devices/168)
úno 01 18:54:08 ondra-work systemd-udevd[17931]: Using default interface naming scheme 'v245'.
úno 01 18:54:08 ondra-work systemd-udevd[17931]: vethb4cde64: Could not generate persistent MAC: No data available
úno 01 18:54:08 ondra-work systemd-udevd[17932]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
úno 01 18:54:08 ondra-work systemd-udevd[17932]: Using default interface naming scheme 'v245'.
úno 01 18:54:08 ondra-work systemd-udevd[17932]: vethe1b03b2: Could not generate persistent MAC: No data available
úno 01 18:54:08 ondra-work kernel: eth0: renamed from vethb4cde64
úno 01 18:54:08 ondra-work NetworkManager[974]: <info> [1612202048.7133] device (vethe1b03b2): carrier: link connected
úno 01 18:54:08 ondra-work NetworkManager[974]: <info> [1612202048.7138] device (br-f273e5b15276): carrier: link connected
úno 01 18:54:08 ondra-work kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethe1b03b2: link becomes ready
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered blocking state
úno 01 18:54:08 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered forwarding state
úno 01 18:54:08 ondra-work gnome-shell[2744]: Removing a network device that was not added
úno 01 18:54:09 ondra-work kernel: vethb4cde64: renamed from eth0
úno 01 18:54:10 ondra-work systemd-udevd[17978]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
úno 01 18:54:10 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered disabled state
úno 01 18:54:10 ondra-work systemd-udevd[17978]: Using default interface naming scheme 'v245'.
úno 01 18:54:10 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered disabled state
úno 01 18:54:10 ondra-work NetworkManager[974]: <info> [1612202050.0761] manager: (vethb4cde64): new Veth device (/org/freedesktop/NetworkManager/Devices/169)
úno 01 18:54:10 ondra-work kernel: device vethe1b03b2 left promiscuous mode
úno 01 18:54:10 ondra-work kernel: br-f273e5b15276: port 1(vethe1b03b2) entered disabled state
úno 01 18:54:10 ondra-work systemd-udevd[17978]: vethb4cde64: Failed to get link config: No such device
úno 01 18:54:10 ondra-work NetworkManager[974]: <info> [1612202050.1231] device (vethe1b03b2): released from master device br-f273e5b15276
úno 01 18:54:10 ondra-work gnome-shell[2744]: Removing a network device that was not added
úno 01 18:54:10 ondra-work gnome-shell[2744]: Removing a network device that was not added
编辑 22-03-2021
看来这个问题在内核 5.8 中已经修复
答案1
我在使用新的华硕 Zenbook 14 时也遇到了类似的问题,一些驱动程序无法工作,并且出现了一些问题。我删除了它并安装了 Ubuntu 20.10,它运行良好且流畅,没有任何问题。这可能是解决方案。
答案2
我的联想笔记本电脑也遇到了同样的问题,这是由交换文件引起的。出于某种原因,交换文件的默认大小设置为 1Gb。交换文件真的把我的笔记本电脑冻坏了。
通过将交换文件大小增加到 8Gb,问题得到了部分解决 - 冻结现象开始越来越少发生。最后通过安装 SSD 并将 RAM 扩展到 20Gb 解决了该问题。
答案3
BIOS
HP EliteBook G7
您的 BIOS 版本是 S70 Ver. 01.01.06。
如果你有HP EliteBook 850 G7如果您的电脑是此型号的变体,则可以使用较新的 BIOS 来解决您的问题。您可以下载 2020 年 11 月 13 日发布的 01.03.02 Rev.A 版本这里。
注意:确认我拥有适合您型号的正确网页。
注意:更新 BIOS 之前请做好备份。
交换
如果 BIOS 不能解决问题,我们会将您的 /swapfile 从 2G 增加到 4G。
笔记:命令使用不当dd
可能导致数据丢失。建议复制/粘贴。
在里面terminal
...
sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 16G RAM and 4G swap
确认 /etc/fstab 末尾的 /swapfile 行...并确认没有其他“swap”行...
要编辑,使用sudo -H gedit /etc/fstab
或sudo pico /etc/fstab
/swapfile none swap sw 0 0
reboot # reboot and verify operation
更新#1:
去https://www.memtest86.com/并免费下载/运行它们memtest
来测试你的记忆力。至少完成一次所有 4/4 测试以确认记忆力良好。这可能需要几个小时才能完成。
更新 #2:
如果memtest
运行正常,那么我们将启动到 Ubuntu Live 20.10 DVD/USB 并查看其是否可靠运行。
答案4
我花了几个月的时间才弄清楚为什么我的较旧且速度较慢的赛扬电脑有时会随机冻结几分钟,而硬盘指示灯一直亮着。为了防止系统在硬盘交换大文件块时长时间冻结,请管理交换设置。
要查看 swappiness 的设置值... cat /proc/sys/vm/swappiness
如果将其设置为默认值 60,则...
sudo gedit /etc/sysctl.conf
将其添加到文件末尾
vm.swappiness=10
重启后,它很少会尝试交换。
我的系统不再冻结 :-)