You could have logrotate rotate the log every day and only keep 1 or 2 days of logs. You can accomplish this by editing /etc/logrotate.d/pm-utils
to something like this:
/var/log/pm-suspend.log {
weekly
rotate 4
delaycompress
compress
notifempty
missingok
}
/var/log/pm-powersave.log {
daily
rotate 2
delaycompress
compress
notifempty
missingok
}
This retains the default logrotate settings for pm-suspend.log
, and makes two changes to the settings for pm-powersave.log
:
- Rotation frequency has been decreased from
weekly
to daily
- The number of logs to keep in rotation has been decreased from
4
to 2
Now, you will have 2 pm-powersave.log files for just the last 2 days, each of which should be a more manageable size. If you find you need the logs, you can increase it to 5-7, if you don't use them, you can safely decrease it to 1.
This is just a workaround. I am in the process of looking into disabling pm-powersave
logging, or at least changing the log level to something less verbose. I will report back if I find anything promising.