Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

4 Posts

05-04-2018

Germany

5 Signins

42 Page Views

  • Posts: 4
  • Registered: ‎05-04-2018
  • Location: Germany
  • Views: 42
  • Message 451 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-11-28, 10:08 AM

@Mark_Lenovo  

The cpu freq / power usage worked great with termald 2.3 and kernel 5.8+ on my t480s. Yesterday i upgraded to thermald 2.4  (my current kernel is 5.9.10-arch1-1) and thermald stopped working for me, so that cpu freq / power usage are back to the old odd behaviour. :(

 

thermald log (2.4)

Nov 28 10:35:42 t480 systemd[1]: Starting Thermal Daemon Service...
Nov 28 10:35:42 t480 systemd[1]: Started Thermal Daemon Service.
Nov 28 10:35:42 t480 thermald[651]: 22 CPUID levels; family:model:stepping 0x6:8e:a (6:142:10)
Nov 28 10:35:42 t480 thermald[651]: [/sys/devices/platform/thinkpad_acpi/dytc_lapmode] present: Thermald can't run on this platform
Nov 28 10:35:42 t480 thermald[651]: Unsupported cpu model or platform
Nov 28 10:35:42 t480 systemd[1]: thermald.service: Succeeded.


related sysfs entry

cat /sys/devices/platform/thinkpad_acpi/dytc_lapmode
0

 

As far i can tell the related sysfs entry is created by a recently introduced feature for new lenovo models in the thinkpad_acpi kernel module. It seems that the sysfs entry is created also for models that does not support the new (dytc) feature, in my case a t480s. 

SEE: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/platform/x86/thinkpad_acpi.c?id=acf7f4a59114471c3964f118564fe8e7a6f34bb8

 

The problem is that current versions of systemd (2.4) check if this entry exists and block on startup.

SEE: https://github.com/intel/thermal_daemon/blob/master/src/thd_engine.cpp#L708

 

I checked if there is a way to disable the new dytc feature in the thinkpad_acpi kernel module via a module parameter, but as far i understand the code there is no way, please correct me if i am wrong. I also checked if there is a way to disable the blocklist in systemd, but i also cant see a way, again please correct me if i am wrong.

The only way i get systemd 2.4 working is to entirely unload the thinkpad_acpi kernel module.

 

@Mark_Lenovo Any idea how to get around this? Whats your opinion on the described behaviour?

 

Thanks in advance
Luca

Reply
Options

578 Posts

07-22-2019

Canada

436 Signins

4756 Page Views

  • Posts: 578
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 4756
  • Message 452 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-08, 15:57 PM

Hi @lgraf  

Oh crud.... The T480s is supposed to have DYTC version 4 and in that case the lapmode interface should not be enabled. But that's missing and I think this was a mistake in my patch. I can imagine that is really frustrating...

I'll look into it - I think I'm going to have to push a patch upstream to fix it. I think this was a miss on my side - which is frustrating as I did test on an older platform so I'm not sure how I missed it.

I'm not sure there is an easy solution but I'll go dig. If you're OK building your own kernel driver you could disable the interface...but I appreciate that's not the most friendly solution. I'll see if I can find something better

Mark

Reply
Options

41 Posts

01-14-2017

United States of America

74 Signins

789 Page Views

  • Posts: 41
  • Registered: ‎01-14-2017
  • Location: United States of America
  • Views: 789
  • Message 453 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-08, 16:11 PM

@MarkRHPearson the T480 (and probably other ??80 models ?!) is affected by this issue, too. A patch would be most appreciated. Thanks for your support and work!

Reply
Options

3 Posts

10-22-2019

Germany

10 Signins

65 Page Views

  • Posts: 3
  • Registered: ‎10-22-2019
  • Location: Germany
  • Views: 65
  • Message 454 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-08, 16:17 PM

confirmation that the T580 is also affected :(

Reply
Options

17 Posts

09-30-2019

Slovakia

26 Signins

165 Page Views

  • Posts: 17
  • Registered: ‎09-30-2019
  • Location: Slovakia
  • Views: 165
  • Message 455 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-08, 17:50 PM

X1 Extreme gen 1 also affected:

dec 02 22:01:01 rex-manjaro thermald[711]: 22 CPUID levels; family:model:stepping 0x6:9e:a (6:158:10)
dec 02 22:01:01 rex-manjaro thermald[711]: [/sys/devices/platform/thinkpad_acpi/dytc_lapmode] present: Thermald can't run on this platform
dec 02 22:01:01 rex-manjaro thermald[711]: Unsupported cpu model or platform
Reply
Options

578 Posts

07-22-2019

Canada

436 Signins

4756 Page Views

  • Posts: 578
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 4756
  • Message 456 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-09, 16:49 PM

Hi,

Many thanks to the smart folk at Red Hat (especially Benjamin Berg who pointed me at this)

If you pass "--ignore-cpuid-check" to thermald, then it should still run on those platforms. Disabling the check currently does not work in adaptive mode. Probably these people don't want "--adaptive" anyway, but it likely makes sense to explicitly remove "--adaptive" and add "--ignore-cpuid-check" at the same time.

I don't think I have a platform I can test this on so if someone can confirm this solves the issue for them that would be appreciated.

Thanks

Mark

 

Reply
Options

3 Posts

10-22-2019

Germany

10 Signins

65 Page Views

  • Posts: 3
  • Registered: ‎10-22-2019
  • Location: Germany
  • Views: 65
  • Message 457 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-09, 16:54 PM

Thx Mark, at least with "--ignore-cpuid-check" it looks like thermald is not complaining anymore

Reply
Options

4 Posts

05-04-2018

Germany

5 Signins

42 Page Views

  • Posts: 4
  • Registered: ‎05-04-2018
  • Location: Germany
  • Views: 42
  • Message 458 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-09, 18:55 PM

@ MarkRHPearson wrote:

Hi,

Many thanks to the smart folk at Red Hat (especially Benjamin Berg who pointed me at this)

If you pass "--ignore-cpuid-check" to thermald, then it should still run on those platforms. Disabling the check currently does not work in adaptive mode. Probably these people don' want "--adaptive" anyway, but it likely makes sense to explicitly remove "--adaptive" and add "--ignore-cpuid-check" at the same time.

I don' think I have a platform I can test this on so if someone can confirm this solves the issue for them that would be appreciated.

Thanks

Mark

 

@Mark_Lenovo Thank you for looking into this.

I just tried to run thermald as suggested with --ignore-cpuid-check and without --adaptive. thermald starts, but at least on my machine/setup i experience the old behaviour of throtteling down the cpu freq way to early, as before the enhancements with thermald 2.3 / linux 5.8. :(

 

To be honest, i have no idea if this may be a setup issue on my machine or through the removal of the --adaptive flag for thermald.

 

@ubioli Did you some stress testing (like s-tui), after starting thermald without --adaptive flag?

 

 

Reply
Options

51 Posts

11-02-2012

United States of America

69 Signins

379 Page Views

  • Posts: 51
  • Registered: ‎11-02-2012
  • Location: United States of America
  • Views: 379
  • Message 459 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2020-12-15, 15:51 PM

@MarkRHPearson : since the other thread didn't get the traction (LINK). Could you let me know what's up with the MX150 on Linux? Is there a way the temperature limit could be raised? Or is that impossible (by design)?

Reply
Options

50 Posts

09-15-2016

Russian Federation

75 Signins

826 Page Views

  • Posts: 50
  • Registered: ‎09-15-2016
  • Location: Russian Federation
  • Views: 826
  • Message 460 of 488

Re:[X1C6/T480s] low cTDP and trip temperature in Linux

2021-01-01, 16:57 PM

OK, so here's a question for those who spent some time tinkering with the *80 platform.

 

Is there any way at all to raise the long-term power limit (PL1) to more than 25W?

On my X1 Carbon 6th, even when using throttled (former "lenovo-throttling-fix") or intel-undervolt and setting both limits to 30W or 44W or higher, an "invisible" 25W power limit kicks in after 30-40 or so seconds of sustained load. Anyone was able to overcome it?

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms