Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread Dale
Jack wrote:
> On 12/10/20 11:20 PM, the...@sys-concept.com wrote:
>> How to prevent PC from shutdown when running when power button is
>> pressed?
>> Is it a function in a BIOS or OS?
> You could always unplug the wire from the power button to the
> motherboard.
>
>


I've also seen where people had two or more switches in series and they
all had to be pressed at the same time to power off.  I've seen people
do that with reset buttons too.  It's just a momentary switch and ebay
has them by the dozen pretty cheap.  It's effective.

But, if one wants to really disable it, your way is easiest.  It just
depends on how far a person wants to go with this.

Dale

:-)  :-) 



Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread Jack

On 12/10/20 11:20 PM, the...@sys-concept.com wrote:

How to prevent PC from shutdown when running when power button is pressed?
Is it a function in a BIOS or OS?

You could always unplug the wire from the power button to the motherboard.



Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread thelma
On 12/11/2020 04:54 AM, tastytea wrote:
> On 2020-12-10 23:56-0700 Grant Taylor
>  wrote:
> 
>> On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
>>> How to prevent PC from shutdown when running when power button is
>>> pressed? Is it a function in a BIOS or OS?  
>>
>> Press and release, in less than four seconds, is the OS.  Four
>> seconds or longer is the BIOS.
>>
>> Try stopping acpid and seeing if that gets you the desired results.
> 
> Nowadays (e)logind handles that. Setting 
>   HandlePowerKey=ignore
> in /etc/elogind/logind.conf should disable that (haven't tested).
> 
> Kind regards, tastytea

Thank, will definitely try it and let you folks know.
But right now, I've managed to break the boot-loader, so this is the
priority.




Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread tastytea
On 2020-12-10 23:56-0700 Grant Taylor
 wrote:

> On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
> > How to prevent PC from shutdown when running when power button is
> > pressed? Is it a function in a BIOS or OS?  
> 
> Press and release, in less than four seconds, is the OS.  Four
> seconds or longer is the BIOS.
> 
> Try stopping acpid and seeing if that gets you the desired results.

Nowadays (e)logind handles that. Setting 
  HandlePowerKey=ignore
in /etc/elogind/logind.conf should disable that (haven't tested).

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpv5yVdr_7b1.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread J. Roeleveld
On 11 December 2020 07:56:20 CET, Grant Taylor 
 wrote:
>On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
>> How to prevent PC from shutdown when running when power button is
>pressed?
>> Is it a function in a BIOS or OS?
>
>Press and release, in less than four seconds, is the OS.  Four seconds 
>or longer is the BIOS.
>
>Try stopping acpid and seeing if that gets you the desired results.

If you want to be able to disable the whole switch, you could try adding a 
"killswitch".

See: https://youtu.be/yBj02EBj_dQ

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread Grant Taylor

On 12/10/20 9:20 PM, the...@sys-concept.com wrote:

How to prevent PC from shutdown when running when power button is pressed?
Is it a function in a BIOS or OS?


Press and release, in less than four seconds, is the OS.  Four seconds 
or longer is the BIOS.


Try stopping acpid and seeing if that gets you the desired results.



--
Grant. . . .
unix || die



Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread J. Roeleveld
On 11 December 2020 05:20:55 CET, the...@sys-concept.com wrote:
>How to prevent PC from shutdown when running when power button is
>pressed?
>Is it a function in a BIOS or OS?

When booted, OS.
But the 5s press is BIOS.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.