1 |
On 13/11/19 4:55 pm, Mick wrote: |
2 |
> On Wednesday, 13 November 2019 06:48:11 GMT n952162 wrote: |
3 |
>> I've reinstalled gentoo from the gentoo repository and now my power |
4 |
>> button doesn't do a shutdown anymore. What do I have to do to have it |
5 |
>> issue a shutdown? This is an openrc system. |
6 |
>> |
7 |
>> I have this, but it doesn't work: |
8 |
>> |
9 |
>> $ cat /etc/acpi/events/powerbtn |
10 |
>> event=button[ /]power.* |
11 |
>> action=/sbin/poweroff |
12 |
> I don't have the above file, only /etc/acpi/events/default, which invokes '/ |
13 |
> etc/acpi/default.sh' and that's all my systems need to shutdown gracefully |
14 |
> when I press the power button. |
15 |
> |
16 |
> NOTE: I only press the power button momentarily. If I press and keep pressed |
17 |
> the power button for a few seconds, then the system powers off instantly |
18 |
> without a graceful shutdown (a.k.a. I then will get a hard shutdown with no |
19 |
> disk syncing or flushing of caches). |
20 |
> |
21 |
> |
22 |
>> On a different gentoo system I have, I have just the one line, the |
23 |
>> action line, in that file and the power-button works fine (whether |
24 |
>> there's causation there or not, I have no idea :-) ) |
25 |
> Judging from my systems I don't think the file you are using is necessary, |
26 |
> unless this is supposed to be a fix for some MoBos which do not work as |
27 |
> expected. |
28 |
> |
29 |
> |
30 |
>> I generally do /not/ press the power button while in my window manager, |
31 |
>> but first when I've logged off. Since that wasn't working, I tried |
32 |
>> inside my window manager ... I got a just a couple of lines that looked |
33 |
>> like they came from shutdown(), but too few (couldn't read them). |
34 |
>> |
35 |
>> Then, on startup, the filesystems needed fscking!!! |
36 |
> Does the same thing happen if you run '/sbin/shutdown -h now' ? |
37 |
> |
38 |
|
39 |
Hi, |
40 |
have you installed elogind? - for me it took over and replaced the |
41 |
acpi functions by intercepting the call beforehand. It also hijacks |
42 |
suspend hibernate. |
43 |
|
44 |
A couple of weks back it "broke" and is is recording the power button is |
45 |
pressed but doesnt take the actions required by its config file. |
46 |
"loginctl suspend" works ... sort of ... |
47 |
|
48 |
BillK |
49 |
|
50 |
|
51 |
Hi, |
52 |
have you installed elogind? - for me it took over and replaced the |
53 |
acpi functions by intercepting the call beforehand. It also hijacks |
54 |
suspend hibernate. |
55 |
|
56 |
A couple of weks back it "broke" and is is recording the power button is |
57 |
pressed but doesnt take the actions required by its config file. |
58 |
"loginctl suspend" works ... sort of ... |
59 |
|
60 |
BillK |