Hello All,
Does anybody know if the Power Button on the front of this appliance can be disabled to avoid accidental pushing and turning the system off?
Thanks
Solved! Go to Solution.
UPDATE:
I was able to achieve this by accesing the appliance BIOS (F2 during booting process) and enabling "Front Panel Security"
@Former Member
Hi Kyle,
Cant say this is something that will be supported, nor have I tested it, but...here's something that might get you through it.
https://superuser.com/questions/699905/change-behavior-of-linux-power-button
# Associated Files:
/etc/acpi/events/powerconf
/etc/acpi/actions/power.sh
This could also be reverted after an upgrade.
Best Regards,
Jon
This looks promising! I will test within a week or two and share results. Thank you @Former Member for the prompt response!
@Former Member
My first attempt failed at getting it to work. I replaced the power.sh default file by power-button-ignore.sh:
--------
#!/bin/sh
PATH=/sbin:/bin:/usr/bin
#will ignore power buttom presses but will log if pressed
logger "Power button was pressed"
-----------
After restarting ACPI service, it still gracefully shutdown. Could this be related to what the original powerconf says in COMMENT:
----------------
cat powerconf
# ACPID config to power down machine if powerbutton is pressed, but only if
# no gnome-power-manager is running
event=button/power.*
action=/etc/acpi/actions/power.sh
------------
Any chance we can disable that power gnome feature to allow the workaround to work? Is this somehting doable?
UPDATE:
I was able to achieve this by accesing the appliance BIOS (F2 during booting process) and enabling "Front Panel Security"
@Former Member
That is wayyyyyyyyy more elegant than what I was suggesting!
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.
Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership: