6

I'm trying to send my system to sleep using e.g.

rtcwake -v -m disk -s 60

and receive the following output

rtcwake: RTC wird als UTC interpretiert
UTC wird verwendet.
    delta   = 1
    tzone   = 0
    tzname  = UTC
    systime = 1524206927, (UTC) Fri Apr 20 06:48:47 2018
    rtctime = 1524206926, (UTC) Fri Apr 20 06:48:46 2018
Alarm 0, sys_time 1524206927, rtc_time 1524206926, Sekunden 60
rtcwake: wakeup from "disk" using /dev/rtc0 at Fri Apr 20 06:49:47 2018
suspend mode: disk; suspending system
rtcwake: write error

The system seems to start entering the suspend mode but returns back immediately. I'm running Ubuntu 16.04.4 LTS (GNU/Linux 4.13.0-38-generic x86_64). Are there any details, that would help to find the root cause of the problem (dmesg output, /var/log/syslog, ...)?

Thanks in advance,

Bernd

Bernd
  • 61

1 Answers1

0

I found in /var/log/syslog the following:

Aug 18 00:13:54 voxel001 kernel: [115439.921446] task:lockd           state:I stack:    0 pid: 3462 ppid:     2 flags:0x00004000
Aug 18 00:13:54 voxel001 kernel: [115439.921453] Call Trace:
Aug 18 00:13:54 voxel001 kernel: [115439.921456]  <TASK>
Aug 18 00:13:54 voxel001 kernel: [115439.921460]  __schedule+0x24e/0x590
Aug 18 00:13:54 voxel001 kernel: [115439.921468]  schedule+0x69/0x110
Aug 18 00:13:54 voxel001 kernel: [115439.921471]  schedule_timeout+0x105/0x140
Aug 18 00:13:54 voxel001 kernel: [115439.921478]  svc_get_next_xprt+0xf1/0x190 [sunrpc]
Aug 18 00:13:54 voxel001 kernel: [115439.921551]  svc_recv+0x1a9/0x330 [sunrpc]
Aug 18 00:13:54 voxel001 kernel: [115439.921616]  lockd+0xa9/0x1c0 [lockd]
Aug 18 00:13:54 voxel001 kernel: [115439.921629]  ? set_grace_period+0xa0/0xa0 [lockd]
Aug 18 00:13:54 voxel001 kernel: [115439.921640]  kthread+0x12a/0x150
Aug 18 00:13:54 voxel001 kernel: [115439.921645]  ? set_kthread_struct+0x50/0x50
Aug 18 00:13:54 voxel001 kernel: [115439.921651]  ret_from_fork+0x22/0x30
Aug 18 00:13:54 voxel001 kernel: [115439.921659]  </TASK>
Aug 18 00:13:54 voxel001 kernel: [115439.921661] task:nfsd            state:I stack:    0 pid: 3541 ppid:     2 flags:0x00004000

NFS was blocking the freeze. Thus, before calling rtcwake, I ran:

systemctl stop nfs-server.service

and afterwards, rtcwake would sleep the system. Look into the log to see what is blocking the sleep.