pearce1340 Posted December 30, 2020 Share Posted December 30, 2020 Hi Everyone, I've done some searching already on this topic and can't find a solution that works for me, so I'm hoping I'm missing something really easy. I need to disable the 'off' command when the power button is pressed on my machine. I have a cat that likes to sleep on it and despite placing a cover etc... he still manages to turn the bloody thing off! lol I can't just unplug the button from the motherboard as I still want the ability to 'turn it on' the reason why is I have the Navi 10 reset problem and use a script to reset the card, which places my machine in standby mode. I'm hoping there is a really easy way I can just change the button's behaviour in linux - so that it does nothing when pressed if already on. I'm using the release candidate 6.9 of Unraid and my motherboard is a X570 Aurus Xtreme (may help). Thanks, Steve Quote Link to comment
itimpi Posted December 30, 2020 Share Posted December 30, 2020 Not sure it is that easy I believe that the behaviour of powering off on a long press is probably baked into the BIOS so outside the control of the OS. Therefore if it is possible it is probably a BIOS setting somewhere. Quote Link to comment
trurl Posted December 30, 2020 Share Posted December 30, 2020 2 hours ago, pearce1340 said: unplug the button from the motherboard and plug it in to another button (you may need to make one) the cat can't access. Quote Link to comment
sonic6 Posted December 31, 2020 Share Posted December 31, 2020 disabling the external power button is also interesting for me. my bios doesn't offers an option and i can't unplug the button, because it is on the board (see the picture) Quote Link to comment
JorgeB Posted December 31, 2020 Share Posted December 31, 2020 14 hours ago, pearce1340 said: I have a cat that likes to sleep on it and despite placing a cover etc... he still manages to turn the bloody thing off! lol You could always upgrade to a dog One solution is to rename the script that handles ACPI events, e.g.: mv /etc/acpi/acpi_handler.sh /etc/acpi/acpi_old.sh This would need to be done after every boot, with the go file or with a user script, also note that a long button press will still do a hard shutdown, as that's not software controlled. P.S. pretty sure that ACPI script won't be missed by anything else but not 100% sure. 1 1 Quote Link to comment
sonic6 Posted December 31, 2020 Share Posted December 31, 2020 Does the NUT Service for shutting down the Server uses the ACPI script? Quote Link to comment
JorgeB Posted December 31, 2020 Share Posted December 31, 2020 1 hour ago, sonic6 said: Does the NUT Service for shutting down the Server uses the ACPI script? I would think it would call shutdown directly, that script if just for handling ACPI events, like a button press. 1 Quote Link to comment
pearce1340 Posted January 2, 2021 Author Share Posted January 2, 2021 On 12/31/2020 at 8:08 AM, JorgeB said: You could always upgrade to a dog One solution is to rename the script that handles ACPI events, e.g.: mv /etc/acpi/acpi_handler.sh /etc/acpi/acpi_old.sh This would need to be done after every boot, with the go file or with a user script, also note that a long button press will still do a hard shutdown, as that's not software controlled. P.S. pretty sure that ACPI script won't be missed by anything else but not 100% sure. This is amazing, its exactly what I needed. Before you ask, not the dog... the move command lol. I've stuck it in a user script to run when the array first starts - which should do the trick! Little b&%$%d occasionally hits the reset button with a claw as well... so I'll disable that 1 Quote Link to comment
xlucero1 Posted February 5, 2023 Share Posted February 5, 2023 (edited) Has this been updated with any of the newest 6.10+, 6.11+ versions of Unraid? Ty Edited February 5, 2023 by xlucero1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.