LWN.net Logo

The PowerClamp driver

The PowerClamp driver

Posted Dec 7, 2012 1:59 UTC (Fri) by idupree (subscriber, #71169)
In reply to: The PowerClamp driver by Jonno
Parent article: The PowerClamp driver

Yeah, alas. I'd hoped it was a "[mechanism] to put an overall limit on the amount of power consumed" but it isn't. I was looking at certain external batteries[*] for travel which have a maximum output rating of 4.2A. My laptop (at 19V DC input) is capable of using more than 4.2A (80 W). The power brick it came with has max 6.32A; from my measurements with some of CPU/GPU/screen at full force, this higher capacity is sometimes necessary. If my system tried to draw more power at any moment, bad things might happen (I'm not sure how bad. Battery damage? Laptop shutdown?). I wouldn't buy that battery without a way to ensure the laptop's total power usage was below the limit -- which is a hard problem which this article does not appear to go anywhere near solving.

[*] http://zikko-store.com/product_view.php?id=7


(Log in to post comments)

The PowerClamp driver

Posted Dec 12, 2012 16:40 UTC (Wed) by arjan (subscriber, #36785) [Link]

powerclamp is a building block towards a solution that you describe.
Note that if you need a "near instant" limit, a kernel level solution isn't going to work, you need something much much faster responding.
But if you can deal with "we need over <some hundreds of milliseconds> the average to be below X", and you can measure X.. this driver is what a small (userspace) control agent can use to actually impact the current consumption

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds