OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Hardware => Topic started by: Mikhail on July 02, 2018, 01:40:31 am
-
Faced an unusual problem, there is a question to the public. Really in ArcaOS (OS / 2) does not have a power-off function with the correct completion of tasks by pressing the power button? I searched everything, did not find it in the settings, can I have some additional software?
-
As far as I know, there is no support for doing a clean shutdown by pressing the power button. In theory APCI should support this and perhaps it does on some laptops but not on most systems.
You have to use the shutdown icon on the xcentre or choose it from the right click menu on the desktop or use cntrl-alt-del
-
If a monitor and keyboard are connected to the computer, there is no problem with this, but if this separate device is performing the function of a network media renderer, there will be difficulties.
-
How are you accessing the headless OS/2 box? There is x:\os2\install\shutdown.exe and a few shutdown utilities that I have not tested at http://hobbes.nmsu.edu/h-search.php?button=Search&key=shutdown&dir=%2F (http://hobbes.nmsu.edu/h-search.php?button=Search&key=shutdown&dir=%2F).
Most of these probably do not power off the system after shutdown so you'd still have to hold down the power button for a few seconds to power off.
-
The Renderer device does not need to be managed from the local workstation, its task is to receive the http stream and through it the content of the stream is reproduced, for example, audio through the USB audio device.
For the average user it is a box with one Power button and several ports (USB, Ethernet). And this button should be safe for the OS to shut down the box.
-
You should probably open a support ticket at Arca Noae, https://www.arcanoae.com/wiki/acpi (https://www.arcanoae.com/wiki/acpi) as I'm not knowledgeable enough on this.
-
In the ACPI toolkit there is a WaitButton sample. Maybe that can be used for some button input. There's also a poweroff sample.
I made something similar with an external micro controller. The controller reads the buttons and send the OS/2 system a message via the com port and the OS/2 daemon which receives the message shuts down the system. I've discussed part of it at comp.os.os2.programmers.misc a few months ago.
But I fear none of them is what you really want. I guess you want the same what the power button does on recent win boxes. Unfortunately TTBOMK we do not have it currently.
-
But I fear none of them is what you really want. I guess you want the same what the power button does on recent win boxes. Unfortunately TTBOMK we do not have it currently.
Copy %ETC%\acpid.cfg.sample to %ETC%\acpid.cfg and the line
; What do to when the Power button is pressed
; none = no action (default)
; off = power off
; suspend = suspend
; reboot = reboot the system
PowerButton = Off
might work. We'll wait for Mikhall to report.
-
I made some tries with both acpid.cfg and WaitButton. AFAIR, I didn't get a working solution. AFAIR, 'off' means simply power off, not shut down. I'm curious if a newer diver gives more comfort.
BTW: A clean shutdown with power-off can be executed by sending the setup string 'XSHUTDOWNNOW=POWEROFF,AUTOCLOSEVIO,NOCONFIRM;' to the desktop.
-
Mikhail has already created a ticket: https://mantis.arcanoae.com/view.php?id=1992 (https://mantis.arcanoae.com/view.php?id=1992)
-
I made some tries with both acpid.cfg and WaitButton. AFAIR, I didn't get a working solution. AFAIR, 'off' means simply power off, not shut down. I'm curious if a newer diver gives more comfort.
Testing with PowerButton=Off here, pressing the power button does cleanly turn the computer off perhaps 10-20 seconds after pressing the button, there is no sign that anything is happening until shutdown.
Restarting, the OS loads cleanly, no chkdsk.
-
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.
Copy %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
-
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.
Copy %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).
-
Here I just have to tap the power button.
-
Lucky guy. It remains to understand what helps you to get such a result and prevents it like me.
Of course, I am almost 100% sure that forced shutdown of the operating system with only one network task will not lead to problems, but I would like to believe that there is a normal solution for such a simple task.
-
Different implementations of the ACPI standard would be my guess. There's usually the official implementation and then various unofficial implementations, often used or pushed by MS. I believe we're using the official implementation.
-
Hi Andy.
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).
I just have "PSD=ACPI.PSD" on the config sys without the /noacpi, so I guess it is just a different ACPI standard on the machine. I can not make the power button to call the shutdown procedure. The screen brightness on the SL500 is not working also Fn+Home and Fn+End don't do anything on this machine.
Regards
-
Hi Andy.
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).
I just have "PSD=ACPI.PSD" on the config sys without the /noacpi, so I guess it is just a different ACPI standard on the machine. I can not make the power button to call the shutdown procedure. The screen brightness on the SL500 is not working also Fn+Home and Fn+End don't do anything on this machine.
Regards
I don't know what Fn+Home and Fn+End do on that machine but it _possible_ that adding the /noacpi could allow those to work.
-
Hi Andy
Sorry, I didn't understand you since you said "You can't use the /noacpi".
I would like to confirm that with /noacpi the power button is shutting down ArcaOS and the Fn+Home and Fn+End to increase the brightness of the screen are also working !!
Thanks.
-
Hi Andy
Sorry, I didn't understand you since you said "You can't use the /noacpi".
I would like to confirm that with /noacpi the power button is shutting down ArcaOS and the Fn+Home and Fn+End to increase the brightness of the screen are also working !!
Thanks.
Well, /noacpi is required for the brightness. It was not expected that the shutdown via power button would work with /noacpi.
-
I apologize for the retro posting.
But I would like to note that the problem has not been solved, since adding the /noacpi key does not allow the system to shut down correctly.
When loading, the disk check starts, this should not be the case.