You are not logged in.

#1 2013-10-21 11:42:48

mohamed
Member
Registered: 2013-10-21
Posts: 1

Cannot use fn+F4 to sleep within Xmonad

I have a strange problem that is plaguing me for some time now. I cannot make my laptop sleep using fn+F4 when I am in the X VT. if I am in the VT currently running X and press fn+F4 nothing happens. If however I switch to another VT it works.

I use XMonad as my display manager. Using systemctl suspend works anywhere.

I have no idea what can cause something like this so I do not know what logs to attach. Here is my logind.conf:

[Login]
NAutoVTs=4
ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=yes
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min

Here is the only extra line that appears in journalctl after I press the sleep button when I use X:

Oct 21 13:48:03 tardis systemd-logind[634]: Suspend key pressed.

nothing appears in the dmesg log

if I close Xmonad and wait for 15 or so seconds and then press the suspend button it works.

Offline

Board footer

Powered by FluxBB