Re: [systemd-devel] logind: lid switch action not executed on small open/close delays

2015-03-10 Thread Alad Wenter

On 03/06/2015 02:47 PM, David Herrmann wrote:

Hi

On Wed, Jan 28, 2015 at 8:31 PM, Lennart Poettering
lenn...@poettering.net wrote:

On Sat, 17.01.15 18:36, David Herrmann (dh.herrm...@gmail.com) wrote:


I think it's reasonable to allow setting the base-timeout in
/etc/systemd/logind.conf, but I want to know Lennart's opinion first.
Preferably, this timeout was a kernel-timeout on the bus-probe itself.
But we don't have anything like this, so we need the excessive
timeouts in user-space as we cannot know whether we're just scheduled
late or whether the bus-probe really takes that long... Meh...

My system takes 5s to boot, so I could easily set those timeouts to
10s and everything would be fine. And I also don't care for hotplug
changes while the system is off/suspended, hence, I could even disable
the timeout and everything would just work.
Not really sure how to proceed...

I think making the timeout configurable in logind.conf would be OK.

Done.

http://cgit.freedesktop.org/systemd/systemd/commit/?id=9d10cbee89ca7f82d29b9cb27bef11e23e3803ba

Thanks
David
Compiled from git and HoldOffTimeSec=0 works as expected. Thank you very 
much!


Regards,

Alad
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] logind: lid switch action not executed on small open/close delays

2015-03-06 Thread David Herrmann
Hi

On Wed, Jan 28, 2015 at 8:31 PM, Lennart Poettering
lenn...@poettering.net wrote:
 On Sat, 17.01.15 18:36, David Herrmann (dh.herrm...@gmail.com) wrote:

 I think it's reasonable to allow setting the base-timeout in
 /etc/systemd/logind.conf, but I want to know Lennart's opinion first.
 Preferably, this timeout was a kernel-timeout on the bus-probe itself.
 But we don't have anything like this, so we need the excessive
 timeouts in user-space as we cannot know whether we're just scheduled
 late or whether the bus-probe really takes that long... Meh...

 My system takes 5s to boot, so I could easily set those timeouts to
 10s and everything would be fine. And I also don't care for hotplug
 changes while the system is off/suspended, hence, I could even disable
 the timeout and everything would just work.
 Not really sure how to proceed...

 I think making the timeout configurable in logind.conf would be OK.

Done.

http://cgit.freedesktop.org/systemd/systemd/commit/?id=9d10cbee89ca7f82d29b9cb27bef11e23e3803ba

Thanks
David
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] logind: lid switch action not executed on small open/close delays

2015-01-28 Thread Lennart Poettering
On Sat, 17.01.15 18:36, David Herrmann (dh.herrm...@gmail.com) wrote:

 I think it's reasonable to allow setting the base-timeout in
 /etc/systemd/logind.conf, but I want to know Lennart's opinion first.
 Preferably, this timeout was a kernel-timeout on the bus-probe itself.
 But we don't have anything like this, so we need the excessive
 timeouts in user-space as we cannot know whether we're just scheduled
 late or whether the bus-probe really takes that long... Meh...
 
 My system takes 5s to boot, so I could easily set those timeouts to
 10s and everything would be fine. And I also don't care for hotplug
 changes while the system is off/suspended, hence, I could even disable
 the timeout and everything would just work.
 Not really sure how to proceed...

I think making the timeout configurable in logind.conf would be OK.

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel