Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531360 - sys-power/cpupower - add systemd service unit
Summary: sys-power/cpupower - add systemd service unit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-12-01 16:59 UTC by Reuben Martin
Modified: 2016-09-09 17:05 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.