Page 1 of 1
Linux hack to disable the ATX power switch?
Posted: Fri Aug 15, 2008 11:25 am
by lparsons
Does anyone know if there is a way to setup Linux to ignore the ATX power and reset switches? I am administering some Linux workstations and some users have developed a bad habit of rebooting them without warning while sitting at them - which of course makes my life much more difficult.
I would like to set Linux to simply ignore the power and reset switches altogether - so that a user could only reboot or shutdown with a software command.
Any ideas?
Posted: Fri Aug 15, 2008 12:30 pm
by gongo2k1
these are handled via acpi. the reboot and shutdown console commands require su.
i think you'll have to remove the users from the powersave group (or whatever group is granted permissions to do this). then make sure that the power button event is handled by acpid/apmd/powersaved with a shell script that does nothing.
afaik, there's no way to disable the reset switch, it's hard-wired to the power supply.
finally, i'm having a hard time buying the story that users are randomly rebooting their machines. it's counter-productive because then they lose their work. if you need to do administrative tasks, try to do them at the very beginning of the day, during lunch, or at the very end of the day that way the users can work without interruption and you don't have to fight with them to get your stuff done. better yet, see if you can script some of the tasks to happen off-hours.
Posted: Fri Aug 15, 2008 12:44 pm
by lparsons
gongo2k1 wrote:these are handled via acpi. the reboot and shutdown console commands require su.
I may have been unclear. They are not using the reboot or shutdown commands, they are hitting the switches. I want to disable the power and reset switches so they are not responded to.
afaik, there's no way to disable the reset switch, it's hard-wired to the power supply.
I know the reset switch can be disconnected with no significant harm to the system. I've done that before. But I want to disable the power switch and use only wake-on-lan, if possible
finally, i'm having a hard time buying the story that users are randomly rebooting their machines. it's counter-productive because then they lose their work.
I always appreciate people accusing me of lying. But I'll let it slide this time.
if you need to do administrative tasks, try to do them at the very beginning of the day, during lunch, or at the very end of the day that way the users can work without interruption and you don't have to fight with them to get your stuff done. better yet, see if you can script some of the tasks to happen off-hours.
The problem isn't limited to administrative tasks. These are shared workstations, and sometimes I need to do work on them to - my job is not limited to sysadmin, rather sysadmin is part of my job.
And then there are other tasks that they ask me to do during the day (like software installs) so that they can test the result and provide immediate feedback.
The users are using the reset and power switches to reboot these shared workstations at random times of the day. Said users couldn't use reboot or shutdown commands if they wanted to, they don't have permission for it.
Basically, the users see something wrong, and perceive the system to be crashed (when it isn't) and then hit the power or reset button without checking to see what is actually happening on the system.
I need to prevent them from taking down the system without warning.
Posted: Fri Aug 15, 2008 5:57 pm
by aaa
There's the BIOS 4-second delay option, then you hope that they can't figure it out (they often can't). There might be an option in the BIOS to disable it totally but I don't think it's always there.
Then after you set that option, you tell Linux to ignore power button events in the ACPI scripts like gongo2k1 said. You can even make a reminder pop up to tell them not to do that.
Last resort is physically unplugging the button from the motherboard. Both power and reset go to the motherboard.
Of course, you should probably put a sign up or something, whether you disable the button or not. They might end up unplugging the machines from the wall or something.
Posted: Fri Aug 15, 2008 8:38 pm
by gongo2k1
aaa wrote:They might end up unplugging the machines from the wall or something.
end users can be so... creative... at times!
ah, yes, the memories of providing desktop support through my college years...
Posted: Fri Aug 15, 2008 10:50 pm
by gongo2k1
lparsons wrote:I always appreciate people accusing me of lying. But I'll let it slide this time.
whoa, take it easy...
i think you missed the part where i answered your question.

Posted: Sun Aug 24, 2008 7:46 pm
by mikeh
What thinkpad has a reset button?
Posted: Mon Aug 25, 2008 9:53 am
by whizkid
mikeh wrote:What thinkpad has a reset button?
Most of them.