You are not logged in.

#1 2013-09-01 17:36:02

wwn
Member
Registered: 2013-03-25
Posts: 70

[Solved] who manages power?

Hello all,

I made a fresh installation on a Thinkpad T420s and wonder about power management.
If I press the powerbutton, machine goes sleeping. But where that behaviour is configured?

1 )   /etc/systemd/logind.conf
all entires are commented out (changig does not change behaviour)

2)  acpid ... /etc/acpi
not installed, does not exist

3) /usr/lib/udev/rules.d/70-power-switch.rules

ACTION=="remove", GOTO="power_switch_end"

SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="acpi", TAG+="power-switch"
SUBSYSTEM=="input", KERNEL=="event*", KERNELS=="thinkpad_acpi", TAG+="power-switch"

LABEL="power_switch_end"

4) /etc/pm/power.d/
...empty


mmmmh, don't think it is...
But where is it configured?

Last edited by wwn (2013-09-04 16:18:52)

Offline

#2 2013-09-01 17:39:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] who manages power?

logind has a default configuration, check the man pages for details.

Offline

#3 2013-09-01 17:41:08

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved] who manages power?

systemd handles these events by default and those lines in logind.conf are the default actions systemd takes for those events. You can uncomment them and tell systemd to do something else if you want. Systemd doesn't handle battery events though - you could use acpid for that.

Offline

#4 2013-09-03 14:24:13

wwn
Member
Registered: 2013-03-25
Posts: 70

Re: [Solved] who manages power?

Changes within logind do not change behaviour (Power Button)
I guess GNOME 3 power preferences are my friends finally...

Last edited by wwn (2013-09-03 14:24:26)

Offline

#5 2013-09-03 14:33:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [Solved] who manages power?

wwn wrote:

Changes within logind do not change behaviour (Power Button)

What do you change it to?  Did you log out and back in again after making the change?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2013-09-03 18:04:09

wwn
Member
Registered: 2013-03-25
Posts: 70

Re: [Solved] who manages power?

I enabled

HandlePowerKey=poweroff

, made a reboot, but the button continued suspending the ThinkPad. I can live with it. It's more interessting something to know how the things work.

Offline

#7 2013-09-04 02:59:30

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: [Solved] who manages power?

If you are using Gnome, you can use gnome-tweak-tool to edit the action of the power button.

Edit: typo

Last edited by Pse (2013-09-04 03:00:02)

Offline

#8 2013-09-04 09:54:50

57kev
Member
Registered: 2012-09-06
Posts: 3

Re: [Solved] who manages power?

Hi there
I have just done an install on a T420 and after a bit of research used this https://wiki.archlinux.org/index.php/TLP
Lots of info for controlling power use on Thinkpads.
Works for me.
Cheers

Offline

#9 2013-09-04 16:18:23

wwn
Member
Registered: 2013-03-25
Posts: 70

Re: [Solved] who manages power?

Pse wrote:

If you are using Gnome, you can use gnome-tweak-tool to edit the action of the power button.

made my day smile
that's it!

Offline

Board footer

Powered by FluxBB