From: Oleksij Rempel <linux@rempel-privat.de>
To: Marc MERLIN <marc@merlins.org>
Cc: Alan Stern <stern@rowland.harvard.edu>,
USB list <linux-usb@vger.kernel.org>,
linux-media@vger.kernel.org
Subject: Re: Cannot shutdown power use from built in webcam in thinkpad T530 questions]
Date: Sat, 28 Sep 2013 20:39:07 +0200 [thread overview]
Message-ID: <5247224B.7050507@rempel-privat.de> (raw)
In-Reply-To: <20130928180811.GD3177@merlins.org>
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
prev parent reply other threads:[~2013-09-28 18:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5247224B.7050507@rempel-privat.de \
--to=linux@rempel-privat.de \
--cc=linux-media@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marc@merlins.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox