You are not logged in.

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

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

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: 15,923

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: 14

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

Board footer

Powered by FluxBB