Re: [systemd-devel] RFC: enable suspend to idle

2018-03-09 Thread Mantas Mikulėnas
On Mon, Mar 5, 2018 at 5:19 PM, Oliver Neukum wrote: > On Fri, 2018-03-02 at 10:18 +0100, Lennart Poettering wrote: > > > But why wouldn't that be a kernel option? I mean, so far the goal was > > to encode "reasonable defaults" in the kernel itself, so that > > userspace is

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-08 Thread Lennart Poettering
On Mo, 05.03.18 16:19, Oliver Neukum (oneu...@suse.com) wrote: > On Fri, 2018-03-02 at 10:18 +0100, Lennart Poettering wrote: > > > But why wouldn't that be a kernel option? I mean, so far the goal was > > to encode "reasonable defaults" in the kernel itself, so that > > userspace is only used

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-05 Thread Oliver Neukum
On Fri, 2018-03-02 at 10:18 +0100, Lennart Poettering wrote: > But why wouldn't that be a kernel option? I mean, so far the goal was > to encode "reasonable defaults" in the kernel itself, so that > userspace is only used when those "reasonable defaults" do not apply > onto one local case. > >

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-02 Thread Lennart Poettering
On Do, 01.03.18 16:13, Thomas Blume (thomas.bl...@suse.com) wrote: > On Thu, 1 Mar 2018, Lennart Poettering wrote: > > > > The kernel must not set policy on what is a source of wake ups. Setting > > > this up so that we do not get a regression in functionality compared > > > to old style S3

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-01 Thread Thomas Blume
On Thu, 1 Mar 2018, Lennart Poettering wrote: The kernel must not set policy on what is a source of wake ups. Setting this up so that we do not get a regression in functionality compared to old style S3 (whose policy is in firmware) falls to user space, more specifically udev. And where would

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-01 Thread Lennart Poettering
On Do, 01.03.18 15:25, Oliver Neukum (oneu...@suse.com) wrote: > Am Donnerstag, den 01.03.2018, 15:17 +0100 schrieb Lennart Poettering: > > On Do, 01.03.18 14:40, Thomas Blume (thomas.bl...@suse.com) wrote: > > > > As a proof of concept, I have created below udev rule and helper script, > > >

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-01 Thread Lennart Poettering
On Do, 01.03.18 14:40, Thomas Blume (thomas.bl...@suse.com) wrote: > Hi, > > It seems that major vendors are dropping support of sleep mode S3 in favor of > the new suspend to idle method. > We need to enable this new feature in order to be able to suspend to RAM on > such machines. > The kernel

Re: [systemd-devel] RFC: enable suspend to idle

2018-03-01 Thread Oliver Neukum
Am Donnerstag, den 01.03.2018, 15:17 +0100 schrieb Lennart Poettering: > On Do, 01.03.18 14:40, Thomas Blume (thomas.bl...@suse.com) wrote: > > As a proof of concept, I have created below udev rule and helper script, > > which > > works on my testmachine. > > Obviously, like that it isn't

[systemd-devel] RFC: enable suspend to idle

2018-03-01 Thread Thomas Blume
Hi, It seems that major vendors are dropping support of sleep mode S3 in favor of the new suspend to idle method. We need to enable this new feature in order to be able to suspend to RAM on such machines. The kernel side of this feature has already been implemented: