https://wiki.archlinux.org/index.php/Se … activity_2
https://wiki.archlinux.org/index.php/Po … t#xss-lock
How are you starting i3?
I think it's started via `/usr/share/xsessions/i3.desktop`:
[Desktop Entry]
Name=i3
Comment=improved dynamic tiling window manager
Exec=i3
TryExec=i3
Type=Application
X-LightDM-DesktopName=i3
DesktopNames=i3
Keywords=tiling;wm;windowmanager;window;manager;
If I'm not mistaken i3 doesn't actually set the Idle Information that would make this work anyway, even if you do start it correctly to have a proper session
Hmm, that's unfortunate...
I think I'll omit `logind.conf` then. I'll bake my own script based on `xprintidle`...
Thanks for the info!
]]>I'm trying to configure suspend on idle for my laptop.
I can run the following commands from the command line without issues:
* systemctl suspend
* systemctl suspend-then-hibernate
* systemctl hibernate
Even `suspend-then-hibernate` works as expected, awesome!
In order to `suspend-then-hibernate` on 2 minutes of inactivity I tried to change `IdleAction` and `IdleActionSec` in `/etc/systemd/logind.conf`:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend-then-hibernate
HandleLidSwitchExternalPower=suspend-then-hibernate
HandleLidSwitchDocked=suspend-then-hibernate
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
IdleAction=suspend-then-hibernate
IdleActionSec=120
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
Unfortunately this doesn't work and I couldn't figure out why.
I use i3wm as a DE.
Does anyone know how to fix/debug this?
]]>