[Bug 1001790] kde "suspend when lid is closed" settings are ignored
http://bugzilla.opensuse.org/show_bug.cgi?id=1001790 http://bugzilla.opensuse.org/show_bug.cgi?id=1001790#c5 --- Comment #5 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Adam Liebermann from comment #4)
So I suppose we can close this then? imo the more serious issue is ignoring kde settings as suspend is unreliable in linux in general
Well, I cannot confirm that, it works perfectly fine here (since years). But that might depend on the actual hardware of course.
and it should be possible to disable it at least.
Yes.
It's probably systemd's logind that's doing this. You can configure it in /etc/systemd/logind.conf though, see "man logind.conf", in particular the "HandleLidSwitch=" setting.
do i understand it right, it's openSUSE's default configuration?
AFAICS openSUSE doesn't change the upstream systemd defaults in 42.2. IOW, all options are commented out in /etc/systemd/logind.conf. According to the comments in the file, the upstream defaults seem to be: HandleLidSwitch=suspend HandleLidSwitchDocked=ignore LidSwitchIgnoreInhibited=yes So yes, logind automatically suspends if the lid is closed, unless the laptop is docked. And the last one (LidSwitchIgnoreInhibited=yes) is what the KDE bug report was about. Apparently this got ignored in systemd due to a bug that got "fixed" in 231, preventing KDE (and probably other desktops) to enforce their own settings regarding HandleLidSwitch. I have no idea about systemd's state in 42.2 regarding this though, and I don't have a laptop here to check. 42.2 comes with systemd 228 which should not be affected, but the "fix" may have been backported, I don't know. OTOH, there may have been a bug in Plasma/powerdevil 5.8 beta (which we currently have in 42.2), unfortunately I see no change in 5.8 final, but I cannot find an open KDE bug report about that either.
i suppose that would also affect other DEs like gnome, right? shouldn't the default be changed to something that lets the desktop environments decide?
If I understand the mentioned KDE bug report correctly, KDE/powerdevil does inhibit logind's automatic lid handling. For other desktop environments I don't know, but I would be surprised if GNOME wouldn't do that as well. If the desktop doesn't support that (or there's no desktop running at all), logind takes over. This is not a bug but a feature, and IIRC there was some discussion about that a while ago, when it was introduced. But again, logind is configurable. And that's unrelated to KDE anyway. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com