public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Cannot shutdown power use from built in webcam in thinkpad T530 questions]
       [not found]     ` <523FFA03.7050404@rempel-privat.de>
@ 2013-09-28 18:08       ` Marc MERLIN
  2013-09-28 18:39         ` Oleksij Rempel
  0 siblings, 1 reply; 2+ messages in thread
From: Marc MERLIN @ 2013-09-28 18:08 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: Alan Stern, USB list, linux-media

On Mon, Sep 23, 2013 at 10:21:23AM +0200, Oleksij Rempel wrote:
> > 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.

> 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.

> 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
-- 
"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/  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cannot shutdown power use from built in webcam in thinkpad T530 questions]
  2013-09-28 18:08       ` Cannot shutdown power use from built in webcam in thinkpad T530 questions] Marc MERLIN
@ 2013-09-28 18:39         ` Oleksij Rempel
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksij Rempel @ 2013-09-28 18:39 UTC (permalink / raw)
  To: Marc MERLIN; +Cc: Alan Stern, USB list, linux-media

Am 28.09.2013 20:08, schrieb Marc MERLIN:
> On Mon, Sep 23, 2013 at 10:21:23AM +0200, Oleksij Rempel wrote:
>>> 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.
> 
>> 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

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.

-- 
Regards,
Oleksij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-28 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20130922193102.GA28515@merlins.org>
     [not found] ` <Pine.LNX.4.44L0.1309221623390.3257-100000@netrider.rowland.org>
     [not found]   ` <20130922203622.GB28515@merlins.org>
     [not found]     ` <523FFA03.7050404@rempel-privat.de>
2013-09-28 18:08       ` Cannot shutdown power use from built in webcam in thinkpad T530 questions] Marc MERLIN
2013-09-28 18:39         ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox