Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] power button to shutdown for openrc?
Date: Wed, 13 Nov 2019 07:01:30
Message-Id: 07204bf7-63ea-4ace-2fdf-ca8a8dea7a86@web.de
I've reinstalled gentoo from the gentoo repository and now my power
button doesn't do a shutdown anymore.  What do I have to do to have it
issue a shutdown?  This is an openrc system.

I have this, but it doesn't work:

$ cat  /etc/acpi/events/powerbtn
event=button[ /]power.*
action=/sbin/poweroff

On a different gentoo system I have, I have just the one line, the
action line, in that file and the power-button works fine (whether
there's causation there or not, I have no idea :-) )

I generally do /not/ press the power button while in my window manager,
but first when I've logged off.  Since that wasn't working, I tried
inside my window manager ... I got a just a couple of lines that looked
like they came from shutdown(), but too few (couldn't read them).

Then, on startup, the filesystems needed fscking!!!

Replies

Subject Author
Re: [gentoo-user] power button to shutdown for openrc? Mick <michaelkintzios@×××××.com>
Re: [gentoo-user] power button to shutdown for openrc? Philip Webb <purslow@××××××××.net>
Re: [gentoo-user] power button to shutdown for openrc? [SOLVED] n952162 <n952162@×××.de>