Trust me to provide an incorrect shell script! I omitted to test for the "resume" as well as "suspend" action!
Please use this shell script instead:
for log in /var/log/kern.log*; do CMD="cat "; echo $log; [ ! ${log##*.gz} ] && CMD="zcat "; $CMD $log | grep -n 'PM: \(suspend\|resume\) devices took'; done
Example output:
var/log/kern.log /var/log/kern.log.0 3678:Feb 19 06:06:56 hephaestion kernel: [60285.296215] PM: suspend devices took 3.752 seconds 3830:Feb 19 06:06:57 hephaestion kernel: [60354.780958] PM: resume devices took 69.072 seconds 3948:Feb 19 10:19:23 hephaestion kernel: [75478.752211] PM: suspend devices took 3.752 seconds 4102:Feb 19 10:19:23 hephaestion kernel: [75488.172580] PM: resume devices took 9.024 seconds /var/log/kern.log.1.gz /var/log/kern.log.2.gz /var/log/kern.log.3.gz
The resume of 69 seconds shows this system is affected by bug #331415
Trust me to provide an incorrect shell script! I omitted to test for the "resume" as well as "suspend" action!
Please use this shell script instead:
for log in /var/log/kern.log*; do CMD="cat "; echo $log; [ ! ${log##*.gz} ] && CMD="zcat "; $CMD $log | grep -n 'PM: \(suspend\|resume\) devices took'; done
Example output:
var/log/kern.log kern.log. 1.gz kern.log. 2.gz kern.log. 3.gz
/var/log/kern.log.0
3678:Feb 19 06:06:56 hephaestion kernel: [60285.296215] PM: suspend devices took 3.752 seconds
3830:Feb 19 06:06:57 hephaestion kernel: [60354.780958] PM: resume devices took 69.072 seconds
3948:Feb 19 10:19:23 hephaestion kernel: [75478.752211] PM: suspend devices took 3.752 seconds
4102:Feb 19 10:19:23 hephaestion kernel: [75488.172580] PM: resume devices took 9.024 seconds
/var/log/
/var/log/
/var/log/
The resume of 69 seconds shows this system is affected by bug #331415