You are not logged in.

#1 2018-05-30 05:57:13

zegkljan
Member
Registered: 2017-12-30
Posts: 16

Session does not survive suspend

I have a problem related to either Gnome (which is my DE of choice) or laptop suspend, or both. What happens is that I have some programs open (e.g. chrome), I suspend my laptop (to memory, i.e. not hibernate) via gnome's top left corner menu (hold alt and hit the "pause" button that appears instead of power off button in the menu), the laptop is suspended, then I wake it up, log in back to the session. After that, sometimes the computer is in the original state before the suspend (i.e. programs running, windows open, etc.) but other times it seems like the old session was lost ("ps" does not show any of the programs that were running in the old session) and I have logged into a new session. I don't have any solid statistic about the ratio of these two outcomes but my feeling is that the lost session outcome is very significant.

I'm not sure if the problem is gnome-related or suspend-related. I will be glad for anyone that helps me first pin down what the problem is and then eventually find a solution to it. Thanks!

$ uname -a
Linux eddie 4.16.11-1-ARCH #1 SMP PREEMPT Tue May 22 21:40:27 UTC 2018 x86_64 GNU/Linux
$ gnome-shell --version
GNOME Shell 3.28.2

Offline

#2 2018-05-30 14:38:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,137

Re: Session does not survive suspend

Anything interesting in the journal after a failed restart?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2018-05-30 20:10:27

zegkljan
Member
Registered: 2017-12-30
Posts: 16

Re: Session does not survive suspend

Oh, it seems the X fails to start up:

May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0): Setting mode "NULL"
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0): ACPI: AC state file path: /sys/class/power_supply/ACAD/online
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0): ACPI: the system is running on AC power
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     configuration option may not be set correctly.  When the
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0):     Config Options in the README.
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (II) NVIDIA(0): ACPI: dock file path: /sys/devices/platform//dock.0/docked
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE) modeset(G0): failed to set mode: Invalid argument
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE)
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: Fatal server error:
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE) EnterVT failed for gpu screen 0
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE)
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: Please consult the The X.Org Foundation support
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]:          at http://wiki.x.org
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]:  for help.
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE) Please also check the log file at "/home/zegkljan/.local/share/xorg/Xorg.1.log" for additional information.
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE)
May 30 21:58:08 eddie /usr/lib/gdm-x-session[960]: (EE) Server terminated with error (1). Closing log file.

and later the apps start failing:

May 30 21:58:09 eddie pidgin.desktop[1268]: Pidgin: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
May 30 21:58:09 eddie pamac-tray[1251]: pamac-tray: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
May 30 21:58:09 eddie guake[1263]: guake: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
May 30 21:58:09 eddie gsd-keyboard[1190]: gsd-keyboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
May 30 21:58:09 eddie gsd-media-keys[1189]: gsd-media-keys: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
...

Also it seems this problem was addressed before: https://bbs.archlinux.org/viewtopic.php?id=158999

I have a laptop with optimus but I don't use it, I just have the proprietary NVIDIA driver and use just the discrete GPU. Will try to install bumblebee as was suggested in the linked thread. Also, it seems this happens only if I have an external display connected via HDMI.

Last edited by zegkljan (2018-05-30 20:11:43)

Offline

#4 2018-07-10 06:05:05

rsorensen
Member
Registered: 2018-07-10
Posts: 1

Re: Session does not survive suspend

Happens to me as well, however I have bumblebee configured(with proprietary driver as was suggested), and the same issue happens when I disable NVIDIA driver completely too. I also have HDMI monitor connected.

Offline

#5 2018-08-05 16:18:00

lopsided98
Member
Registered: 2016-07-23
Posts: 4

Re: Session does not survive suspend

I have the same issue and error. I have a Dell Inspiron i7559, which a NVIDIA GTX 960M that I use with bumblebee. I agree that the problem seems to be related to an external monitor connected over HDMI.

This bug is possibly related: https://bugs.freedesktop.org/show_bug.cgi?id=105362. higuita almost certainly has the same issue, but the bug is supposedly a different issue that was already fixed.

Has anyone filed an issue in the Arch bug tracker?

EDIT: I should mention that I am using a standard GNOME setup with GDM.

Last edited by lopsided98 (2018-08-08 15:39:16)

Offline

#6 2018-08-08 12:55:30

yaworski
Member
Registered: 2018-08-05
Posts: 12

Re: Session does not survive suspend

I've had the same issue on Dell XPS 15 9570. It happened few times with either a suspend or hibernation (I'm actually using the hybrid suspend). I'm using an i-tec USB-C/Thunderbold dock with power delivery and native HDMI (USB-C alt mode) to drive an external monitor.
I've experienced this few times but now it's OK and I didn't get that issue for some time now.

I'm running Cinnamon with LightDM. I've tried to enable splash using plymouth, so I've disabled lightdm.service and enabled plymouth-lightdm.service instead for seamless transition and I think my issue might have been related to that because I've removed the plymouth and restored non-splash configuration and the issue went away around the same time.

Offline

#7 2018-08-09 18:23:40

ziro360
Member
Registered: 2012-04-27
Posts: 30

Re: Session does not survive suspend

Hi, this started to happen to me as well yesterday with my new external monitor.
With only the laptop monitor I have no problem waking from suspend, only when connected to the external monitor (via USB Type-C to display port) it logs me out after waking up. The previous monitor worked fine. I currently only have the Intel drivers installed, will try to install the Nvidia driver and Bumblebee when I have the time to see if it fixes the issue, but last time I tried the GDM didn't even load.

I have a Asus UX550GE with an Intel and Nvidia graphic cards combo and I'm running Gnome with GDM.

My logs look very similar to the original post:

Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:65
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:72
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:68
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:81
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:67
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:73
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:66
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 13:74
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) systemd-logind: got resume for 226:0
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) AIGLX: Resuming AIGLX clients after VT switch
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE) modeset(0): failed to set mode: Invalid argument
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE)
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: Fatal server error:
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE) EnterVT failed for screen 0
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE)
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: Please consult the The X.Org Foundation support
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]:          at http://wiki.x.org
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]:  for help.
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE) Please also check the log file at "/home/walfire/.local/share/xorg/Xorg.0.log" for additional information.
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE)
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (II) AIGLX: Suspending AIGLX clients for VT switch
Aug 09 18:57:25 zen-machine /usr/lib/gdm-x-session[31474]: (EE) Server terminated with error (1). Closing log file.

Offline

Board footer

Powered by FluxBB