Still shutdown issues with my server, no matter what i do

Hi all,

i know there are already threads who handle this issue, but i still cant fix it.

I have a home server and using an asus mainboard. truenas scale 25.04.2.6 installed. every time the server runs a few days and i want to shut it down, it wont shut down the hardware. i hear that the hdds are turning down and i checked that the hdmi and usb interface are without any signals, but the fans are still running and all i can do is to press and hold the power button to do a hard system shutdown. if my server is only running for a few hours the shutdown runs well.

It seems to be a known problem with truenas that there are shutdown problems, as it seems, because i found some threads like HERE and HERE and on reddit

I already set up everything in BIOS like ErP on and so on but i still have the issue. I mean how hard can it be to tell the system to shut down? Why is this such an problem on some systems?

I already tried some Init/Shutdown Scripts like “midclt call system.shutdown && sync && poweroff -f“ but with no luck at all.

Are there any recommendations from you all how to find the problem? Thank you!

This is almost certainly a power state issue with one of your motherboard components. I went down this road with a motherboard, an Asus one at that, which are generally high quality boards and BIOS’s but eventually settled for merely having it shutdown 90% of the time or so with some shutting off of unused usb ports. I traced my issue all the way to the power states of one of the USB controllers used in the motherboard, but never got it to completely fix, just mostly. The good thing with mine is I determined through the logs that things were all cleanly unmounted and so cutting power was not harmful at that point.. Out of curiosity, what motherboard do you have? Start with turning off controllers on the motherboard in the BIOS you don’t use like audio, usb, etc.

edit- the computer I have does this in any flavor of Debian Linux, most notably Proxmox, so the issue is not going to be Truenas specific, fortunately or unfortunately.. its further up in the linux kernel.

Thanks for your reply! I have an ASUS Prime H310M-A R2.0/CSM Mainboard. I will try to disable all components i dont need, maybe that will help…

I have been trying to figure out the same kind of issue for over a month (keeping the system up for more than a day, try to shut it down, OS is off, but hardware is still running). I also have an Asus motherboard. After a lot of digging and trial and error, I found a solution that seems to be consistently working. Turning off Intel PTT (Platform Trust Technology) and TPM (Trusted Platform Module) from the BIOS seems to fix the issue. My system has been consistent for the last week. You can find more details in this reddit post My Arch Linux won’t shut down properly sometimes which also refers to a topic in the Arch Linux forum ([SOLVED] Pc not finishing the shutdown process). Hope the solution works for you as well.

PS: I cannot post links for some reason, but theses are the exact titles of the reddit post and the forum topic.

When you join the forums a bot will DM you a tutorial that you have to complete (takes a minute) to be able to post pictures/links.

I’ve now reached the point where I’ve sent my power supply in under warranty and ordered a new one from a different manufacturer. Maybe its an PSU issue, maybe the motherboard. im out of knowledge now. New PSU is arriving tomorrow, then we’ll see. But i will try your BIOS settings aswell. Im not sure how to disable TPM completely on this board but i will check that. Thank you so far!

1 Like

I can’t speak directly to your specific problem because I don’t have that motherboard, but I remember reading something about this online. An internet search brought up the following:

The issue of a Linux PC not fully powering off (fans/LEDs stay on) is a common problem with specific motherboard models, including the ASUS Prime H310M-A R2.0/CSM

. The solution usually involves modifying specific settings within the motherboard’s BIOS/UEFI.

Steps to Enable Complete Shutdown in BIOS

  1. Enter BIOS/UEFI Utility: Power on your computer and repeatedly press the Delete or F2 key on your keyboard to enter the BIOS setup.

  2. Switch to Advanced Mode: If you land on the EZ Mode screen, press the F7 key to switch to Advanced Mode.

  3. Navigate to Advanced Settings: Use the arrow keys to go to the Advanced tab.

  4. Access PTT/TPM Settings:

    • Look for a setting related to PTT (Platform Trust Technology) or TPM (Trusted Platform Module) configuration. The exact location and name may vary, but it’s often under a “Trusted Computing” or “Security” submenu.

    • Disable this setting (Intel PTT or AMD fTPM). This has been reported by other users with similar ASUS motherboards to fix the shutdown issue.

  5. Access APM Configuration (Optional):

    • Go to the Advanced tab and select APM Configuration.

    • Look for the ErP Ready or Power On By PCI-E setting and ensure it is set to Disabled or an appropriate low-power state (e.g., “Enable(S4+S5)”) to prevent unwanted wake-up events.

  6. Disable Fast Boot:

    • Navigate to the Boot tab.

    • Find the Fast Boot option and set it to Disabled.

  7. Save and Exit: Press the F10 key to save your changes and exit the BIOS utility, then reboot your system. The computer should now perform a complete power off when you shut down from Linux.

Additional Steps (if needed)

  • Update BIOS: Ensure your motherboard is running the latest BIOS version available from the official ASUS support website. Outdated firmware can sometimes cause compatibility issues with modern operating systems.

  • Check Linux Kernel/Drivers: If the issue persists, it may be related to a specific Linux kernel version or driver (e.g., Nvidia drivers). Check forums for your specific Linux distribution for any kernel parameters or patches that might be necessary.

Maybe something here will be helpful. Good luck.

System:
TrueNAS 25.04.2.6 | Supermicro X9SCM-F | Xeon E3-1240V2
32GB ECC RAM | PNY 120GB SSD for boot
3 WD Red 4TB + 1 HGST Deskstar NAS 4TB in RaidZ2
Toshiba 128GB M.2 SSD