Hello community, here is the log from the commit of package thermald for openSUSE:Factory checked in at 2020-01-07 23:54:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/thermald (Old) and /work/SRC/openSUSE:Factory/.thermald.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "thermald" Tue Jan 7 23:54:50 2020 rev:6 rq:761495 version:1.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/thermald/thermald.changes 2018-11-09 07:55:43.271621787 +0100 +++ /work/SRC/openSUSE:Factory/.thermald.new.6675/thermald.changes 2020-01-07 23:55:11.600088614 +0100 @@ -1,0 +2,55 @@ +Wed Jan 1 16:12:40 UTC 2020 - mun...@googlemail.com + +- Update to "Release 1.9.1" + * Remove default CPU temperature compensation for auto generated + configuration from dptfxtract + * Minor Android build warnings + +- Update to "Release 1.9" + * The major change in this version is the active power limits + adjustment. This will be useful to improve performance on some + newer platform. But this will will lead to increase in CPU and + other temperatures. Hence this is important to run dptfxtract + version 1.4.1 tool to get performance sensitive thermal limits + (https://github.com/intel/dptfxtract/commits/v1.4.1). + If the default configuration picked up by thermald is not + optimal, user can select other less aggressive configuration. + Refer to the README here + https://github.com/intel/dptfxtract/blob/master/README.txt + + This power limit adjustment depends on some kernel changes + released with kernel version v5.3-rc1. For older kernel + release run thermald with --workaround-enabled + But this will depend on /dev/mem access, which means that + platforms with secure boot must update to newer kernels. + + * TCC offset limits + As reported in some forums that some platforms have issue with + high TCC offset settings. Under some special condition this + offset is adjusted. But currently needs msr module loaded to + get MSR access from user space. I have submitted a patch to + have this exported via sysfs for v5.4+ kernel. + + * To disable all the above performance optimization, use + --disable-active-power. Since Linux Thermal Daemon + implementation doesn't have capability to match Intel® Dynamic + Platform and Thermal Framework (DPTF) implementation on other + Operating systems, this option is very important if the user + is experiencing thermal issues. If there is some + OEM/manufactures have issue with this implementation, please + get back to me for blacklist of platforms. + + * Added support for Ice Lake platform + + * ThermalMonitor + Cleaned up the plots, so that only active sensors and trips + gets plotted. + +- removed fix_long_int_i586_issue.patch and + fix_missing_include.patch (solved upstream) +- added fix-man-thermald_8.patch and fix-systemd-service.patch +- added "power" system group +- added fillup-templates/sysconfig.thermald +- added thermal-monitor package + +------------------------------------------------------------------- Old: ---- _service _servicedata fix_long_int_i586_issue.patch fix_missing_include.patch thermald-1.8.tar.gz New: ---- fix-man-thermald_8.patch fix-systemd-service.patch sysconfig.thermald thermal-monitor.desktop thermal-monitor.png thermal_daemon-1.9.1.tar.gz thermald-group.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ thermald.spec ++++++ --- /var/tmp/diff_new_pack.Z1VtFo/_old 2020-01-07 23:55:13.876089795 +0100 +++ /var/tmp/diff_new_pack.Z1VtFo/_new 2020-01-07 23:55:13.900089808 +0100 @@ -1,7 +1,7 @@ # # spec file for package thermald # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,50 +16,97 @@ # +#Compat macro for new _fillupdir macro introduced in Nov 2017 +%if ! %{defined _fillupdir} + %define _fillupdir %{_localstatedir}/adm/fillup-templates +%endif + Name: thermald -Version: 1.8 +Version: 1.9.1 Release: 0 Summary: The Linux Thermal Daemon program from 01.org License: GPL-2.0-or-later Group: System/Daemons URL: https://01.org/linux-thermal-daemon -Source0: https://github.com/01org/thermal_daemon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -Source1: thermald.conf -Patch0: fix_long_int_i586_issue.patch -Patch1: fix_missing_include.patch +Source0: https://github.com/intel/thermal_daemon/archive/v%{version}/thermal_daemon-%{version}.tar.gz +Source1: %{name}.conf +Source2: %{name}-group.conf +Source3: sysconfig.%{name} +Source10: thermal-monitor.desktop +Source11: thermal-monitor.png +Patch0: fix-systemd-service.patch +Patch1: fix-man-thermald_8.patch BuildRequires: automake BuildRequires: dbus-1-devel BuildRequires: dbus-1-glib-devel BuildRequires: gcc-c++ BuildRequires: glib2-devel +BuildRequires: hicolor-icon-theme BuildRequires: libxml2-devel BuildRequires: pkgconfig +BuildRequires: sysuser-shadow +BuildRequires: sysuser-tools +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(systemd) +Requires(post): %fillup_prereq +Suggests: acpica +Suggests: dptfxtract +Suggests: thermal-monitor ExclusiveArch: %{ix86} x86_64 +%sysusers_requires %description Thermald is a Linux daemon used to prevent the overheating of platforms. This daemon monitors temperature and applies compensation using available cooling methods. +%package -n thermal-monitor +Summary: Displays current temperature readings +License: GPL-3.0-or-later +Group: Hardware/Other +Requires: %{name} >= 1.4.3 +Requires: group(power) + +%description -n thermal-monitor +Thermal Monitor displays current temperature readings on a graph. +To communicate with thermald via dbus, the user has to be member of "power" group. + %prep -%setup -q -n thermal_daemon-%{version} -%autopatch -p1 +%autosetup -n thermal_daemon-%{version} -p1 %build autoreconf -fiv %configure make %{?_smp_mflags} CFLAGS="%{optflags}" +%sysusers_generate_pre %{SOURCE2} power -%pre -%service_add_pre thermald.service +pushd tools/thermal_monitor +%qmake5 ThermalMonitor.pro +make %{?_smp_mflags} +popd %install %make_install ln -s service %{buildroot}%{_sbindir}/rcthermald -install -Dm644 "%{_sourcedir}/thermald.conf" "%{buildroot}/%{_libexecdir}/modules-load.d/thermald.conf" +install -D -m 0755 -t %{buildroot}%{_sbindir}/ tools/thermald_set_pref.sh +install -D -m 0644 -t %{buildroot}%{_libexecdir}/modules-load.d/ %{SOURCE1} +install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf +install -D -m 0644 -t %{buildroot}%{_fillupdir}/ %{SOURCE3} + +install -D -m 0755 -t %{buildroot}%{_bindir}/ tools/thermal_monitor/ThermalMonitor +install -D -m 0644 -t %{buildroot}%{_datadir}/applications/ %{SOURCE10} +install -D -m 0644 -t %{buildroot}%{_datadir}/pixmaps/ %{SOURCE11} +%suse_update_desktop_file thermal-monitor + +%pre -f power.pre +%service_add_pre thermald.service %post +%fillup_only %service_add_post thermald.service %preun @@ -69,19 +116,31 @@ %service_del_postun thermald.service %files +%license COPYING +%doc README.txt data/thermal-conf.xml +%doc test/thermald_optimization_with_dptfxtract %dir %{_datadir}/dbus-1/system-services %dir %{_sysconfdir}/dbus-1/system.d %dir %{_sysconfdir}/thermald -%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.thermald.conf -%doc data/thermal-conf.xml -%config %{_sysconfdir}/thermald/thermal-cpu-cdev-order.xml +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.thermald.conf +%config(noreplace) %{_sysconfdir}/thermald/thermal-cpu-cdev-order.xml %{_datadir}/dbus-1/system-services/org.freedesktop.thermald.service +%{_fillupdir}/sysconfig.%{name} %{_mandir}/man5/thermal-conf.xml.5%{?ext_man} %{_mandir}/man8/thermald.8%{?ext_man} -%{_sbindir}/thermald %dir %{_libexecdir}/modules-load.d %{_libexecdir}/modules-load.d/thermald.conf -%{_unitdir}/thermald.service %{_sbindir}/rcthermald +%{_sbindir}/thermald +%{_sbindir}/thermald_set_pref.sh +%{_sysusersdir}/%{name}.conf +%{_unitdir}/thermald.service + +%files -n thermal-monitor +%license tools/thermal_monitor/qcustomplot/GPL.txt +%doc tools/thermal_monitor/README +%{_bindir}/ThermalMonitor +%{_datadir}/applications/thermal-monitor.desktop +%{_datadir}/pixmaps/thermal-monitor.png %changelog ++++++ fix-man-thermald_8.patch ++++++ --- a/man/thermald.8 +++ b/man/thermald.8 @@ -100,8 +100,10 @@ .TP .B \-\-ignore-default-control Ignore default CPU temperature control. Strictly follow thermal-conf.xml or thermal-conf.xml.auto. +.TP .B \-\-workaround-enabled Enable special workarounds. This is currently used for /dev/mem based power control. +.TP .B \-\-disable-active-power Disable active power management. This will not set active power limits. ++++++ fix-systemd-service.patch ++++++ --- a/data/thermald.service.in +++ b/data/thermald.service.in @@ -3,9 +3,13 @@ [Service] Type=dbus +Environment=THERMALD_CONFIG="/etc/thermald/thermal-conf.xml" +Environment=THERMALD_POLL="4" +Environment=THERMALD_OPTS="--disable-active-power" +EnvironmentFile=-/etc/sysconfig/thermald SuccessExitStatus=1 BusName=org.freedesktop.thermald -ExecStart=@sbindir@/thermald --no-daemon --dbus-enable +ExecStart=@sbindir@/thermald --no-daemon --dbus-enable --config-file ${THERMALD_CONFIG} --poll-interval $THERMALD_POLL $THERMALD_OPTS [Install] WantedBy=multi-user.target ++++++ sysconfig.thermald ++++++ ## Path: Hardware/Thermald ## Description: Thermald settings ## Type: string ## Default: "--disable-active-power" ## ServiceRestart: thermald # # Options for thermald # # For the active power limits adjustment (since 1.9) see # - /usr/share/doc/packages/thermald/README.txt # - /usr/share/doc/packages/thermald/thermald_optimization_with_dptfxtract # - https://github.com/intel/dptfxtract # - thermald(8) # # eg. # --workaround-enabled # Enable special workarounds. This is currently used for /dev/mem based power control. # # --disable-active-power # Disable active power management. This will not set active power limits. # THERMALD_OPTS="--disable-active-power" ## Type: string ## Default: "/etc/thermald/thermal-conf.xml" # # The config file. # THERMALD_CONFIG="/etc/thermald/thermal-conf.xml" ## Type: integer ## Default: 4 # # Poll interval in seconds: Poll for zone temperature changes. # To disable polling, set to zero. Polling can only be disabled, # if available temperature sensors can notify temperature change asynchronously. # THERMALD_POLL="4" ++++++ thermal-monitor.desktop ++++++ [Desktop Entry] Name=Thermal Monitor GenericName=Monitoring of temperature GenericName[de]=Überwachung der Temperatur Comment=Displays current temperature readings on a graph Comment[de]=Zeigt die aktuellen Temperaturmesswerte in einer Grafik an Exec=/usr/bin/ThermalMonitor Terminal=false Icon=thermal-monitor Type=Application Categories=Qt;System;Monitor; ++++++ thermald-group.conf ++++++ g power - -