我是Ubuntu的新手,我试着让Ubuntu 20.04来运行我的联想瑜伽7i。
当你开始的时候,声音不起作用。
我在这上找到了ArchWiki教程。我遇到的问题是试图在initrd路径中添加/boot/acpi_重写,所以当我运行sudo update-grub时,我将从以下位置运行:
Found linux image: /boot/vmlinuz-5.11.0-34-generic
Found initrd image: /boot/initrd.img-5.11.0-34-generic
Found linux image: /boot/vmlinuz-5.11.0-27-generic
Found initrd image: /boot/initrd.img-5.11.0-27-generic
至:
Found linux image: /boot/vmlinuz-5.11.0-34-generic
Found initrd image: /boot/acpi_override /initrd.img-5.11.0-34-generic
Found linux image: /boot/vmlinuz-5.11.0-27-generic
Found initrd image: /boot/acpi_override /initrd.img-5.11.0-27-generic
本教程声明要更改通常位于/boot/grub/grub.cfg中的配置文件,但是当您转到grub.cfg时,有一条注释声明:
DO NOT EDIT THIS FILE
It is automatically generated by grub-mkconfig using templates
from /etc/grub.d and settings from /etc/default/grub
当我在grub.cfg中编辑initrd行时,内核惊慌失措,不允许我启动,但是我有可能编辑错了行。
有人知道在Ubuntu20.04上要更改哪些文件/行以将acpi_override添加到initrd吗?
谢谢!
发布于 2021-09-21 04:47:56
原来来自Archlinux的文档是不正确的。在步骤8中,指示您将以下代码添加到etc/default/grub中:
GRUB_CMDLINE_LINUX_DEFAULT="mem_sleep_default=deep"
GRUB_EARLY_INITRD_LINUX_CUSTOM="/boot/acpi_override"
这一行代码真正应该读的是
GRUB_CMDLINE_LINUX_DEFAULT="mem_sleep_default=deep"
GRUB_EARLY_INITRD_LINUX_CUSTOM="acpi_override"
https://askubuntu.com/questions/1364646
复制相似问题