Browse Source

Add 'cpu_thermal_control' files (Arch Linux)

master
Pekka Helenius 6 years ago
committed by GitHub
parent
commit
feb8a7cb7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 102 additions and 0 deletions
  1. +57
    -0
      cpu_thermal_control/PKGBUILD
  2. +27
    -0
      cpu_thermal_control/thermal-conf.xml
  3. +8
    -0
      cpu_thermal_control/thermal-cpu-cdev-order.xml
  4. +10
    -0
      cpu_thermal_control/thermald-temp.service

+ 57
- 0
cpu_thermal_control/PKGBUILD View File

@ -0,0 +1,57 @@
# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com>
# Contributor: hadrons123 <piruthiviraj at gmail dot com>
# Contributor: WonderWoofy <sugar.and.scruffy@gmail.com>,wallnuss <v dot churavy at gmail dot com>
# Contributor: Pekka Helenius (~ Fincer) <fincer89@hotmail.com>
pkgname=thermald
_pkgname=thermal_daemon
pkgver=1.7.1
pkgrel=1
pkgdesc="The Linux Thermal Daemon program from 01.org"
arch=('i686' 'x86_64')
url="https://01.org/linux-thermal-daemon"
license=('GPL2')
makedepends=('systemd')
depends=('dbus-glib' 'libxml2')
backup=('etc/thermald/thermal-conf.xml')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/01org/${_pkgname}/archive/v${pkgver}.tar.gz"
'modules-load-thermald.conf'
'thermald-temp.service'
'thermal-conf.xml'
'thermal-cpu-cdev-order.xml')
sha256sums=('c4465d9312304b879908289e2e9da7417e88151c1529dff42acb8e3fb6aa4f47'
'0155e1eb459306d251a5a049ffc6c11e144fa8caa75901ac5fa20bd52e05d515'
'aa5f8df79088e7f4821635f28f285bad33d470397b9c65f2ae7873c25aa0d33f'
'a567109439e3652942d42dfa38e42af50d5eab8a7c5a2d46905b5c2d6445bf06'
'e8fe16460d5003f2b91382d90d72a87082b57f48e9f73d660fec3ba0f4532d02')
build() {
cd ${_pkgname}-${pkgver}
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin
make
}
package() {
cd ${_pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}"/modules-load-thermald.conf "${pkgdir}"/usr/lib/modules-load.d/thermald.conf
cd "${pkgdir}"/etc/thermald/
rm thermal-cpu-cdev-order.xml
rm thermal-conf.xml
install -Dm644 "${srcdir}"/thermal-conf.xml "${pkgdir}"/etc/thermald/thermal-conf.xml
install -Dm644 "${srcdir}"/thermal-cpu-cdev-order.xml "${pkgdir}"/etc/thermald/thermal-cpu-cdev-order.xml
install -Dm644 "${srcdir}"/thermald-temp.service "${pkgdir}"/usr/lib/systemd/system/thermald-temp.service
# Remove Upstart related files
rm -r "${pkgdir}/etc/init"
}

+ 27
- 0
cpu_thermal_control/thermal-conf.xml View File

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
<Name>Intel Powered Laptop</Name>
<ProductName>*</ProductName>
<Preference>QUIET</Preference>
<ThermalZones>
<ThermalZone>
<Type>cpu</Type>
<TripPoints>
<TripPoint>
<SensorType>x86_pkg_temp</SensorType>
<Temperature>75000</Temperature>
<type>passive</type>
<ControlType>SEQUENTIAL</ControlType>
<CoolingDevice>
<index>1</index>
<type>intel_pstate</type>
<influence>100</influence>
<SamplingPeriod>6</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
</ThermalZones>
</Platform>
</ThermalConfiguration>

+ 8
- 0
cpu_thermal_control/thermal-cpu-cdev-order.xml View File

@ -0,0 +1,8 @@
<CoolingDeviceOrder>
<CoolingDevice>intel_pstate</CoolingDevice>
<CoolingDevice>rapl_controller</CoolingDevice>
<CoolingDevice>intel_powerclamp</CoolingDevice>
<CoolingDevice>cpufreq</CoolingDevice>
<CoolingDevice>Processor</CoolingDevice>
</CoolingDeviceOrder>

+ 10
- 0
cpu_thermal_control/thermald-temp.service View File

@ -0,0 +1,10 @@
[Unit]
Description=Set temperature limit for Thermal Daemon
Wants=thermald.service
After=thermald.service
[Service]
ExecStart=/usr/bin/dbus-send --system --dest=org.freedesktop.thermald /org/freedesktop/thermald org.freedesktop.thermald.SetUserMaxTemperature string:cpu uint32:72000
[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save