You are not logged in.

#1 2013-12-05 16:05:21

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Suspend crashes Computer

I have a dual boot Arch (with gnome) and windows 8 laptop with gummiboot. In gnome when I suspend the computer (e.g. by closing the lid of the laptop ) it will give a black screen, the fan will start running fast and nothing can be done other than a hard reset (holding the power button for ~10s ). suspending in windows works completely fine by itself, the problem only manifests in arch.
Does anyone have any advice on how to fix with this?
Thanks in advance.

Last edited by crashandburn4 (2013-12-05 16:39:49)

Offline

#2 2013-12-05 16:24:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Suspend crashes Computer

Your post and your title are contradictory.   Sleep, or Suspend?

In my definition, sleep means to halt processing and enter a state in which everything stays in memory and processor activity is reduced to merely keeping memory refreshed; nothing more.  When waking up, processes are restarted with all of the resources in place, just like they were before entering sleep state.

Suspend is where the state of the system is stored to disk, usually the swap space, and the machine is powered down.  At boot, the kernel notices the suspend data on disk and uses that information to return the system to the state it had been prior to suspending.

Different mechanisms, different problems.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2013-12-05 16:33:43

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: Suspend crashes Computer

Hi

Did you check the log ?
There should be plenty of information in it regarding the suspend process.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#4 2013-12-05 16:36:17

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

Thanks, sorry I think it's suspend.
The names that gnome refers to them are suspend and hibernate, from reading those words I'd have assumed hibernate would be the suspend you are talking of and suspend would be the sleep you are talking of.
Now I'm unsure of which I should be thinking of so am gonna dive into some documentation to see what I come up with.

Last edited by crashandburn4 (2013-12-05 16:36:49)

Offline

#5 2013-12-05 16:37:15

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

Thanks Rebootl,
Which log should I check, dmesg?

Last edited by crashandburn4 (2013-12-05 16:37:41)

Offline

#6 2013-12-05 16:44:58

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

ewaller, I read up a little more on what the term actually means and from this fedora post: http://forums.fedoraforum.org/showthread.php?t=167760 it seems that the suspend I am talking about is suspend to ram: https://wiki.archlinux.org/index.php/Su … _Hibernate rather than suspend to disk (the suspend you're talking about, which I called hibernate). Thanks for clearing up the ambiguity in the terms.

Offline

#7 2013-12-05 17:00:04

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: Suspend crashes Computer

No, I meant the journal.

Don't know for dmesg, I don't really use it, but that's just me...


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#8 2013-12-05 17:10:49

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

ahh, OK, here's the tail of my journalctl finishing just after I hard reset the computer and starting when I turned it on

Dec 05 16:56:38 localhost systemd[516]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or directory
Dec 05 16:56:38 localhost systemd[516]: Mounted /sys/kernel/config.
Dec 05 16:56:38 localhost systemd[516]: Stopped target Bluetooth.
Dec 05 16:56:38 localhost systemd[516]: Stopped target Sound Card.
Dec 05 16:56:38 localhost systemd[516]: Starting Default.
Dec 05 16:56:38 localhost systemd[516]: Reached target Default.
Dec 05 16:56:38 localhost systemd[516]: Startup finished in 4ms.
Dec 05 16:56:38 localhost /etc/gdm/Xsession[522]: /etc/gdm/Xsession: Beginning session setup...
Dec 05 16:56:38 localhost /etc/gdm/Xsession[522]: localuser:michael being added to access control list
Dec 05 16:56:38 localhost /etc/gdm/Xsession[522]: /etc/gdm/Xsession: ssh-agent not found!
Dec 05 16:56:38 localhost /etc/gdm/Xsession[522]: /etc/gdm/Xsession: Setup done, will execute: gnome-session
Dec 05 16:56:38 localhost gnome-session[522]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring-CSb7Tm
Dec 05 16:56:38 localhost gnome-session[522]: GPG_AGENT_INFO=/run/user/1000/keyring-CSb7Tm/gpg:0:1
Dec 05 16:56:38 localhost gnome-session[522]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring-CSb7Tm
Dec 05 16:56:38 localhost gnome-session[522]: GPG_AGENT_INFO=/run/user/1000/keyring-CSb7Tm/gpg:0:1
Dec 05 16:56:38 localhost gnome-session[522]: SSH_AUTH_SOCK=/run/user/1000/keyring-CSb7Tm/ssh
Dec 05 16:56:38 localhost gnome-session[522]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring-CSb7Tm
Dec 05 16:56:38 localhost gnome-session[522]: GPG_AGENT_INFO=/run/user/1000/keyring-CSb7Tm/gpg:0:1
Dec 05 16:56:38 localhost gnome-session[522]: SSH_AUTH_SOCK=/run/user/1000/keyring-CSb7Tm/ssh
Dec 05 16:56:38 localhost gnome-session[522]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring-CSb7Tm
Dec 05 16:56:38 localhost gnome-session[522]: GPG_AGENT_INFO=/run/user/1000/keyring-CSb7Tm/gpg:0:1
Dec 05 16:56:38 localhost gnome-session[522]: SSH_AUTH_SOCK=/run/user/1000/keyring-CSb7Tm/ssh
Dec 05 16:56:38 localhost gnome-session[522]: (gnome-settings-daemon:555): Gvc-WARNING **: Failed to connect context: OK
Dec 05 16:56:38 localhost gnome-session[522]: (gnome-settings-daemon:555): libcolord-WARNING **: lcms2(profile): Failed with error: multiLocalizedUnicodeType of len != 12 is not supported. [8]
Dec 05 16:56:38 localhost gnome-session[522]: (gnome-settings-daemon:555): libcolord-WARNING **: lcms2(profile): Failed with error: Corrupted tag 'dmnd' [12]
Dec 05 16:56:38 localhost pulseaudio[575]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.LoadFailed: Unit dbus-org.bluez.service failed to load: No such file or directory.
Dec 05 16:56:38 localhost pulseaudio[575]: [pulseaudio] bluez4-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.systemd1.LoadFailed: Unit dbus-org.bluez.service failed to load: No such file or directory.
Dec 05 16:56:38 localhost gnome-session[522]: (gnome-settings-daemon:555): IBUS-WARNING **: Unable to connect to ibus: Could not connect: Connection refused
Dec 05 16:56:39 localhost goa[662]: goa-daemon version 3.10.2 starting [main.c:117, main()]
Dec 05 16:56:39 localhost gnome-session[522]: Gjs-Message: JS LOG: GNOME Shell started at Thu Dec 05 2013 16:56:39 GMT+0000 (GMT)
Dec 05 16:56:39 localhost gnome-session[522]: Entering running state
Dec 05 16:56:39 localhost gnome-session[522]: Failed to play sound: File or data not found
Dec 05 16:56:39 localhost gnome-session[522]: (zeitgeist-datahub:694): GLib-GObject-WARNING **: invalid (NULL) pointer instance
Dec 05 16:56:39 localhost gnome-session[522]: (zeitgeist-datahub:694): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Dec 05 16:56:39 localhost gnome-session[522]: (nm-applet:686): nm-applet-WARNING **: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.freedesktop.systemd1.LoadFailed: Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
Dec 05 16:56:39 localhost gnome-session[522]: (gnome-settings-daemon:555): libcolord-WARNING **: lcms2(profile): Failed with error: multiLocalizedUnicodeType of len != 12 is not supported. [8]
Dec 05 16:56:39 localhost gnome-session[522]: (gnome-settings-daemon:555): libcolord-WARNING **: lcms2(profile): Failed with error: Corrupted tag 'dmnd' [12]
Dec 05 16:56:39 localhost gnome-session[522]: Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Dec 05 16:56:39 localhost gnome-keyring-daemon[520]: keyring alias directory: /home/michael/.local/share/keyrings
Dec 05 17:00:01 localhost.localdomain gnome-session[522]: Gjs-Message: JS LOG: Ignored exception from dbus method: Gio.IOErrorEnum: GDBus.Error:org.gnome.SessionManager.GeneralError: Unable to uninhibit: Invalid cookie
-- Reboot --
Dec 05 17:01:08 localhost systemd[470]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or directory
Dec 05 17:01:08 localhost systemd[470]: Mounted /sys/kernel/config.
Dec 05 17:01:08 localhost systemd[470]: Stopped target Bluetooth.
Dec 05 17:01:08 localhost systemd[470]: Stopped target Sound Card.
Dec 05 17:01:08 localhost systemd[470]: Starting Default.

there appears to be the same error as the final error before reboot every time.

Offline

#9 2013-12-05 18:23:38

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: Suspend crashes Computer

You mean this:

Dec 05 17:00:01 localhost.localdomain gnome-session[522]: Gjs-Message: JS LOG: Ignored exception from dbus method: Gio.IOErrorEnum: GDBus.Error:org.gnome.SessionManager.GeneralError: Unable to uninhibit: Invalid cookie

This is terrifying. ( wink ) If really gnome or gnome-session is the culprit I fear I can't really help, since I neither use any of these...

Maybe take a deeper look at the journal as root resp. with the privileges needed to get all the system messages. I think your output is the user output only.

Last edited by rebootl (2013-12-05 18:24:21)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#10 2013-12-05 18:50:48

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

ah, good point, it may not be the gnome session as there's some more after that:

Dec 05 18:42:03 localhost gnome-session[516]: Gjs-Message: JS LOG: Ignored exception from dbus method: Gio.IOErrorEnum: GDBus.Error:org.gnome.SessionManager.GeneralError: Unable to uninhibit: Invalid cookie
Dec 05 18:42:03 localhost NetworkManager[301]: <info> (wlp3s0): canceled DHCP transaction, DHCP client pid 333
Dec 05 18:42:03 localhost kernel: wlp3s0: deauthenticating from 4c:f0:1d:xx:xx:xx by local choice (reason=3)
Dec 05 18:42:03 localhost NetworkManager[301]: <info> Removing DNS information from /usr/bin/resolvconf
Dec 05 18:42:03 localhost kernel: cfg80211: Calling CRDA to update world regulatory domain
Dec 05 18:42:03 localhost NetworkManager[301]: <info> (wlp3s0): cleaning up...
Dec 05 18:42:03 localhost NetworkManager[301]: <info> (wlp3s0): taking down device.
Dec 05 18:42:03 localhost.localdomain NetworkManager[301]: <info> NetworkManager state is now ASLEEP
Dec 05 18:42:03 localhost.localdomain NetworkManager[301]: <info> Setting system hostname to 'localhost.localdomain' (error starting hostname thread)
Dec 05 18:42:03 localhost.localdomain dbus[304]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Dec 05 18:42:03 localhost.localdomain dbus-daemon[304]: dbus[304]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Dec 05 18:42:03 localhost.localdomain systemd[1]: Starting Network Manager Script Dispatcher Service...
Dec 05 18:42:03 localhost.localdomain NetworkManager[301]: <info> (enp4s0f2): device state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]
Dec 05 18:42:03 localhost.localdomain NetworkManager[301]: <info> (enp4s0f2): cleaning up...
Dec 05 18:42:03 localhost.localdomain NetworkManager[301]: <info> (enp4s0f2): taking down device.
Dec 05 18:42:03 localhost.localdomain dbus-daemon[304]: dbus[304]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Dec 05 18:42:03 localhost.localdomain dbus[304]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Dec 05 18:42:03 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
Dec 05 18:42:08 localhost.localdomain systemd-logind[303]: Delay lock is active but inhibitor timeout is reached.
Dec 05 18:42:08 localhost.localdomain systemd[1]: Starting Sleep.
Dec 05 18:42:08 localhost.localdomain systemd[1]: Reached target Sleep.
Dec 05 18:42:08 localhost.localdomain systemd[1]: Starting Suspend...
Dec 05 18:42:08 localhost.localdomain systemd-sleep[1195]: Suspending system...

I think it's the call to systemd-sleep, I'm gonna try and replicate without gnome getting in the way.

Offline

#11 2013-12-05 19:40:31

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

So, it seems that the computer is unable to freeze any of these tasks when called with systemctl suspend, I don't really know what happens here...

➜  ~  sudo systemctl suspend || sudo journalctl -xn
A dependency job for suspend.target failed. See 'journalctl -xn' for details.
-- Logs begin at Wed 2013-12-04 22:40:18 GMT, end at Thu 2013-12-05 19:37:43 GMT. --
Dec 05 19:37:43 localhost kernel: Freezing remaining freezable tasks ... 
Dec 05 19:37:43 localhost kernel: Freezing of tasks failed after 20.002 seconds (0 tasks refusing to freeze, wq_busy=1):
Dec 05 19:37:43 localhost kernel: Dec 05 19:37:43 localhost kernel: Restarting kernel threads ... done.
Dec 05 19:37:43 localhost kernel: Restarting tasks ... done.
Dec 05 19:37:43 localhost kernel: video LNXVIDEO:00: Restoring backlight state
Dec 05 19:37:43 localhost kernel: video LNXVIDEO:01: Restoring backlight state
Dec 05 19:37:43 localhost sudo[1543]: pam_unix(sudo:session): session closed for user root
Dec 05 19:37:43 localhost sudo[1552]: michael : TTY=pts/0 ; PWD=/home/michael ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Dec 05 19:37:43 localhost sudo[1552]: pam_unix(sudo:session): session opened for user root by michael(uid=0)

Offline

#12 2013-12-05 19:41:11

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

Does anyone have any idea what's going on?

Offline

#13 2013-12-05 21:06:45

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: Suspend crashes Computer

I just see that dmesg might give some more information. Maybe I should start using it...
So, you were on the right track at the beginning, sorry bout that. Though we know some more.

Actually it says:

[...]0 tasks refusing to freeze[...]

but something seems to be busy, ("wq_busy=1") and the freezing fails...


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#14 2013-12-06 00:37:26

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: Suspend crashes Computer

You're right, have you got any idea how I should go about debugging this, how to figure out what causes this wq_busy=1 ?

Offline

Board footer

Powered by FluxBB