# Mike Gilbert <floppym@gentoo.org> (07 Aug 2016)
# Fails to switch cpufreq governor.
# https://bugs.gentoo.org/590780
-=sys-power/cpupower-4.7.0
+~sys-power/cpupower-4.7.0
# Pacho Ramos <pacho@gentoo.org> (7 Aug 2016)
# Upstream dead, depends on old gstreamer, old webkit, many unresolved bug
# $Id$
EAPI=6
-inherit eutils toolchain-funcs
+
+# eutils: strip-linguas
+inherit eutils systemd toolchain-funcs
DESCRIPTION="Shows and sets processor power related values"
HOMEPAGE="https://www.kernel.org/"
newconfd "${FILESDIR}"/conf.d-r2 cpupower
newinitd "${FILESDIR}"/init.d-r4 cpupower
+
+ systemd_dounit "${FILESDIR}"/cpupower-frequency-set.service
+ systemd_install_serviced "${FILESDIR}"/cpupower-frequency-set.service.conf
}
# $Id$
EAPI=6
-inherit eutils toolchain-funcs
+
+# eutils: strip-linguas
+inherit eutils systemd toolchain-funcs
DESCRIPTION="Shows and sets processor power related values"
HOMEPAGE="https://www.kernel.org/"
newconfd "${FILESDIR}"/conf.d-r2 cpupower
newinitd "${FILESDIR}"/init.d-r4 cpupower
+
+ systemd_dounit "${FILESDIR}"/cpupower-frequency-set.service
+ systemd_install_serviced "${FILESDIR}"/cpupower-frequency-set.service.conf
}
--- /dev/null
+[Unit]
+Description=CPU Frequency Scaling
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/cpupower frequency-set $OPTS
+
+[Install]
+WantedBy=multiuser.target
--- /dev/null
+[Service]
+Environment="OPTS=-g ondemand"