You are not logged in.
Pages: 1
My system suddenly/randomly hibernates and I don't know how to fix it, any help is welcome. Gist log of 4 sudden hibernation, as they are quite long.
This is a very common error in my log, I don't know if this has anything to do with it.
Jul 08 17:06:53 Arch xdg-desktop-por[3335]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: Cannot invoke method; proxy is for th>Tried to remove power management software that I could think off, but it did not work. Currently I have TLP installed.
Last edited by niklasolai (2019-07-08 21:12:56)
Offline
Please post the output of
cat /etc/systemd/logind.confand
dconf read /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeoutInofficial first vice president of the Rust Evangelism Strike Force
Offline
Systemd-idle is kicking in, which actual session are you starting and how do you start it. What's the output of
loginctl session-statusLast edited by V1del (2019-07-08 15:42:20)
Offline
Please post the output of
cat /etc/systemd/logind.confand
dconf read /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
[niklas@Arch ~]$ cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandleSuspendKey=hibernate
#HandleHibernateKey=hibernate
HandleLidSwitch=hibernate
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
IdleAction=hibernate
IdleActionSec=60min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
[niklas@Arch ~]$ dconf read /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeoutIs blank, becuase I am using i3 maybe?
Offline
Systemd-idle is kicking in, which actual session are you starting and how do you start it.
I am not sure what you are saying.. I am not doing anything special when the system hibernates, watching a video or what not.
edit:
1 - niklas (1000)
Since: Mon 2019-07-08 17:10:30 CEST; 33min ago
Leader: 652 (login)
Seat: seat0; vc1
TTY: tty1
Service: login; type tty; class user
State: active
Unit: session-1.scope
├─ 652 login -- niklas
├─ 710 /bin/sh /usr/bin/startx
├─ 738 xinit /home/niklas/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.YI5J29uJbo
├─ 739 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.YI5J29uJbo
├─ 782 i3
├─ 795 redshift
├─ 797 /usr/lib/firefox/firefox
├─ 799 /opt/spotify/spotify
├─ 801 nm-applet
├─ 803 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.782
├─ 805 i3status
├─ 856 /opt/spotify/spotify --type=zygote --no-sandbox --log-file=/opt/spotify/debug.log --log-severity=disable --product-version=Spotify/1.1.5.153 --lang=en-US
├─ 874 /opt/spotify/spotify --type=gpu-process --field-trial-handle=11583936822732515705,3685687250929428917,131072 --disable-features=ExtendedMouseButtons --no-sandbox --log-file=/opt/spotify/debug.log --log-severity=disable --product-version=Spotify/1.1.5.153 --lang=en-US --gpu-preferences=KAAAAAAAAACAAACAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --log-file=/opt/spotify/debug.log --log-severity=disable --product-version=Spotify/1.1.5.153 --lang=en-US --service-request-channel-token=10489653165114581896
├─ 957 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─ 971 /opt/spotify/spotify --type=zygote --no-sandbox --log-file=/opt/spotify/debug.log --log-severity=disable --product-version=Spotify/1.1.5.153 --lang=en-US
├─1083 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 122 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─1352 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 6655 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─1441 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 6655 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─1474 urxvt
├─1475 bash
├─1552 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 7116 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─1789 /bin/bash /usr/bin/atom
├─1791 /usr/lib/electron4/electron --executed-from=/home/niklas --pid=1786 /usr/lib/atom/atom
├─1793 /usr/lib/electron4/electron --type=zygote --no-sandbox
├─1818 /usr/lib/electron4/electron --type=gpu-process --enable-features=SharedArrayBuffer --no-sandbox --gpu-preferences=KAAAAAAAAACAAABAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --service-request-channel-token=17062878269615141483
├─1833 /usr/lib/electron4/electron --type=renderer --no-sandbox --enable-experimental-web-platform-features --enable-features=SharedArrayBuffer --service-pipe-token=2718825469205232046 --lang=en-US --app-path=/usr/lib/atom --user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Atom/1.38.2 Chrome/69.0.3497.128 Electron/4.2.6 Safari/537.36 --node-integration=true --webview-tag=true --no-sandbox --background-color=#fff --disable-blink-features=Auxclick --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=2718825469205232046 --renderer-client-id=4 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
├─1900 /usr/lib/electron4/electron --type=renderer --no-sandbox --enable-experimental-web-platform-features --enable-features=SharedArrayBuffer --service-pipe-token=17584498666697040373 --lang=en-US --app-path=/usr/lib/atom --user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Atom/1.38.2 Chrome/69.0.3497.128 Electron/4.2.6 Safari/537.36 --node-integration=true --webview-tag=true --no-sandbox --background-color=#fff --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=17584498666697040373 --renderer-client-id=6 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
├─4437 /usr/lib/firefox/firefox -contentproc -childID 13 -isForBrowser -prefsLen 7306 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─4869 /usr/lib/firefox/firefox -contentproc -childID 17 -isForBrowser -prefsLen 7352 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─4959 /usr/lib/firefox/firefox -contentproc -childID 18 -isForBrowser -prefsLen 7352 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─5047 /usr/lib/firefox/firefox -contentproc -childID 19 -isForBrowser -prefsLen 7352 -prefMapSize 187312 -parentBuildID 20190702213809 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 797 true tab
├─5127 journalctl -f
├─5225 urxvt
├─5226 bash
├─5249 nautilus --new-window
└─5404 loginctl session-status
Jul 08 17:10:30 Arch systemd[1]: Started Session 1 of user niklas.
Jul 08 17:23:13 Arch sudo[2771]: niklas : TTY=pts/0 ; PWD=/home/niklas ; USER=root ; COMMAND=/usr/bin/pacman -S --config /etc/pacman.conf -- community/tlp
Jul 08 17:23:13 Arch sudo[2771]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 08 17:23:15 Arch sudo[2771]: pam_unix(sudo:session): session closed for user root
Jul 08 17:23:15 Arch sudo[2853]: niklas : TTY=pts/0 ; PWD=/home/niklas ; USER=root ; COMMAND=/usr/bin/pacman -D --asdeps --config /etc/pacman.conf -- tlp
Jul 08 17:23:16 Arch sudo[2853]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 08 17:23:16 Arch sudo[2853]: pam_unix(sudo:session): session closed for user root
Jul 08 17:23:19 Arch sudo[4196]: niklas : TTY=pts/0 ; PWD=/home/niklas ; USER=root ; COMMAND=/usr/bin/pacman -U --noconfirm --config /etc/pacman.conf -- /home/niklas/.cache/yay/tlpui-git/tlpui-git-0.r109.703bade-1-any.pkg.tar.xz
Jul 08 17:23:19 Arch sudo[4196]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 08 17:23:20 Arch sudo[4196]: pam_unix(sudo:session): session closed for user rootLast edited by niklasolai (2019-07-08 15:44:03)
Offline
There's your answer:
IdleAction=hibernate
IdleActionSec=60minIf you do not perform any interaction with the system, e.g. when watching a movie, the system will hibernate after one hour.
Last edited by schard (2019-07-08 15:44:56)
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
There's your answer:
IdleAction=hibernate IdleActionSec=60minIf you do not perform any interaction with the system, e.g. when watching a movie, the system will hibernate after one hour.
I changed this now, but the ting is that I am using the system actively. But I will see if this helps. Do I have to restart for the change to take effect?
Last edited by niklasolai (2019-07-08 15:47:06)
Offline
You'll need to restart systemd-logind and probably log out and in again.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Something has to constantly tell systemd that you're not yet dead.
https://github.com/systemd/systemd/issues/1295
https://github.com/swaywm/sway/issues/8 … -245686465
Offline
Something has to constantly tell systemd that you're not yet dead.
https://github.com/systemd/systemd/issues/1295
https://github.com/swaywm/sway/issues/8 … -245686465
I don't really understand what this mean. Does it mean that if I was to use
IdleAction=hibernate
IdleActionSec=60min I would have to notify the system somehow that I am active? But if I remove those two I don't need too worry about it?
Offline
@niklasolai: Don't remove this 2 lines, just comment it out and see what will happen.
Offline
If you re-comment those entries (they are commented by default) or even just set the to the (commented or not) default values
#IdleAction=ignore
#IdleActionSec=30minthe system won't "randomly" hibernate but it will still not hibernate on idle either. Use something like xuatolock, afair only gnome really supports the systemd stuff (the sway link kinda expresses a general "reluctance" outside the lennartverse)
Offline
Pages: 1