So I recently got an Alienware desktop computer because there was a big sale on it, and then I instantly installed Linux on it after doing a bios update. Everything works great apart from one thing, I can only shut the computer off with the power button or else it will quickly turn right back on after running
sudo shutdown -h now or even just using the shut-down button in the DE. It is different from a reboot since the computer makes a clicking sound that it usually does when shutting down, which is then followed by another click that turns it back on, as if I have pressed the power button, and the OS boots as normal.
I have tried turning off Wake on Lan in the bios, Allow USB devices to wake device, and any other options related to automatically waking the device. The problem is still there and will not go away. This happened both on openSUSE Tumbleweed, and Arch. I then installed Windows back to see if maybe it's just a hardware issue and as expected, the computer stays off when pressing "shut down" in Windows.
Is there any way to tell what is causing this shutdown or other possible solutions to this issue?
EDIT: My computer is using an AMD Ryzen 5900X, the model number of the device is AWAUR10-A815BLK.