Gentoo Archives: gentoo-user

From: tastytea <gentoo@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] preventing PC sutdown by power button when running
Date: Fri, 11 Dec 2020 11:54:48
Message-Id: 20201211125437.2cabafca@ventiloplattform.tastytea.de
In Reply to: Re: [gentoo-user] preventing PC sutdown by power button when running by Grant Taylor
1 On 2020-12-10 23:56-0700 Grant Taylor
2 <gtaylor@×××××××××××××××××××××.net> wrote:
3
4 > On 12/10/20 9:20 PM, thelma@×××××××××××.com wrote:
5 > > How to prevent PC from shutdown when running when power button is
6 > > pressed? Is it a function in a BIOS or OS?
7 >
8 > Press and release, in less than four seconds, is the OS. Four
9 > seconds or longer is the BIOS.
10 >
11 > Try stopping acpid and seeing if that gets you the desired results.
12
13 Nowadays (e)logind handles that. Setting
14 HandlePowerKey=ignore
15 in /etc/elogind/logind.conf should disable that (haven't tested).
16
17 Kind regards, tastytea
18
19 --
20 Get my PGP key with `gpg --locate-keys tastytea@××××××××.de` or at
21 <https://tastytea.de/tastytea.asc>.

Replies

Subject Author
Re: [gentoo-user] preventing PC sutdown by power button when running thelma@×××××××××××.com