我的 ubuntu 在关机、重启和挂起时冻结

我的 ubuntu 在关机、重启和挂起时冻结

我在笔记本电脑上安装了 Ubuntu 18.04。它在重启、关机和挂起时会冻结,我必须使用电源键手动关机才能关闭电脑。我试过了https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia#Installation 解决方案没有成功。有人能帮帮我吗?我有一台 n552vw 笔记本电脑,配备 i7 6700hq 和 960gt Nvidia 驱动程序

输出如下sudo blkid

/dev/sda2: UUID="148a4a5d-60cf-414e-8ce3-b79f86ad386c" TYPE="ext4" PARTUUID="a4dabba3-3ec9-4fe0-bcd8-fdb26e33d980"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sda1: UUID="6BF5-CC22" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="4b160ac6-a5d2-4f8c-81c9-b02cc025d0cd"
/dev/sdb1: LABEL="New Volume" UUID="7C7A8BDF7A8B9514" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="99a61984-cdc3-477d-9c2b-20b5eff5a457"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
/dev/loop14: TYPE="squashfs"
/dev/loop15: TYPE="squashfs"
/dev/loop16: TYPE="squashfs"
/dev/loop17: TYPE="squashfs"

这是 /etc/fstab:

  /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=148a4a5d-60cf-414e-8ce3-b79f86ad386c /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
#UUID=6BF5-CC22  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
UUID=6BF5-CC22  /boot/efi   vfat    defaults    0   1

这里是免费的-h

              total        used        free      shared  buff/cache   available
Mem:           7.7G        5.4G        418M        230M        1.9G        1.8G
Swap:          2.0G          0B        2.0G

最后一个cat /etc/initramfs-tools/conf.d/resume

cat: /etc/initramfs-tools/conf.d/resume: No such file or directory

sudo fdisk -l输出

Disk /dev/loop0: 3.7 MiB, 3878912 bytes, 7576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 34.6 MiB, 36216832 bytes, 70736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 1.2 MiB, 1253376 bytes, 2448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 140.9 MiB, 147722240 bytes, 288520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 2.3 MiB, 2355200 bytes, 4600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 14.5 MiB, 15196160 bytes, 29680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6270DE80-FEA1-4548-BE07-17C506FCAD06

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624 250068991 249018368 118.8G Linux filesystem




Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5D1C00F9-28BD-4FF1-9DAF-FC6D770E1A49

Device     Start        End    Sectors   Size Type
/dev/sdb1   2048 1953523711 1953521664 931.5G Microsoft basic data


Disk /dev/loop8: 53.7 MiB, 56311808 bytes, 109984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 140.7 MiB, 147496960 bytes, 288080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 34.7 MiB, 36323328 bytes, 70944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 2.3 MiB, 2433024 bytes, 4752 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop12: 3.7 MiB, 3887104 bytes, 7592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop13: 238.6 MiB, 250220544 bytes, 488712 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop14: 91.1 MiB, 95494144 bytes, 186512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop15: 89.5 MiB, 93835264 bytes, 183272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop16: 14.5 MiB, 15208448 bytes, 29704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop17: 91 MiB, 95408128 bytes, 186344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

这是我选择的附加驱动程序: 在此处输入图片描述

这是挂起状态唤醒后发生的情况的屏幕截图。

在此处输入图片描述 下面是snap list输出

Name                     Version         Rev   Tracking  Publisher   Notes
core                     16-2.37.1       6350  stable    canonical✓  core
core18                   18              677   stable    canonical✓  base
gnome-3-26-1604          3.26.0          74    stable/…  canonical✓  -
gnome-calculator         3.30.1          260   stable/…  canonical✓  -
gnome-characters         3.30.0          139   stable/…  canonical✓  -
gnome-logs               3.30.0          45    stable/…  canonical✓  -
gnome-system-monitor     3.30.0          57    stable/…  canonical✓  -
gtk-common-themes        0.1-4-g88bc1b2  818   stable/…  canonical✓  -
kde-frameworks-5-core18  5.54.0          26    stable    kde✓        -
ktouch                   18.12.1         27    stable    kde✓        -

注意:我的笔记本电脑有 Skylake Cpu(i7 6700HQ),它不支持 Linux 内核,安装 ubuntu 后它会卡在徽标中...经过努力解决这个问题后,我想到在 grub 配置中添加 Nouveau,最终我设法登录 ubuntu,现在我遇到了这个问题。

答案1

我曾经遇到过和你一样的情况,我的电脑在安装 Nvidia 驱动程序后开始在挂起时冻结。众所周知,Nvidia 驱动程序会给电脑带来很多问题,因此除非你确定这不是问题的原因,否则我不建议你这样做。

我通过重新安装默认驱动程序 (X.org) 解决了我的问题。您可以尝试相同的方法。可以通过从 Ubuntu 中的“附加驱动程序”菜单中选择相同的驱动程序来重新安装 X.org 驱动程序

我的发行版中的附加驱动程序菜单

或遵循这些脚步通过您的终端。

相关内容