121
Hardware / Re: Turn off PC by power button
« on: July 04, 2018, 03:05:26 am »Hi
I usually disable any shutdown from the power button on other OSes, since I don't like when I accidentally press them, but I wanted to try this procedure on a Thinkpad SL500 machine I have right here.
- ArcaOS 5.0.2
- Thinkpad SL500 - 2746-CTO - Intel Core 2 Duo P7370 / 2 GHz
- ACPI 3.23.08 - 2 Cores recognized on boot.
- XWorkplace shutdown works and can turn off the computer
I tried the procedure listed by Lewis on the ticket.QuoteCopy %ETC%\acpid.cfg.sample to %ETC%\acpid.cfg (usually, %ETC% will be <boot volume>\MPTN\ETC).
Open %ETC%\acpid.cfg in your favorite text editor.
Locate the "What to do if the Power button is pressed" section of the [ACPID] stanza.
Ensure that the line reads: PowerButton = Off
If necessary, edit the file and save.
Reboot to activate the settings in the ACPID.CFG file.
The acpid.cfg file is located inside x:\MPTN\ETC. The ETC on the config.sys points the same.
After the reboot. I preset the power button a there was no shutdown with the button. I hold it for like 3 seconds, trying not to do a "hard power off" and no luck.
I also updated to ACPI 3.23.09 and it does not work also.
I even tried changing "Off" to "off" just in case, rebooted and it also does not work.
Regards
One other thing, you can't use the /noacpi switch on the PSD line in the config.sys (I use it so that the screen brightness can be changed via the FN keys). You need to hold the key down for 1/2s to 1 sec, if it is going to work. 3s-4s will do a BIOS poweroff (bypassing ACPI and thus no processing to do a clean shutdown).