Short version: Suspend works perfectly here (except when a 2nd monitor
is attached) on a laptop with a running GDM 3.26.2.1, kernel
4.18.7-250.vanilla.knurd.1.fc27.x86_64. Window manager is awesome v4.2.
Simply closing the lid suspends the machine to S3 sleep) [1].
On Wed, Oct 03, 2018 at 09:10:38PM -0700, Samuel Sieb wrote:
# cat /sys/power/state
freeze mem disk
Same here:
% cat /sys/power/state
freeze mem disk
# cat /sys/power/disk
platform shutdown reboot [suspend] test_resume
Difference:
% cat /sys/power/disk
[platform] shutdown reboot suspend test_resume
also here, in case it helps:
% cat /sys/power/mem_sleep
s2idle [deep]
In your first message I saw something I don't understand:
Quote:
Sure enough, from "systemd-inhibit":
Who: samuel (UID 1000/samuel, PID 1667/gsd-media-keys)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Could it be you block samuel from putting the system to sleep because
Gnome is handling keypresses? - Yes, I know that sounds weird. But
maybe it's that situation that confuses the system.
And I don't find any UID 1000 listings here with
"systemd-inhibit --list"
But this:
% systemd-inhibit --list | grep -A4 -i gdm
Who: gdm (UID 42/gdm, PID 2173/gsd-media-keys)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: gdm (UID 42/gdm, PID 2176/gsd-power)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
(Note: no Gnome is used for locking the screen here: awesome, as
mentioned, is running ..)
/etc/systemd/logind.conf here - just the defaults, it seems:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
HTH,
Wolfgang
[1] https://www.kernel.org/doc/Documentation/power/states.txt
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx