I tried thermald 1.7.2, and I can make it work for me, but I don't think it is the best solution. Please pardon the length at which I explain my confusion.
I find the thermal-conf files to be confusing. Ubuntu 18.04's thermald-1.7.0 package installs file /etc/thermald/thermal-conf.xml. Based on the way other packages are configured, I would expect this to be the configuration file, but thermald-1.7.0 ignores it. It seems to be just a collection of examples. Is that /etc/thermald/thermal-conf.xml file really suitable for every system to use as a default configuration? If it is not OK, then the file probably should be placed in /usr/share/doc instead of /etc. The thermal-conf.xml.auto file that 1.7.0 generates for my system seems to be OK, except for the Temperature element. Do you see any other problems with it? As far as I know, my only problem is that I can't override the generated Temperature. My system runs well if I stop thermald. I don't know how much better it would run *with* thermald, but "just stop thermald" seems to be an acceptable fall-back position. The new thermald-1.7.2 also attempts to read /etc/thermald/thermal-conf.xml.auto, and I could edit a generated thermal-conf.xml.auto to correct the Temperature element and put it there. However, the ".auto" suffix would be misleading. I would rather put the edited file in /etc/thermal-conf.xml. Thermald-1.7.2 *only* reads the files in /etc if it *can't* generate the /var/run file. It still doesn't provide a way to override a successfully generated file. What if the generated file has a bug in it? What if the user wants to fine-tune the configuration in some way? Now consider what happens when I install thermald-1.7.2 on my 18.04 system. Similar things could happen to other people in the future, if Cosmic Cuttlefish adopts 1.7.2 and other people upgrade to Cosmic from 18.04. - Because of the int3400 check in line 169 of thd_trt_art_reader.cpp, thermald does not try to generate /var/run/thermald/thermal-conf.xml.auto. - Then cthd_parse::parser_init() looks for /etc/thermald/thermal-conf.xml.auto, and does not find it. - Finally cthd_parse::parser_init() looks for /etc/thermald/thermal-conf.xml, finds the "examples" file, and loads it. As I mentioned above, I don't know if that's a good idea. --------- I'd like to suggest the following: - The thermald package should *not* install /etc/thermald/thermal-conf.xml. - thermald should first look for /etc/thermald/thermal-conf.xml and load it if it exists. - If /etc/thermald/thermal-conf.xml does not exist, thermald should generate /var/run/thermald/thermal-conf.xml.auto and load it. --------- Two unimportant points: - The new thd_log_info message at thd_trt_art_reader.cpp, line 170, should end with a \n. - I recommend that cthd_parse::parser_init() log the chosen xml_config_file's name every time, not just if it chooses the generated file. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1769236 Title: CPU frequency stuck at minimum value Status in linux package in Ubuntu: Confirmed Status in thermald package in Ubuntu: New Bug description: I installed the Kubuntu variant of Ubuntu 18.04 on a new HP Spectre 13 laptop. Performance is poor. The CPU (an i7-8550U) is running at 400MHz, and never speeds up, even when running some of the Phoronix Test Suite benchmarks. I can use cpupower to switch to the "performance" cpufreq governor, but cannot change the frequency with either governor. Here is the output of some experiments I ran while Phoronix's c-ray test was running. ______________ gjditchf@copperplate:/var/log$ cat /proc/cpuinfo | grep MHz cpu MHz : 400.008 cpu MHz : 400.002 cpu MHz : 400.002 cpu MHz : 400.003 cpu MHz : 400.005 cpu MHz : 400.003 cpu MHz : 400.001 cpu MHz : 400.004 gjditchf@copperplate:/var/log$ cpupower frequency-info analyzing CPU 0: driver: intel_pstate CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: Cannot determine or is not supported. hardware limits: 400 MHz - 4.00 GHz available cpufreq governors: performance powersave current policy: frequency should be within 400 MHz and 1.60 GHz. The governor "powersave" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 400 MHz (asserted by call to kernel) boost state support: Supported: yes Active: yes gjditchf@copperplate:/var/log$ sudo cpupower frequency-set -f 1.60GHz Setting cpu: 0 Error setting new values. Common errors: - Do you have proper administration rights? (super-user?) - Is the governor you requested available and modprobed? - Trying to set an invalid policy? - Trying to set a specific frequency, but userspace governor is not available, for example because of hardware which cannot be set to a specific frequency or because the userspace governor isn't loaded? ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: linux-image-4.15.0-20-generic 4.15.0-20.21 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 Uname: Linux 4.15.0-20-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: KDE Date: Fri May 4 12:57:25 2018 InstallationDate: Installed on 2018-04-28 (6 days ago) InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) SourcePackage: linux-signed UpgradeStatus: No upgrade log present (probably fresh install) --- ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: gjditchf 1190 F.... pulseaudio CurrentDesktop: KDE DistroRelease: Ubuntu 18.04 InstallationDate: Installed on 2018-04-28 (10 days ago) InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 8087:0a2b Intel Corp. Bus 001 Device 003: ID 0bda:564e Realtek Semiconductor Corp. Bus 001 Device 002: ID 0bda:564f Realtek Semiconductor Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: HP HP Spectre Laptop 13-af0xx Package: linux (not installed) ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-20-generic root=UUID=ab54f00a-7dd6-4d75-a664-682f777c841c ro quiet splash vt.handoff=1 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 RelatedPackageVersions: linux-restricted-modules-4.15.0-20-generic N/A linux-backports-modules-4.15.0-20-generic N/A linux-firmware 1.173 Tags: bionic Uname: Linux 4.15.0-20-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin monotone plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 10/13/2017 dmi.bios.vendor: Insyde dmi.bios.version: F.06 dmi.board.asset.tag: Type2 - Board Asset Tag dmi.board.name: 83A2 dmi.board.vendor: HP dmi.board.version: 55.24 dmi.chassis.asset.tag: Chassis Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: HP dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnInsyde:bvrF.06:bd10/13/2017:svnHP:pnHPSpectreLaptop13-af0xx:pvrType1ProductConfigId:rvnHP:rn83A2:rvr55.24:cvnHP:ct10:cvrChassisVersion: dmi.product.family: 103C_5335KV HP Spectre dmi.product.name: HP Spectre Laptop 13-af0xx dmi.product.version: Type1ProductConfigId dmi.sys.vendor: HP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769236/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp