Ubuntu 22.04 无法暂停

Gui*_*F93 14 suspend wayland 22.04

我更新到 Ubuntu 22.04,当我暂停计算机时出现问题: 我有这样的屏幕:

在此输入图像描述

我正在使用 NVIDIA 驱动程序 (nvidia-driver-470),并且使用的是 X11,自从更新以来,我无法再从登录会话切换到 Wayland。

在此输入图像描述

编辑(2022年4月23日):

$ sudo dmidecode -s bios-version
X751LN.302

$ free -h
               total        used        free      shared  buff/cache   available
Mem:            11Gi       1,7Gi       8,1Gi       270Mi       1,8Gi       9,4Gi
Swap:          2,0Gi          0B       2,0Gi


$ sysctl vm.swappiness 
vm.swappiness = 60

$ swapon -s
Filename                Type        Size        Used        Priority
/swapfile                               file        2097148     0       -2



$ sudo lshw -C memory
  *-firmware                
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: X751LN.302
       date: 01/30/2015
       size: 64KiB
       capacity: 6MiB
       capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi
  *-cache:0
       description: L2 cache
       physical id: 9
       slot: CPU Internal L2
       size: 512KiB
       capacity: 512KiB
       capabilities: internal write-back unified
       configuration: level=2
  *-cache:1
       description: L1 cache
       physical id: a
       slot: CPU Internal L1
       size: 128KiB
       capacity: 128KiB
       capabilities: internal write-back
       configuration: level=1
  *-cache:2
       description: L3 cache
       physical id: b
       slot: CPU Internal L3
       size: 4MiB
       capacity: 4MiB
       capabilities: internal write-back unified
       configuration: level=3
  *-memory
       description: System Memory
       physical id: c
       slot: System board or motherboard
       size: 12GiB
     *-bank:0
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          vendor: Micron
          physical id: 0
          serial: 00000000
          slot: ChannelA-DIMM0
          size: 4GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     *-bank:1
          description: DIMM [empty]
          product: [Empty]
          vendor: [Empty]
          physical id: 1
          serial: [Empty]
          slot: ChannelA-DIMM1
     *-bank:2
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          vendor: 0000
          physical id: 2
          serial: 0104AB19
          slot: ChannelB-DIMM0
          size: 8GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     *-bank:3
          description: DIMM [empty]
          product: [Empty]
          vendor: [Empty]
          physical id: 3
          serial: [Empty]
          slot: ChannelB-DIMM1
Run Code Online (Sandbox Code Playgroud)

根据 memtest 我认为我没有内存问题:

内存测试 在此输入图像描述

我设法通过编辑让 Wayland 回来

/usr/lib/udev/rules.d/61-gdm.rules

正如@ManOnTheMoon 在评论中建议的那样。

小智 21

经过几天的寻找解决方案,我终于找到了我昨天尝试过的解决方案之一,它终于起作用了!但我还没有进一步了解是否对我的笔记本电脑将来有影响,至少这个解决方案可以暂时帮助我。谁知道这也可以帮助其他朋友..

从以下参考文献(dhenry 的评论#2)中,我尝试使用此命令禁用 nvidia-resume 和 nvidia-suspend 服务:

systemctl disable nvidia-hibernate.service nvidia-resume.service nvidia-suspend.service
Run Code Online (Sandbox Code Playgroud)

来源: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-510/+bug/1970088

  • 22.04内更新后问题再次出现 (3认同)