qomo
(qomo)
2014年04月14日 02:59
1
使用命令:
systemctl status -l systemd-hibernate.service
显示:
systemd-hibernate.service - Hibernate
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate.service; static)
Active: failed (Result: exit-code) since 一 2014-04-14 16:38:52 CST; 18min ago
Docs: man:systemd-suspend.service(8)
Process: 5392 ExecStart=/usr/lib/systemd/systemd-sleep hibernate (code=exited, status=1/FAILURE)
Main PID: 5392 (code=exited, status=1/FAILURE)
4 月 14 16:38:52 linux.site systemd[1]: Starting Hibernate...
4 月 14 16:38:52 linux.site systemd-sleep[5392]: /usr/lib/systemd/system-sleep/atd.sh exited with exit status 1.
4 月 14 16:38:52 linux.site systemd-sleep[5392]: Suspending system...
4 月 14 16:38:52 linux.site systemd[1]: systemd-hibernate.service: main process exited, code=exited, status=1/FAILURE
4 月 14 16:38:52 linux.site systemd[1]: Failed to start Hibernate.
4 月 14 16:38:52 linux.site systemd[1]: Unit systemd-hibernate.service entered failed state.
try:
systemctl stop atd.service
systemctl disable atd.service
then try to hibernate your system again.
if still failed, post your logs again please
忘记说了,你至少要把操作系统的基本信息贴出来啊,什么发行版?内核?DE?CPU?GPU?
我遇到过一回。出问题后:
sudo systemctl status -l atd.service
贴一下结果。
qomo
(qomo)
2014年04月15日 09:47
7
systemctl status -l atd.service
atd.service - Execution Queue Daemon
Loaded: loaded (/usr/lib/systemd/system/atd.service; enabled)
Active: active (running) since 二 2014-04-15 18:43:47 CST; 4h 58min ago
Main PID: 644 (atd)
CGroup: /system.slice/atd.service
└─644 /usr/sbin/atd -f
4 月 15 18:43:47 linux systemd[1]: Started Execution Queue Daemon.
systemctl status -l systemd-hibernate.service
systemd-hibernate.service - Hibernate
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate.service; static)
Active: inactive (dead)
Docs: man:systemd-suspend.service(8)
uname -a
Linux linux.site 3.14.0-23.gfa168d7-desktop #1 SMP PREEMPT Tue Apr 1 12:54:08 UTC 2014 (fa168d7) x86_64 x86_64 x86_64 GNU/Linux
说了是出错时候的了。
Sent from my iPhone 5s using Tapatalk
qomo
(qomo)
2014年04月15日 19:59
9
是呀,我现在是一直无法待机呀,系统显示信息就是如此,messages 中显示的信息也如文中开始提到一样
顶楼的 systemd-hibernate.service 服务状态是 Active: failed,你后来贴的是 Active: inactive,很明显你没挂起就贴了一个正常状态的,那谁也帮不了你,只能说没有问题。
qomo:
它就是显示如此,另外为什么是 dead 呢
因为你没挂起,那个 systemd 服务根本没有运行。只有 failed 才表示失败。你一楼怎么弄出来的就怎么去复现呗。
qomo
(qomo)
2014年04月15日 21:58
13
我现在也不知道怎么回事,现在待机就像根本没有发生过一样,待机就里锁定,查看 messages,里面什么都没有,没有任何待机的信息
qomo
(qomo)
2014年04月16日 00:11
15
重启后发生的 messages
2014-04-16T14:04:47.714379+08:00 linux systemd[1]: Starting Sleep.
2014-04-16T14:04:47.714810+08:00 linux systemd[1]: Reached target Sleep.
2014-04-16T14:04:47.715162+08:00 linux systemd[1]: Starting Hibernate...
2014-04-16T14:04:47.747858+08:00 linux systemd[1]: Stopping Execution Queue Daemon...
2014-04-16T14:04:47.749341+08:00 linux systemd[1]: Stopped Execution Queue Daemon.
2014-04-16T14:04:47.751373+08:00 linux systemd-sleep[4366]: Suspending system...
2014-04-16T14:04:48.229627+08:00 linux systemd[1]: systemd-hibernate.service: main process exited, code=exited, status=1/FAILURE
2014-04-16T14:04:48.230325+08:00 linux systemd[1]: Failed to start Hibernate.
2014-04-16T14:04:48.231093+08:00 linux systemd[1]: Dependency failed for Hibernate.
2014-04-16T14:04:48.232287+08:00 linux systemd[1]: Service sleep.target is not needed anymore. Stopping.
2014-04-16T14:04:48.233636+08:00 linux systemd[1]: Unit systemd-hibernate.service entered failed state.
2014-04-16T14:04:48.234109+08:00 linux systemd[1]: Stopping Sleep.
2014-04-16T14:04:48.234489+08:00 linux systemd[1]: Stopped target Sleep.
2014-04-16T14:04:48.234889+08:00 linux systemd-logind[626]: Operation finished.
systemd-hibernate.service 消息
systemctl status -l systemd-hibernate.service
systemd-hibernate.service - Hibernate
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate.service; static)
Active: failed (Result: exit-code) since 三 2014-04-16 14:04:48 CST; 4min 11s ago
Docs: man:systemd-suspend.service(8)
Process: 4366 ExecStart=/usr/lib/systemd/systemd-sleep hibernate (code=exited, status=1/FAILURE)
Main PID: 4366 (code=exited, status=1/FAILURE)
4 月 16 14:04:47 linux.site systemd[1]: Starting Hibernate...
4 月 16 14:04:47 linux.site systemd-sleep[4366]: Suspending system...
4 月 16 14:04:48 linux.site systemd[1]: systemd-hibernate.service: main process exited, code=exited, status=1/FAILURE
4 月 16 14:04:48 linux.site systemd[1]: Failed to start Hibernate.
4 月 16 14:04:48 linux.site systemd[1]: Unit systemd-hibernate.service entered failed state.
systemctl status -l atd.service 消息
systemctl status -l atd.service
atd.service - Execution Queue Daemon
Loaded: loaded (/usr/lib/systemd/system/atd.service; enabled)
Active: inactive (dead) since 三 2014-04-16 14:04:47 CST; 5min ago
Process: 653 ExecStart=/usr/sbin/atd -f (code=exited, status=0/SUCCESS)
Main PID: 653 (code=exited, status=0/SUCCESS)
4 月 16 11:50:42 linux systemd[1]: Starting Execution Queue Daemon...
4 月 16 11:50:42 linux systemd[1]: Started Execution Queue Daemon.
4 月 16 14:04:47 linux.site systemd[1]: Stopping Execution Queue Daemon...
4 月 16 14:04:47 linux.site systemd[1]: Stopped Execution Queue Daemon.
在命令行里面直接执行下:
/usr/lib/systemd/systemd-sleep hibernate
呢?
qomo
(qomo)
2014年04月17日 05:43
18
出现 Suspending system…
然后没有任何反映
cat /var/log/messages
也没有任何消息