Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 531360

Summary: sys-power/cpupower - add systemd service unit
Product: Gentoo Linux Reporter: Reuben Martin <reuben.m>
Component: [OLD] Core systemAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, joost.ruis, lucas.yamanishi, orodruinlair, systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

Description Reuben Martin 2014-12-01 16:59:56 UTC
plenty of examples available: https://github.com/search?q=cpupower.service&type=Code&utf8=%E2%9C%93


Reproducible: Always
Comment 1 Thomas Oettli 2016-09-07 16:21:19 UTC
It would be great to have systemd units for cpupower.
The battery consumption of any laptop will decrease.
Comment 2 Mike Gilbert gentoo-dev 2016-09-08 01:28:29 UTC
commit 16ea9eebec61442474c6feb6b9a279633d8fb7cf
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Wed Sep 7 21:25:54 2016 -0400

    sys-power/cpupower: add cpupower-frequency-set.service
    
    Bug: https://bugs.gentoo.org/531360

 profiles/package.mask                                            | 2 +-
 .../cpupower/{cpupower-4.5.0.ebuild => cpupower-4.5.0-r1.ebuild} | 7 ++++++-
 .../cpupower/{cpupower-4.7.0.ebuild => cpupower-4.7.0-r1.ebuild} | 7 ++++++-
 sys-power/cpupower/files/cpupower-frequency-set.service          | 9 +++++++++
 sys-power/cpupower/files/cpupower-frequency-set.service.conf     | 2 ++
 5 files changed, 24 insertions(+), 3 deletions(-)
Comment 3 Alexander Tsoy 2016-09-09 13:24:06 UTC
(In reply to Mike Gilbert from comment #2)

There is a typo in the unit file: WantedBy=multiuser.target -> WantedBy=multi-user.target
Comment 4 Mike Gilbert gentoo-dev 2016-09-09 17:05:15 UTC
Thanks, should be fixed now.