Điểm:0

Adding image to initrd image

lá cờ ng

I am new to Ubuntu and tried to get Ubuntu 20.04 to run on my lenovo yoga 7i.

The sound does not work when you start.

I found this tutorial on ArchWiki. The issue I am running into is trying to add /boot/acpi_override to the initrd path so when I run sudo update-grub I go from:

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

To:

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

The tutorial states to change the configuration file usually located in /boot/grub/grub.cfg but when you go to grub.cfg there is a comment stating:

DO NOT EDIT THIS FILE 
It is automatically generated by grub-mkconfig using templates
from /etc/grub.d and settings from /etc/default/grub

When I did edit the initrd line in grub.cfg, the kernel panicked and would not allow me to boot, but there is a chance I edited the wrong line

Does anyone know what file/line to change to add acpi_override to initrd on Ubuntu 20.04?

Thanks!

Điểm:0
lá cờ ng

Hóa ra tài liệu từ Archlinux là không chính xác. Ở bước 8, bạn được hướng dẫn thêm đoạn mã sau vào etc/default/grub:

 GRUB_CMDLINE_LINUX_DEFAULT="mem_sleep_default=deep"
 GRUB_EARLY_INITRD_LINUX_CUSTOM="/boot/acpi_override"

Dòng mã này thực sự nên đọc là gì

 GRUB_CMDLINE_LINUX_DEFAULT="mem_sleep_default=deep"
 GRUB_EARLY_INITRD_LINUX_CUSTOM="acpi_override"

Đăng câu trả lời

Hầu hết mọi người không hiểu rằng việc đặt nhiều câu hỏi sẽ mở ra cơ hội học hỏi và cải thiện mối quan hệ giữa các cá nhân. Ví dụ, trong các nghiên cứu của Alison, mặc dù mọi người có thể nhớ chính xác có bao nhiêu câu hỏi đã được đặt ra trong các cuộc trò chuyện của họ, nhưng họ không trực giác nhận ra mối liên hệ giữa câu hỏi và sự yêu thích. Qua bốn nghiên cứu, trong đó những người tham gia tự tham gia vào các cuộc trò chuyện hoặc đọc bản ghi lại các cuộc trò chuyện của người khác, mọi người có xu hướng không nhận ra rằng việc đặt câu hỏi sẽ ảnh hưởng—hoặc đã ảnh hưởng—mức độ thân thiện giữa những người đối thoại.