Karanbir Singh
2016-Feb-28 10:43 UTC
[CentOS] power management / tuned following external power source
hi, twice in the last week I've been caught out where the laptop was running tuned with 'throughput-performance' profile on the work table, and I walked away, carried on working - and had the battery run flat in just over an hour. Compare this with tuned running the 'powersave' profile - will usually take the battery through to 3hrs+ - and if i just totally turn down the cpu's in the powersave mode, I can get 5 hrs+ on the x1 carbon gen2 laptop I've got. So what I am wondering is if there is an easy way to have the tuned-adm reset profiles based on external power source. If I'm at the work table and plugged in, run with throughput-performance mode, and if the external power is disconnected, run in powersave mode ? I've had, admittedly a brief, look and found nothing obvious. Has anyone else run into this before ? Regards -- Karanbir Singh +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh GnuPG Key : http://www.karan.org/publickey.asc
On 02/28/16 04:43, Karanbir Singh wrote: <>> So what I am wondering is if there is an easy way to have the tuned-adm > reset profiles based on external power source. If I'm at the work table > and plugged in, run with throughput-performance mode, and if the > external power is disconnected, run in powersave mode ? I've had, > admittedly a brief, look and found nothing obvious. Has anyone else run > into this before ? >-- do not know about 'tuned-adm', i presume you added it, or it is centos 7.x. therefore i can not reply to your questions, other than to ask if you use kde and have looked at what it provides. with centos 6.7 and kde desktop on my laptop, i use the power control setting provided by; system settings > advanced > power management with this, i am able to config settings to handle about all conditions, including 'power save mode' and no external power. having recently purchased a new 6600 mAH battery, i am curious as to just how long laptop will run 'off mains' before i get a notice and have to recharge. so far, my longest run is around 4 hrs, with time left. i do not recall what % battery icon showed. selectable settings are; powersave performance aggressive powersave xtreme powersave presentation each 'type' also has selection for action to apply. so, if you are running kde, i will suggest checking out the provided 'power management' control, -- peace out. If Bill Gates got a dime for every time Windows crashes... ...oh, wait. He does. THAT explains it! -+- in a world with out fences, who needs gates. CentOS GNU/Linux 6.7 tc,hago. g .