Linux hack to disable the ATX power switch?
-
lparsons
- Sophomore Member
- Posts: 154
- Joined: Sun Dec 18, 2005 10:59 pm
- Location: Minneapolis, MN
- Contact:
Linux hack to disable the ATX power switch?
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?
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?
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.
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.
-
lparsons
- Sophomore Member
- Posts: 154
- Joined: Sun Dec 18, 2005 10:59 pm
- Location: Minneapolis, MN
- Contact:
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.gongo2k1 wrote:these are handled via acpi. the reboot and shutdown console commands require su.
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 possibleafaik, there's no way to disable the reset switch, it's hard-wired to the power supply.
I always appreciate people accusing me of lying. But I'll let it slide this time.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.
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.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.
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.
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.
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.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Lenovo Ideapad Yoga 13...white slider switch question
by mr.rhtuner » Mon Feb 27, 2017 2:23 pm » in IdeaPad Series Laptops - 0 Replies
- 1876 Views
-
Last post by mr.rhtuner
Mon Feb 27, 2017 2:23 pm
-
-
-
X220 thinks that the hardware wifi switch is off (help and discussion)
by axur-delmeria » Mon Apr 03, 2017 12:42 pm » in ThinkPad X200/201/220 and X300/301 Series - 4 Replies
- 1009 Views
-
Last post by axur-delmeria
Tue Apr 04, 2017 11:08 pm
-
-
- 18 Replies
- 564 Views
-
Last post by karotlopj
Wed Jun 14, 2017 2:58 am
-
-
ThinkPad T400 - Should I "Permanently Disable" Computrace?
by bakery2k » Sat Mar 04, 2017 8:38 pm » in ThinkPad T400/410/420 and T500/510/520 Series - 4 Replies
- 1228 Views
-
Last post by RealBlackStuff
Sun Mar 05, 2017 8:28 am
-
Who is online
Users browsing this forum: No registered users and 1 guest




