{"action":"created","issue":{"url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/issues/49","repository_url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix","labels_url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/issues/49/comments","events_url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/issues/49/events","html_url":"https://github.com/erpalma/lenovo-throttling-fix/issues/49","id":356017075,"node_id":"MDU6SXNzdWUzNTYwMTcwNzU=","number":49,"title":"T580 with dGPU (too hot)","user":{"login":"Uatschitchun","id":25088926,"node_id":"MDQ6VXNlcjI1MDg4OTI2","avatar_url":"https://avatars0.githubusercontent.com/u/25088926?v=4","gravatar_id":"","url":"https://api.github.com/users/Uatschitchun","html_url":"https://github.com/Uatschitchun","followers_url":"https://api.github.com/users/Uatschitchun/followers","following_url":"https://api.github.com/users/Uatschitchun/following{/other_user}","gists_url":"https://api.github.com/users/Uatschitchun/gists{/gist_id}","starred_url":"https://api.github.com/users/Uatschitchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uatschitchun/subscriptions","organizations_url":"https://api.github.com/users/Uatschitchun/orgs","repos_url":"https://api.github.com/users/Uatschitchun/repos","events_url":"https://api.github.com/users/Uatschitchun/events{/privacy}","received_events_url":"https://api.github.com/users/Uatschitchun/received_events","type":"User","site_admin":false},"labels":[{"id":887449116,"node_id":"MDU6TGFiZWw4ODc0NDkxMTY=","url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-08-31T15:03:51Z","updated_at":"2018-09-01T07:45:34Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nfirstly let me thank you for your work on this regard!\r\n\r\nI've got multiple questions and some problems, you could help me with:\r\n\r\n**1.)** If I disable systemd service, it seems the PL1/2 settings aren't reverted to the original values, correct?\r\nEven after stopping the service and rebooting, turbostat reports them still as what I last have set them with lenovo-fix?\r\n\r\nOk, tested again. I explicitly set PL1_Tdp=17 and after disable systemd service and rebooting, this is what turbostat reports:\r\n```\r\ncpu0: PKG Limit #1: ENabled (29.000000 Watts, 28.000000 sec, clamp ENabled)                                    \r\ncpu0: PKG Limit #2: ENabled (44.000000 Watts, 0.002441* sec, clamp DISabled)  \r\n\r\n```\r\nSetting anything with lenovo-fix then, shows up with turbostat then. Stopping lenovo-fix again, does not reset the values!\r\n\r\nBtw, from the above:\r\nSo 29 & 44 are system's defaults and safe to be set in conf as these are system's defaults?\r\n\r\n**2.)** As my Laptop has a dedicated Nvidia GPU, too, there's a heat problem, when using your script with installation standards. The system is running stable and fast, but the dGPU has a fall-off temperature of 76°C. As soon as the GPU reaches this value, it gets throttled to a 3rd of it's frequency (around 400MHz, instead of 1600). Strange thing here is, the GPU  only levels its frequency within a range of 100MHz (1600-1700) when running glxspheres64 for instance. \r\nSo, what happens is, the GPU (as not able to throttle itself down more in multiple steps) reaches the 76° quite fast, as the machine's cooling system isn't able to vent off the heat resulting from higher performance with lenovo-fix.\r\n\r\nI stumble upon this, as phoronix/openarena gets from app. 120FPS to app. 35FPS.\r\n\r\nThe GPU is clocked with around 400MHz until it gets down below 60° again, which doesn't happenm when CPU is producing heat.\r\n                                                                                                   \r\nSo, the installation standards do not fit this machine when used with dGPU.                        \r\nI tried undervolting, which makes the system last longer until the GPU's fall-off is reached, but system still gets too hot!                                                                          \r\n\r\nUsing this config:\r\n```\r\n[GENERAL]\r\nEnabled: True\r\n\r\n## Settings to apply while connected to AC power\r\n[AC]\r\n# Update the registers every this many seconds\r\nUpdate_Rate_s: 5\r\n# Max package power for time window #1\r\nPL1_Tdp_W: 15\r\n# Time window #1 duration\r\nPL1_Duration_s: 28\r\n# Max package power for time window #2\r\nPL2_Tdp_W: 44\r\n# Time window #2 duration\r\nPL2_Duration_S: 0.002\r\n# Max allowed temperature before throttling\r\nTrip_Temp_C: 93\r\n# Set HWP energy performance hints to 'performance' on high load (EXPERIMENTAL)\r\nHWP_Mode: False\r\n# Set cTDP to normal=0, down=1 or up=2 (EXPERIMENTAL)\r\ncTDP: 0\r\n\r\n[UNDERVOLT]\r\n# CPU core voltage offset (mV)\r\nCORE: -120\r\n# Integrated GPU voltage offset (mV)\r\nGPU: -100\r\n# CPU cache voltage offset (mV)\r\nCACHE: -120\r\n# System Agent voltage offset (mV)\r\nUNCORE: -120\r\n# Analog I/O voltage offset (mV)\r\nANALOGIO: 0\r\n```\r\nWith glxspehere64 CPU is running around 3800MHz, 15W & 80°, which is nice. But dGPU is constantly heating up, as not clocked further down than 1657MHz and reached it's thermal limit of 76° with hard fall-off.\r\n\r\nSo, I somehow need a way, to solve this, as once I bring in the dGPU into the mix, I need less power, for to to overpower the cooling system, whereas performance withou dGPU heavy working, is nice'n stable...\r\n\r\n**2a)**\r\nWhen heating up, the touchpad gets irresponsive until I end glxsphere!? No entries in journal about that!?\r\n\r\n**3.)** Is my following assumption correct?                                                        \r\nThe [I7-8550U](https://en.wikichip.org/wiki/intel/core_i7/i7-8550u) is declared with 15W TDP. cTDP_up would be 25W. So if setting PL1_Tdp=25, I need to set cTDP=2?                                   \r\n                                                                                                   \r\nAnd, with having a TDP of 15W, setting 44W in conf is quite high above the TDP? Or am I missing something?                                                                                            \r\n                                                                                                   \r\nTests with s-tui & mprime -t showed, that even when setting cTDP=1, system is using app. 30W while around 3.300MHz and around 88° with s-tui stress test. So that's double the TDP and 3 times cTDP (10W when down). \r\n\r\n**4.)** I need a little help regarding PL1/2. If I set 29/44W PL1/2, using stress from s-tui, I get 3700MHz for about haf a minute, then Power drops to around   3400MHz and 28W Power. Expected, as PL1 is 29W. The stress is running continously with this power and frequency then. No further throttling to 15W is experienced?!\r\nSystem is undervolted:\r\n```\r\n[UNDERVOLT]\r\n# CPU core voltage offset (mV)\r\nCORE: -120\r\n# Integrated GPU voltage offset (mV)\r\nGPU: -100\r\n# CPU cache voltage offset (mV)\r\nCACHE: -120\r\n# System Agent voltage offset (mV)\r\nUNCORE: -120\r\n# Analog I/O voltage offset (mV)\r\nANALOGIO: 0\r\n```\r\n\r\n_My system is: T580, I7-8550U, dGPU, 16GB Ram, Bionic 18.04, nvidia-396_"},"comment":{"url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/issues/comments/417840555","html_url":"https://github.com/erpalma/lenovo-throttling-fix/issues/49#issuecomment-417840555","issue_url":"https://api.github.com/repos/erpalma/lenovo-throttling-fix/issues/49","id":417840555,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzg0MDU1NQ==","user":{"login":"erpalma","id":11210369,"node_id":"MDQ6VXNlcjExMjEwMzY5","avatar_url":"https://avatars0.githubusercontent.com/u/11210369?v=4","gravatar_id":"","url":"https://api.github.com/users/erpalma","html_url":"https://github.com/erpalma","followers_url":"https://api.github.com/users/erpalma/followers","following_url":"https://api.github.com/users/erpalma/following{/other_user}","gists_url":"https://api.github.com/users/erpalma/gists{/gist_id}","starred_url":"https://api.github.com/users/erpalma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erpalma/subscriptions","organizations_url":"https://api.github.com/users/erpalma/orgs","repos_url":"https://api.github.com/users/erpalma/repos","events_url":"https://api.github.com/users/erpalma/events{/privacy}","received_events_url":"https://api.github.com/users/erpalma/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T07:45:34Z","updated_at":"2018-09-01T07:45:34Z","author_association":"OWNER","body":"Sorry guys but I don't get how a CPU MSR can actually influence a dGPU. `PACKAGE_POWER_SKU` should be related to the min/max package power, that is the combined power of the CPU+iGPU+cache+whatever in the die. \r\n\r\nThe problem with the MX150 throttling is probably related to a setting in the dGPU bios or in the system EC/BIOS. Can you force `max performance` from the nVidia control panel? I guess it won't make any difference but worth a try."}}
{"actor":{"display_login":"erpalma"}}