(in fact, that's exactly the situation that I've been confronted with
and have turned to this mailing list to help me with: X locked up, my
power-button was unresponsive so I had to force it down (holding the
power key down for 30 seconds), and on reboot TWO filesystems had to be
rebuilt by fsck, with substantial loss of organization and of data
(despite both being ext3/4 journaling filesystems - I just don't
understand that!) )
On 11/17/19 10:35, n952162 wrote:
And - although hitting the power button will clear up some situations,
if your hard disk is having trouble closing, shutdown() probably won't
be able to get around that and the shutdown will be like a power-loss
shutdown.
On 11/17/19 10:27, n952162 wrote:
There's a million ways a system can hang. Acpi is a mechanism for
shipping kernel events to user space. If user space isn't working,
acpi won't work. I think.
On 11/17/19 09:44, Dale wrote:
n952162 wrote:
okay, I've got ...
acpid is, by default, not in the default openrc run list [:blush:]
Solution:
sudo rc-update add acpid
On 11/13/19 07:48, n952162 wrote:
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!!!
I have a related question. If for some reason my system is locked
up, keyboard isn't working or something like that. If I have acpi
in working order, would hitting the power button be seen or would
that be the same as the keyboard and not be recognized? Anyone have
experience on this or read about someone who has ran into this?
Just curious but if the answer is yes, I may work on setting this up
and working.
Thanks.
Dale
:-) :-)