Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] preventing PC sutdown by power button when running
Date: Fri, 11 Dec 2020 12:19:43
Message-Id: f74286cc-cad9-34d5-f1eb-6ab6ce466684@sys-concept.com
In Reply to: Re: [gentoo-user] preventing PC sutdown by power button when running by tastytea
1 On 12/11/2020 04:54 AM, tastytea wrote:
2 > On 2020-12-10 23:56-0700 Grant Taylor
3 > <gtaylor@×××××××××××××××××××××.net> wrote:
4 >
5 >> On 12/10/20 9:20 PM, thelma@×××××××××××.com wrote:
6 >>> How to prevent PC from shutdown when running when power button is
7 >>> pressed? Is it a function in a BIOS or OS?
8 >>
9 >> Press and release, in less than four seconds, is the OS. Four
10 >> seconds or longer is the BIOS.
11 >>
12 >> Try stopping acpid and seeing if that gets you the desired results.
13 >
14 > Nowadays (e)logind handles that. Setting
15 > HandlePowerKey=ignore
16 > in /etc/elogind/logind.conf should disable that (haven't tested).
17 >
18 > Kind regards, tastytea
19
20 Thank, will definitely try it and let you folks know.
21 But right now, I've managed to break the boot-loader, so this is the
22 priority.