mirror of
https://github.com/erpalma/throttled.git
synced 2025-12-06 07:01:59 +01:00
Merge branch 'erpalma:master' into patch-1
This commit is contained in:
commit
c914897d3d
|
|
@ -52,7 +52,7 @@ As of Linux 5.9, kernel messages will be logged whenever the script writes to MS
|
|||
Note that some kernels (e.g. [linux-hardened](https://www.archlinux.org/packages/extra/x86_64/linux-hardened/)) will prevent from writing to `/dev/mem` too. Specifically, you need a kernel with `CONFIG_DEVMEM` and `CONFIG_X86_MSR` set.
|
||||
|
||||
### Thermald
|
||||
As discovered by *DEvil0000* the Linux Thermal Monitor ([thermald](https://github.com/intel/thermal_daemon)) can conflict with the purpose of this tool. In particular, thermald might be pre-installed (e.g. on Ubuntu) and configured in such a way to keep the CPU temperature below a certain threshold (~80 'C) by applying throtthling or messing up with RAPL or other CPU-specific registers. I strongly suggest to either disable/uninstall it or to review its default configuration.
|
||||
As discovered by *DEvil0000* the Linux Thermal Monitor ([thermald](https://github.com/intel/thermal_daemon)) can conflict with the purpose of this tool. In particular, thermald might be pre-installed (e.g. on Ubuntu) and configured in such a way to keep the CPU temperature below a certain threshold (~80 'C) by applying throttling or messing up with RAPL or other CPU-specific registers. I strongly suggest to either disable/uninstall it or to review its default configuration.
|
||||
|
||||
### Update
|
||||
The tool is now running with Python3 by default (tested w/ 3.6) and a virtualenv is automatically created in `/opt/throttled`. Python2 should probably still work.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
pkgname=throttled
|
||||
pkgver=0.6
|
||||
pkgver=0.7
|
||||
pkgrel=4
|
||||
pkgdesc="Workaround for Intel throttling issues in Linux."
|
||||
arch=('any')
|
||||
|
|
@ -9,7 +9,7 @@ license=('MIT')
|
|||
depends=('python-dbus' 'python-psutil' 'python-gobject')
|
||||
conflicts=('lenovo-throttling-fix-git' 'lenovo-throttling-fix')
|
||||
replaces=('lenovo-throttling-fix')
|
||||
backup=('etc/lenovo_fix.conf')
|
||||
backup=('etc/throttled.conf')
|
||||
source=("git+https://github.com/Hyper-KVM/throttled.git#branch=openrc")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
|
|
@ -21,10 +21,10 @@ build() {
|
|||
|
||||
package() {
|
||||
cd "${srcdir}/throttled/"
|
||||
install -Dm644 etc/lenovo_fix.conf "$pkgdir"/etc/lenovo_fix.conf
|
||||
install -Dm644 systemd/lenovo_fix.service "$pkgdir"/usr/lib/systemd/system/lenovo_fix.service
|
||||
install -Dm755 lenovo_fix.py "$pkgdir"/usr/lib/$pkgname/lenovo_fix.py
|
||||
install -Dm755 openrc/lenovo_fix "$pkgdir/etc/init.d/lenovo_fix"
|
||||
install -Dm644 etc/throttled.conf "$pkgdir"/etc/throttled.conf
|
||||
install -Dm644 systemd/throttled.service "$pkgdir"/usr/lib/systemd/system/throttled.service
|
||||
install -Dm755 throttled.py "$pkgdir"/usr/lib/$pkgname/throttled.py
|
||||
install -Dm755 openrc/throttled "$pkgdir/etc/init.d/throttled"
|
||||
install -Dm755 mmio.py "$pkgdir"/usr/lib/$pkgname/mmio.py
|
||||
cp -a __pycache__ "$pkgdir"/usr/lib/$pkgname/
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
|
|
|
|||
Loading…
Reference in a new issue