swayidle: systemd/logind IdleAction taken despite not being idle
I am trying to enable auto suspend through systemd/logind. In /etc/systemd/logind.conf I have the lines:
IdleAction=suspend
IdleActionSec=1min
However this causes my system to suspend every 1 minute regardless of activity or inactivity. My guess was that sway is not correctly reporting its idle state based on https://github.com/systemd/systemd/issues/1295.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 27 (13 by maintainers)
A PR was merged into systemd today that should land in v246. It adds a SetType method to the logind dbus interface. This will at least allow systemd to support a session type upgrade, although the compositor will still need to implement the switch.
Kind of. My understanding is it is expected (but not ideal) behaviour, because Logind doesn’t expect a console session to change into a graphical session.
swayidle is only available on the 1.0 alpha, the stable releases do not include it.