You are not logged in.

#1 2012-09-29 02:42:57

shaurz
Member
Registered: 2004-02-02
Posts: 360

Sleep power button not working

In KDE system settings I have it configured to put the computer to sleep when the power button is pressed. This used to work perfectly but now it has stopped working. Instead it ignores my preference and shuts down instead.

Offline

#2 2012-09-29 02:48:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Sleep power button not working

see $man logind

Offline

#3 2012-09-29 02:59:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,680

Re: Sleep power button not working

Offline

#4 2012-09-29 03:22:58

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Sleep power button not working

People just don't pay attention to what is installed when they update their systems.


Edit: and they don't know how to use a search engine.

Last edited by WonderWoofy (2012-09-29 03:23:36)

Offline

#5 2012-09-29 12:07:17

shaurz
Member
Registered: 2004-02-02
Posts: 360

Re: Sleep power button not working

D'oh! systemd strikes again. Does this mean I have to configure with logind.conf instead of KDE? I really have little patience for all these new configuration files these days.

Offline

#6 2012-09-29 12:19:56

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

Re: Sleep power button not working

I share your frustration - but for this one the fix is simple (but frustrating that we need to fix it): uncomment the key handler lines in /etc/login.conf and change their value to ignore.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-09-29 19:32:43

nagi
Member
Registered: 2011-06-07
Posts: 15
Website

Re: Sleep power button not working

Trilby wrote:

I share your frustration - but for this one the fix is simple (but frustrating that we need to fix it): uncomment the key handler lines in /etc/login.conf and change their value to ignore.

Removing such a special casing (not applying some configuration item in some cases) has several good sides to it. Code is simpler and the program is easier to work with. Also it's not like systemd doesn't provide way for DEs to override that behaviour. They just don't.

Also, after giving control of power buttons to systemd, I was able to observe fastest suspend I've ever saw.

Offline

#8 2012-09-29 23:20:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Sleep power button not working

WonderWoofy wrote:

People just don't pay attention to what is installed when they update their systems.


Edit: and they don't know how to use a search engine.

There is also the fact that functionality is removed. So I did pay attention, read the new man page and still had a question because I wondered if that functionality might be been moved elsewhere rather than removed. It is hard to be certain you've proved a negative and systemd has a lot of different man pages and puts things in a lot of different places.

Of course, it may well be that people also don't pay attention...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2012-09-29 23:31:34

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Sleep power button not working

Just from the fact that there have been more than five of these exact same queries over the past couple of days leads me to think that people just aren't paying attention.  Then when they realize that something is amiss, they go straight to posting rather than searching first.

Offline

Board footer

Powered by FluxBB