Score:0

Adding image to initrd image

ธง 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!

Score:0
ธง ng

ปรากฎว่าเอกสารจาก 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"

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา