On 2011-01-02 06:29, Arjan van de Ven wrote:
> On 12/24/2010 10:27 AM, Török Edwin wrote:
>>
>>   - HDA-intel audio is shown as 100% used, no music is playing, tunable
>> shows as good and '/sys/module/snd_hda_intel/parameters/power_save' has
>> the value 1. Kernel bug?
> 
> btw I just committed a change that will try to list which processes have
> which device open, and specifically,
> which devices play audio.
> (and then, the audio power is charged to the process that is playing audio)
> 

It doesn't show any process using audio, yet it still shows device 100%
used (see attached powertop.html).

I found a hint though, if I try to rmmod all my snd related modules I
get this error:
ERROR: Module snd is in use by thinkpad_acpi.

Well now, acpi is supposed to help save power, not prevent it, right?
But even if I remove thinkpad_acpi powertop still reports 100% usage,
but I can rmmod all the 'snd' devices now.

There's one more hint in dmesg:
input: HDA Digital PCBeep  as
/devices/pci0000:00/0000:00:1b.0/input/input13

Could it be this one thats keeping the device busy 100%?

Best regards,
--Edwin

PowerTOP report

System information

PowerTOP version1.96 alpha 2
Kernel versionLinux version 2.6.37-rc7+ (ed...@thunder) (gcc version 4.4.5 20100824 (prerelease) (Debian 4.4.4-11) ) #26 SMP Fri Dec 24 13:58:37 EET 2010
System nameLENOVO 647814G ThinkPad X300
CPU information2x Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz
OS information

Power consumption summary

Power est.UsageEvents/sCategoryDescription
2.61 W 7213 pkts/sDeviceNetwork interface: eth0 (e1000e)
2.19 W 30.0%DeviceDisplay backlight
1.67 W 25.2% 4.8Process/usr/lib/iceweasel/firefox-bin ./powertop.html
600 mW 100.0%DeviceSATA disk: SAMSUNG MCCOE64G
500 mW 100.0%DeviceAudio codec hwC0D0: Analog Devices
50.1 mW 0.1% 4.7Processgnome-terminal
43.9 mW 0.5% 2.5Process/usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
39.6 mW 1.2 ms/s 8.0Timertick_sched_timer
23.1 mW 370.2 µs/s 5.2Interrupt[14] ide0
16.9 mW 72.9 µs/s 4.1Timerhrtimer_wakeup

Processor Idle state report

Package   CPU 0
C0 polling 0.0%  C0 polling 0.0% 0.0 ms
C1 0.0%  C1 0.0% 0.0 ms
C2 0.8%  C2 0.0% 0.3 ms
C3 85.7%  C3 74.1% 29.0 ms
    CPU 1
   C0 polling 0.0% 0.0 ms
   C1 0.0% 0.0 ms
   C2 1.5% 11.8 ms
   C3 97.2% 26.7 ms

Processor frequency report

Package   CPU 0
Turbo Mode 25.2%   Turbo Mode 25.1%
1200 Mhz 0.0%   1200 Mhz 0.0%
800 Mhz 0.9%    800 Mhz 0.6%
Idle 73.9%   Idle 74.3%
    CPU 1
   Turbo Mode 0.6%
   1200 Mhz 0.0%
    800 Mhz 0.4%
   Idle 99.0%

Overview of software power consumers

Power est.UsageWakeups/sGPU ops/sDisk IO/sCategoryDescription
1.67 W 252.2 ms/s 4.7 0.0 ( 0.3)Process/usr/lib/iceweasel/firefox-bin ./powertop.html
50.1 mW 1.0 ms/s 2.9 1.8Processgnome-terminal
43.9 mW 5.2 ms/s 2.5Process/usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
39.6 mW 1.2 ms/s 8.0Timertick_sched_timer
23.1 mW 370.2 µs/s 5.2Interrupt[14] ide0
16.9 mW 72.9 µs/s 4.1Timerhrtimer_wakeup
16.6 mW 400.4 µs/s 3.5Processudisks-daemon: polling /dev/hda
14.5 mW 0.9 ms/s 2.1Process/usr/bin/python -O /usr/share/wicd/daemon/wicd-daemon.py
14.5 mW 642.6 µs/s 2.6Process/usr/bin/dbus-daemon --system
9.75 mW 373.7 µs/s 1.8Process/usr/bin/python -O /usr/share/wicd/daemon/monitor.py
9.24 mW 175.6 µs/s 2.0kWorkblk_unplug_work
7.23 mW 109.5 µs/s 1.6Interrupt[3] net_rx(softirq)
6.40 mW 12.3 µs/s 1.6kWorkintel_idle_update
5.71 mW 690.5 µs/s 0.3Processwicd
4.88 mW 171.6 µs/s 0.9Process/usr/sbin/hald
4.71 mW 116.2 µs/s 1.0Process/usr/lib/upower/upowerd
4.21 mW 39.9 µs/s 1.0Process/usr/lib/gvfs/gvfs-afc-volume-monitor
3.96 mW 183.0 µs/s 0.7Interrupt[9] acpi
3.67 mW 528.9 µs/s 0.0Processpowertop --html
3.64 mW 133.0 µs/s 0.7Processupdate-notifier
3.26 mW 16.0 µs/s 0.8kWorki915_gem_retire_work_handler
2.15 mW 87.0 µs/s 0.4Processavahi-daemon: running [thunder.local]
2.11 mW 21.6 µs/s 0.5kWorke1000_watchdog_task
2.06 mW 163.4 µs/s 0.2Process/usr/lib/gnome-settings-daemon/gnome-settings-daemon
2.02 mW 6.8 µs/s 0.5Process[ksoftirqd/0]
1.96 mW 28.6 µs/s 0.4Interrupt[43] i915
1.94 mW 295.8 µs/skWorkdo_dbs_timer
1.94 mW 24.5 µs/s 0.4Processhald-addon-storage: no polling on /dev/hda because it is explicitly disabled
1.62 mW 157.4 µs/s 0.1Processgnome-power-manager
1.44 mW 129.7 µs/s 0.1Processudevd --daemon
1.27 mW 193.6 µs/sTimerdelayed_work_timer_fn
1.15 mW 175.2 µs/sInterrupt[1] timer(softirq)
1.12 mW 110.7 µs/s 0.1Process/usr/sbin/kerneloops
1.04 mW 98.1 µs/s 0.1Processgnome-panel
1.02 mW 5.3 µs/s 0.2Process[ksoftirqd/1]
950 µW 144.9 µs/sProcess[kworker/0:2]
943 µW 53.5 µs/s 0.1Process/usr/lib/libgconf2-4/gconfd-2
869 µW 132.5 µs/sInterrupt[0] timer/0
869 µW 12.1 µs/s 0.2Processinit [2]
849 µW 129.5 µs/sInterrupt[0] timer/1
775 µW 118.2 µs/sProcessifconfig
763 µW 116.3 µs/sInterrupt[9] RCU(softirq)
611 µW 2.9 µs/s 0.1Timerwatchdog_timer_fn
512 µW 78.0 µs/sProcessgnome-session
481 µW 43.3 µs/s 0.0Interrupt[7] sched(softirq)
470 µW 11.5 µs/s 0.1Processfirefox-bin
428 µW 5.1 µs/s 0.1Process/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute gnome-session
401 µW 0.9 µs/s 0.1Process[watchdog/1]
399 µW 0.6 µs/s 0.1kWorkneigh_periodic_work
378 µW 57.6 µs/sProcessnautilus
371 µW 26.5 µs/s 0.0Process/usr/sbin/console-kit-daemon --no-daemon
351 µW 53.5 µs/sProcessnm-applet --sm-disable
340 µW 51.8 µs/sProcess[kworker/1:1]
320 µW 48.8 µs/sProcess/usr/bin/metacity
312 µW 47.6 µs/sProcessbluetooth-applet
308 µW 46.9 µs/sProcess/usr/bin/seahorse-agent --execute gnome-session
302 µW 46.1 µs/sProcessgnome-screensaver
297 µW 45.3 µs/sProcess/usr/lib/evolution/2.30/evolution-alarm-notify
295 µW 45.0 µs/sProcess/usr/bin/python /usr/bin/system-config-printer-applet
289 µW 44.1 µs/sProcess/usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py
288 µW 44.0 µs/sProcess/usr/lib/gnome-disk-utility/gdu-notification-daemon
286 µW 43.7 µs/sProcesskerneloops-applet
286 µW 43.5 µs/sProcess/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
253 µW 38.6 µs/sProcess/usr/sbin/libvirtd -d
251 µW 8.1 µs/s 0.0Processrs:main Q:Reg
221 µW 3.6 µs/s 0.0Process[flush-8:0]
213 µW 2.3 µs/s 0.0Process/sbin/auditd
206 µW 1.2 µs/s 0.0Process/sbin/audispd
203 µW 0.8 µs/s 0.0Process[watchdog/0]
200 µW 0.4 µs/s 0.0Process[sync_supers]
161 µW 24.6 µs/sInterrupt[45] eth0
148 µW 22.6 µs/sProcess[kworker/u:1]
117 µW 17.8 µs/sTimerblk_unplug_timeout
0 mW 10.0 µs/skWorkvmstat_update
0 mW 9.9 µs/sTimerintel_gpu_idle_timer
0 mW 9.1 µs/sProcess/usr/bin/dbus-daemon --fork --print-pid 5 --print-address 8 --session
0 mW 7.3 µs/sTimeri915_hangcheck_elapsed
0 mW 1.5 µs/sTimerigmp_timer_expire
0 mW 1.2 µs/sProcess[migration/1]
0 mW 1.1 µs/sTimere1000_watchdog
0 mW 1.1 µs/sTimerdev_watchdog
0 mW 0.9 µs/sTimersched_rt_period_timer
0 mW 0.6 µs/sProcess[migration/0]
0 mW 0.5 µs/sInterrupt[2] net tx(softirq)
0 mW 0.5 µs/sTimerneigh_timer_handler
0 mW 0.3 µs/sTimerlaptop_mode_timer_fn
0 mW 0.2 µs/sTimersync_supers_timer_fn
0 mW 0.1 µs/sTimertcp_write_timer
0 mW 0.1 µs/sTimertcp_delack_timer
0 mW 0.1 µs/sTimerblk_rq_timed_out_timer

Process device activity

ProcessDevice
init/dev/initctl
udevd/dev/.udev/queue.bin
acpi_fakekeyd/dev/input/uinput
rsyslogd/dev/xconsole
hald-addon-inpu/dev/input/event9
/dev/input/event0
/dev/input/event2
/dev/input/event3
/dev/input/event1
/dev/input/event6
/dev/input/event4
/dev/input/event11
bluetoothd/dev/rfkill
Xorg/dev/input/event11
/dev/input/event9
/dev/input/event8
/dev/input/event7
/dev/input/event4
/dev/input/event6
/dev/input/event1
/dev/input/event3
/dev/input/event2
/dev/dri/card0
/dev/vga_arbiter
upowerd/dev/input/event0
/dev/network_latency
/dev/cpu_dma_latency
bluetooth-apple/dev/rfkill

Device power report

The battery reports a discharge rate of 12.7 W

System baseline power is estimated at 100 W

Power est.UsageDevice name
2.61 W 7213 pkts/sNetwork interface: eth0 (e1000e)
2.19 W 30.0%Display backlight
1.97 W 26.8%CPU use
600 mW 100.0%SATA disk: SAMSUNG MCCOE64G
500 mW 100.0%Audio codec hwC0D0: Analog Devices
31.9 mW 1.8 ops/sGPU
0 mW 1863 rpmLaptop fan
0 mW 0.0 pkts/sNetwork interface: wlan0 (iwlagn)
0 mW 0.0%Radio device: thinkpad_acpi
0 mW 0.0%Radio device: iwlagn
0 mW 0.0%USB device: EHCI Host Controller
0 mW 0.0%USB device: EHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: Chicony Electronics Co., Ltd.
0 mW 0.0%USB device: Biometric Coprocessor (STMicroelectronics)
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) SMBus Controller
100.0%PCI Device: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
100.0%PCI Device: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller
100.0%PCI Device: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4
100.0%PCI Device: Intel Corporation 82566MM Gigabit Network Connection
100.0%PCI Device: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller
100.0%PCI Device: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub
0.0%SATA link: host2
0.0%SATA link: host1

Software settings in need of tuning

Wireless Power Saving for interface wlan0

Untunable software issues

PCI Device Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller has no runtime power management
PCI Device Intel Corporation 82801 Mobile PCI Bridge has no runtime power management
PCI Device Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller has no runtime power management

Optimal tuned software settings

Enable Audio codec power management
Enable SATA link power management for /dev/sda
VM writeback timeout
Autosuspend for USB device EHCI Host Controller [usb1]
Autosuspend for USB device Chicony Electronics Co., Ltd. [2-5]
Autosuspend for USB device UHCI Host Controller [usb3]
Autosuspend for USB device UHCI Host Controller [usb4]
Autosuspend for USB device UHCI Host Controller [usb5]
Autosuspend for USB device UHCI Host Controller [usb6]
Autosuspend for USB device UHCI Host Controller [usb7]
Autosuspend for USB device Biometric Coprocessor (STMicroelectronics)
Autosuspend for USB device EHCI Host Controller [usb2]
Runtime PM for PCI Device Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub
Runtime PM for PCI Device Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller
Runtime PM for PCI Device Intel Corporation 82566MM Gigabit Network Connection
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) HD Audio Controller
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) PCI Express Port 1
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) PCI Express Port 2
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) PCI Express Port 3
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1
Runtime PM for PCI Device Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller
Runtime PM for PCI Device Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) SMBus Controller
Runtime PM for PCI Device Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
Wake-on-lan status for device eth0
Using 'ondemand' cpufreq governor

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to