Package: pm-utils
Version: 1.4.1-15
Severity: important

Approximately every second the pm-utils scripts write this junk to my
/var/log/pm-powersave.log file:

=============8<-----------------------------
Running hook /usr/lib/pm-utils/power.d/95hdparm-apm true:
/usr/lib/pm-utils/power.d/95hdparm-apm true: success.

Running hook /usr/lib/pm-utils/power.d/anacron true:
/usr/lib/pm-utils/power.d/anacron true: success.

Running hook /usr/lib/pm-utils/power.d/disable_wol true:
Setting Wake On Lan for eth0 to disable...Done.
/usr/lib/pm-utils/power.d/disable_wol true: success.

Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave true:
Setting power savings for snd_hda_intel to 1...Done.
/usr/lib/pm-utils/power.d/intel-audio-powersave true: success.

Running hook /usr/lib/pm-utils/power.d/laptop-mode true:
Laptop mode enabled.
/usr/lib/pm-utils/power.d/laptop-mode true: success.

Running hook /usr/lib/pm-utils/power.d/pci_devices true:
Setting Host Bridge 0000:00:00.0 to auto
Setting Audio device 0000:00:03.0 to auto
Setting Ethernet device 0000:00:19.0 to auto
Setting Audio device 0000:00:1b.0 to auto
Setting Wireless device 0000:02:00.0 to auto
/usr/lib/pm-utils/power.d/pci_devices true: success.

Running hook /usr/lib/pm-utils/power.d/pcie_aspm true:
sh: echo: I/O error
/usr/lib/pm-utils/power.d/pcie_aspm true: success.

Running hook /usr/lib/pm-utils/power.d/sata_alpm true:
/usr/lib/pm-utils/power.d/sata_alpm true: success.

Running hook /usr/lib/pm-utils/power.d/sched-powersave true:
**sched policy powersave ON
/usr/lib/pm-utils/power.d/sched-powersave true: success.

Running hook /usr/lib/pm-utils/power.d/usb_bluetooth true:
Setting /sys/bus/usb/devices/1-8 to auto
/usr/lib/pm-utils/power.d/usb_bluetooth true: success.

Running hook /usr/lib/pm-utils/power.d/wireless true:
cat: /sys/class/net/wlan0/device/enabled: No such file or directory
/usr/lib/pm-utils/power.d/wireless true: success.

Running hook /usr/lib/pm-utils/power.d/xfs_buffer true:
/usr/lib/pm-utils/power.d/xfs_buffer true: not applicable.

-------------------------->8=======================


This creates log files that quickly grow to many gigabytes.  Last I
checked, the log file was at 23GB on a 37GB root partition.  Since
logrotate is used to rotate these logs (and logrotate is a amateur-ish
hack that doesn't rotate logs in real-time like daemontools or runit),
the files can easily grow too large for the partition with no
monitoring.

So there are multiple problmes here in design and implementation:

A. Something is causing events to be generated every second.  I don't
know what that is.  Is this normal?

B. The logs are too verbose by default, but don't really help a normal
person understand what is going on.

C. The logs don't have any timestamps associated with them.
Distinctly unhelpful.

D. The logs don't rotate off in a sane way, based on a fixed size or
other metric that prevents pm-utils from DoSing the system.  Try
runit's svlogd.


All of this churning every second not only wastes my disk space, but
it also burns precious battery life and degrades the life of my SSD.
Isn't the point of something like pm-utils and "powersave" mode
supposed to work in the opposite direction?  Hence the "important"
rating for a package of this kind.

Thanks,
tim



-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages pm-utils depends on:
ii  powermgmt-base  1.31+nmu1

Versions of packages pm-utils recommends:
ii  ethtool  1:3.16-1
ii  hdparm   9.43-2
ii  kbd      1.15.5-2
ii  procps   2:3.3.9-9
ii  vbetool  1.1-3

Versions of packages pm-utils suggests:
pn  cpufrequtils    <none>
pn  radeontool      <none>
ii  wireless-tools  30~pre9-8

-- Configuration Files:
/etc/logrotate.d/pm-utils changed:
/var/log/pm-suspend.log /var/log/pm-powersave.log {
       rotate 10
       delaycompress
       compress
       notifempty
       missingok
}


-- no debconf information

Reply via email to