Poweroff but reboot then
Closed this issue · 12 comments
Hi there, I just install Mojave 10.14.6 (Build 18G103) on my Optilex 7020 with an i5-4590 CPU and no DGPU, following your wonderful installation guide. iMac15,1 was the choice, and it could boot into the OSX.
The problem is, when I shutdown the computer, it cuts off the power, but then reboot. I have tried to reinstall and follow every steps in the guide, for at least 3 times, and I also tried to generate SSDT-PLUG and SSDT-EC from my original DSDT, but the problem is still there. But when boot into the OSX base system with the installer USB device, it will shutdown normally. Any idea about this?
By the way, I'm a coder, I can do something just with the key point of the problem.
Well, it's a really great installation guide of yours, really thanks for that
I can’t reproduce this on mine with Catalina, Big Sur or Monterey.
Either you forgot some step or Mojave needs additional fixes.
The only way for me to reproduce is to install Mojave too. I won’t have time for that anytime soon.
Does it happen with any of the OS versions I mentioned?
No worries, I like to tinker just didn't have any disks ready or time but things can change fast around here. Found an old 30gb ssd I forgot about and grabbed the latest installer, which is still from 2019, I guess the 2021 security update released last month for it isn't integrated in the installer.
Forgot how fast older macOS installs when they don't need to seal the entire filesystem. Installed using current EFI and iMac15,1 in about 15 minutes. Shutting down just shuts the machine down normally. I can see a CPU Halted
message pass by as one of the latest message before it turns off and remains off.
What do you see on yours? It is pretty weird it turns back on cuz macOS just sends a power down message the same way Linux or Windows would do. It turning on again can have some cause like bios or ACPI but if you have the latest bios and use the default ACPI patches it should work.
My best guess would be that AC Recovery
in the bios has been enabled or set to last instead of disabled. If you loaded bios defaults before making changes that should be off. Can't think of anything else that would cause the system to turn back on after sending a shutdown to it.
I'll apply the latest updates to it and see if that breaks anything. If it doesn't then I don't know what else I can try to reproduce. There were 2 macOS updates and one Safari update on my clean install of 10.14.6 -- shouldn't take too long to install those. I'll update here again once its done.
For some reason the security update keeps failing at around 400mb downloaded and then says I'm not connected to the internet even though I am connected. I can't find 18G103 on the Apple website, but they have a newer security update 18G9323
released on the 5th of August: https://support.apple.com/kb/DL2078 -- I'll download it manually and install it.
Got some nags to upgrade to Big Sur already. Luckily on Mojave we can disable all of those.
softwareupdate --ignore "macOS Catalina"
softwareupdate --ignore "macOS Big Sur"
Apple removed that option in Catalina for no reason other than to nag people into upgrading. Luckily we can use SMBIOS to block Big Sur or Monterey nags when on Catalina.
Update installed successfully and in true Apple fashion the update has now also disabled the ignore option in Mojave. Before installing the update it was hiding Big Sur properly and now it doesn't anymore.
Ignoring Apple's push to upgrade, the system still turns itself off properly after installing all available updates. I have to conclude I can't reproduce it.
As sanity test can you confirm you can shutdown properly in Windows and Linux? I'm also curious if it happens when booted from the installer and shutting it down from there, does it happen there too? I would expect no operating system to be able to shut it down properly if it's something to do with the bios.
I am confident that my ACPI patches are not the cause of this, I've had Mojave installed before and also tried High Sierra at some point. I think I ran into usb issues on High Sierra but don't recall anymore, it been over a year that I tried older macOS. I'm only using Catalina and Monterey on my 7020s.
We have the same hardware, I didn't add any cards other than Airport cards for wifi/bt. I can't do much more than a clean install using the same EFI, same h/w and same bios settings. In theory we should have exactly the same configuration.
Let me know what it shows when shutting down, you may have to film it with a mobile phone as it can scroll really fast. On mine it shows the CPU halted
message pretty much last before turning off and staying off. You didn't add any hardware right? Like pci-e device or usb thats always plugged in.
Yours turns off and then instantly turns back on? Does it fully turn off including the led on the power supply? Or does it remain on and just ends up rebooting? Do you see the CPU Halted
message at all?
I don't think there's much else I can do then guess. You're the first to report an issue like this and I haven't run into this myself. I did have instant wake ups on one hacks but unrelated to this repo. And thats sleep related. Shutting down always worked. I can really only help when I can reproduce the issue.
Wow, thats is good information to know. Weird the computer didn't notify you about the RAM before. I guess it needs to fail the short self test before it notifies you but the RAM might have been faulty for a while. I will remember to do a full memory test when I run into weird rebooting issues. Thank you for sharing!