我更新到了Ubuntu22.04,当我挂起计算机时出现了一些问题:我有一个屏幕:

我正在使用NVIDIA驱动程序(nvidia驱动程序-470),我在X11上,自从更新之后,我就不能再从登录会话切换到Wayland了。

编辑(23/04/2022):
$ 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我想我没有内存问题,根据memtest:


我通过编辑把韦兰弄回来了
/usr/lib/udev/udev.d/61-udev.规则
正如@ManOnTheMoon在评论中所暗示的那样。
发布于 2022-04-27 07:31:15
在寻找了几天的解决方案之后,我终于找到了昨天尝试过的解决方案之一,它终于成功了!但我还没有进一步了解未来对我笔记本电脑的影响,至少现在这个解决方案可以帮助我。谁知道这也能帮到其他朋友。
从下面的引用(在dhenry的注释2中),我尝试使用以下命令禁用nvidia-简历和nvidia-挂起服务:
systemctl disable nvidia-hibernate.service nvidia-resume.service nvidia-suspend.service来源:https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-510/+bug/1970088
发布于 2022-05-03 08:08:46
对于其他拥有相同bug,但集成卡的人来说,这似乎是Ubuntu22.04中的新bug。
发布于 2022-06-15 20:01:45
对我来说,Ubuntu20.04附带的NVidia驱动程序510允许系统正确挂起,但是在安装了Cuda11.7之后,它将驱动程序更新为515,它不挂起/hibernate。现在,当我尝试挂起,它只是回到锁定屏幕,但没有断电。
解决这个问题的方法可以在..。https://forums.developer.nvidia.com/t/ubuntu-20-04-installing-cuda-changes-nvidia-drivers-and-breaks-suspend/196220。这需要几个步骤才能实现,但在完成之后,我的系统现在就挂起并正确地唤醒了。
基本上,515驱动程序(或者至少是cuda 11.7安装包中的驱动程序)没有安装/链接以下文件.
/lib/systemd/system/nvidia-*(hibernate, resume, suspend)
/lib/systemd/system-sleep/nvidia
/usr/bin/nvidia-sleep.sh需要手动安装这些文件,然后将它们正确地链接到systemd文件结构中,以使挂起工作。一旦您将上面的文件收集到一个目录中,上面链接中的脚本就会自动完成这一操作。我从我的20.04系统中复制了这些文件,以便在22.04中使用,尽管他也在链接中发布了这些文件的文本版本。
https://askubuntu.com/questions/1403741
复制相似问题