https://bugs.kde.org/show_bug.cgi?id=459902

Jakob Petsovits <jpe...@petsovits.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jpe...@petsovits.com,
                   |                            |xaver.h...@gmail.com

--- Comment #1 from Jakob Petsovits <jpe...@petsovits.com> ---
> Does logind even support what powerdevil with plasma can do? Having multiple 
> options for different power supply states I mean.

It doesn't, that's a bit unfortunate that we can't cleanly map to systemd
concepts. What systemd does have nowadays is HandleLidSwitchDocked and
HandleLidSwitchExternalPower, which roughly let you do the same thing as
Plasma's power state configuration, but looking at it from a somewhat different
angle.

I'm a little wary of writing systemd.conf from PowerDevil natively, it seems
feasible to do if we let a KAuth helper write the config to e.g.
/etc/systemd/logind.conf.d/90-kde-powerdevil.conf, but also we'll have to think
about a good UI for that or whether it would make more sense to somehow get
powerdevil to run also by SDDM (without interruption when starting the
session).

Also see: https://github.com/systemd/systemd/issues/31119

But there might also be a different issue altogether, because if systemd is
told to shutdown, it shouldn't let subsequent inhibitor changes affect this
initial choice. Maybe writing logind configuration is only a hack and the real
task is to figure out why shutdown doesn't remain shutdown inside logind
itself.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to