Skip to contentSkip to conversation

Cannot shutdown power use from built in webcam in thinkpad T530 questions]

DISCUSSION Marc MERLIN 2 participants 2 messages Sep 28, 2013 4 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#4 lore raw
In reply to a message not in the archive
Quoted 4 lines · Oleksij Rempel
Quoted 2 lines

Understood, just making sure this was still potentially useful considering what I found out since my last message.

Which version of powertop are you actually using? None of current

The latest, i.e. 2.4.

Quoted 1 line

versions would show you Watt usage for devices.

Sure it does :)

Summary: 3182.2 wakeups/second, 82.5 GPU ops/seconds, 0.0 VFS ops/sec and 33.5%

Power est. Usage Events/s Category Description

  9.82 W    100.0%                      Device         USB device: Yubico Yubike
  2.67 W      4.1 ms/s      43.2        Process        /usr/bin/pulseaudio --sta
  2.58 W    100.0%                      Device         USB device: Integrated Ca
  2.35 W    100.0%                      Device         USB device: BCM20702A0 (B
  2.32 W     32.9%                      Device         Display backlight
  1.39 W    100.0%                      Device         Radio device: btusb
  343 mW    100.0%                      Device         Radio device: thinkpad_ac

Now, I've found those values to be often wrong or questionable.

Quoted 4 lines

you can use "watch grep . *" instead and check fallowing fields:
runtime_suspended_time - suspend time. If it is growing device is suspended runtime_active_kids - if not zero, some program use it
control - if "on" then autosuspend is disabled.

Understood.

Thanks,
Marc

Signature · 4 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  
#5 lore raw

Am 28.09.2013 20:08, schrieb Marc MERLIN:

Quoted 14 lines · Oleksij Rempel
Quoted 4 lines
Quoted 2 lines

Understood, just making sure this was still potentially useful considering what I found out since my last message.

Which version of powertop are you actually using? None of current

The latest, i.e. 2.4.

Quoted 1 line

versions would show you Watt usage for devices.

Sure it does :)

Summary: 3182.2 wakeups/second, 82.5 GPU ops/seconds, 0.0 VFS ops/sec and 33.5%

Quoted 8 lines

Power est. Usage Events/s Category Description

  9.82 W    100.0%                      Device         USB device: Yubico Yubike
  2.67 W      4.1 ms/s      43.2        Process        /usr/bin/pulseaudio --sta
  2.58 W    100.0%                      Device         USB device: Integrated Ca
  2.35 W    100.0%                      Device         USB device: BCM20702A0 (B
  2.32 W     32.9%                      Device         Display backlight
  1.39 W    100.0%                      Device         Radio device: btusb
  343 mW    100.0%                      Device         Radio device: thinkpad_ac

ah ok, i see, you right. In usb.cpp:
double usbdevice::power_usage(struct result_bundle *result, struct parameter_bundle *bundle)

{
        double power;
        double factor;
        double util;

        if (rootport || !cached_valid)
                return 0.0;


        power = 0;
        factor = get_parameter_value(index, bundle);
        util = get_result_value(r_index, result);

        power += util * factor / 100.0;

        return power;
}

but, if i understand it correctly, this values are not provided by usb. If you start "powertop --calibrate" it will switch on/off some devices and measure global power usage.

Signature · 2 lines
Regards,
Oleksij