Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Disable External Power Button

Featured Replies

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

  • Community Expert

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.

  • Community Expert
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.

  • Community Expert

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)

PXL_20201231_064113109.jpg

  • Community Expert
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.

 

 

 

 

  • Community Expert

Does the NUT Service for shutting down the Server uses the ACPI script?

  • Community Expert
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.

  • Author
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

  • 2 years later...

Has this been updated with any of the newest 6.10+, 6.11+ versions of Unraid? 
Ty

Edited by xlucero1

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.