The solution to the power cannot be turned off after the Linux system is shut down


If some motherboards do not automatically turn off the power after shutdown, you need to manually turn off the power, pleasegrubadd:


title Fedora (
    root (hd0,7)
    kernel /boot/vmlinuz- ro root=LABEL=/1234 rhgb quiet acpi=force
    initrd /boot/initrd-

As long as the sentence in red is added, it can be shut down normally. The specific reasons are analyzed as follows:

After the Kernel gets up, it will execute arch/i386/kernel/setup.c


void __init setup_arch(char **cmdline_p)
    unsigned long max_low_pfn;

Dmi_scan_machine() will get information about DMI support from BIOS. ACPI driver will pass


static int __init blacklist_by_year(void)
    int year = dmi_get_year(DMI_BIOS_DATE);
    /* Doesn’t exist? Likely an old system */
    if (year == -1) {
        printk(KERN_ERR PREFIX “no DMI BIOS year, “
            “acpi=force is required to enable ACPI\n”
        return 1;
    /* 0? Likely a buggy new BIOS */
    if (year == 0) {
        printk(KERN_ERR PREFIX “DMI BIOS year==0, “
            “assuming ACPI-capable machine\n” );
        return 0;
        printk(KERN_ERR PREFIX “BIOS age (%d) fails cutoff (%d), “
               “acpi=force is required to enable ACPI\n”,
               year, CONFIG_ACPI_BLACKLIST_YEAR);
        return 1;
    return 0;

To get information, once the DMI information obtained by dmi_get_year does not support ACPI, the red part of the information will be printed.

Then the kernel thinks that ACPI is not supported, and eventually the machine cannot be shut down through ACPI.

Recommended Today

iOS programming to modify the system volume

The AVFoundation framework of iOS provides basic audio and video playback tools, and we can basically rely on the classes provided in it to complete most of the audio and video playback tasks. However, Apple's strategy is more conservative in the processing of the output volume of audio playback. althoughAVPlayerandAVPAudiolayerThese classes provide volume adjustment functions, […]