There are commands to check uptime, history of reboots, but how to check time(s) when system was suspended?
Kubuntu 18.04.4 Desktop.
Asked
Active
Viewed 517 times
0

R S
- 2,419
1 Suspends 65 seconds ( 1 minute, 5 seconds)\n Real uptime 25655 seconds ( 7 hours, 7 minutes, 35 seconds)
. It counts suspends starting from the last boot time. It does not count suspends before previous reboots. Just suspended and tried the command again:2 Suspends 74 seconds ( 1 minute, 14 seconds)
– Gryu Apr 20 '20 at 21:43invalid date
and serveralsyntax errors
, running withbash <script>
. – R S Apr 20 '20 at 21:49susptime.sh
file,chmod +x ./susptime.sh
and execute it by./susptime.sh
– Gryu Apr 20 '20 at 21:50journalctl -u systemd-suspend
? – steeldriver Apr 20 '20 at 22:33