Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the power supply can not be turned off after the Linux system is turned off

2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge about "how to solve the phenomenon that the power supply cannot be turned off after the Linux system is turned off." In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

If some motherboards do not automatically power off after shutdown and need to be powered off manually, please add:

#boot=/dev/sda

default=0

timeout=5

splashimage=(hd0,7)/boot/grub/splash.xpm.gz

hiddenmenu

title Fedora (2.6.23.1-42.fc8)

root (hd0,7)

kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1234 rhgb quiet acpi=force

initrd /boot/initrd-2.6.23.1-42.fc8.img

As long as you add the red sentence, you can shut down normally. The specific reasons are analyzed as follows:

The requested URL/i386/kernel/setup.c was not found on this server.

Reference:void __init setup_arch(char **cmdline_p)

{

unsigned long max_low_pfn;

paravirt_post_allocator_init();

dmi_scan_machine();

}

Dmi_scan_machine() retrieves DMI support information 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;

}

if (year < CONFIG_ACPI_BLACKLIST_YEAR) {

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 dmi_get_year gets DMI information that does not support ACPI, the red part of the information will be printed.

The kernel then believes ACPI is not supported, eventually causing the machine to fail to shutdown via ACPI.

"How to solve the phenomenon that the power supply cannot be turned off after the Linux system is turned off" is introduced here. Thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 268

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report