tuxedocomputers / tuxedo-control-center

A tool to help you control performance, energy, fan and comfort settings on TUXEDO laptops.
GNU General Public License v3.0
506 stars 67 forks source link

5.17 Kernel & amd-pstate scaling driver support #177

Open RyanSmithOnline opened 2 years ago

RyanSmithOnline commented 2 years ago

When using the amd-pstate scaling driver, tuxedo-control-center does not work correctly.

I am unable to set frequencies in the program and so tried to manually set them in /etc/tcc/profiles but when running some profiles my log (journalctl | grep tcc) is spammed with 'CpuWorker: Unexpected value boost => false instead of true'.

I'm using linux-tkg but I imagine this will affect all 5.17 kernels where the new amd-pstate scaling driver is enabled.

Ryzen 5900HX.

tuxedoxt commented 2 years ago

Hello,

I think your suspicion is correct, this still needs to be implemented/adjusted to the parameters it provides.

You can check the output of

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver

to see which driver is in use.

RyanSmithOnline commented 2 years ago

amd-pstate

For now I compiled the kernel without amd-pstate so I can continue to use my tuxedo-control-center profiles :)


From: tuxedoxt @.> Sent: Thursday, February 17, 2022 1:10:35 PM To: tuxedocomputers/tuxedo-control-center @.> Cc: Ryan Smith @.>; Author @.> Subject: Re: [tuxedocomputers/tuxedo-control-center] 5.17 Kernel & amd-pstate scaling driver support (Issue #177)

Hello,

I think your suspicion is correct, this still needs to be implemented/adjusted to the parameters it provides.

You can check the output of

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver

to see which driver is in use.

— Reply to this email directly, view it on GitHubhttps://github.com/tuxedocomputers/tuxedo-control-center/issues/177#issuecomment-1042885026, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKT6MRQPYNDIGAICSFIYE33U3TQTXANCNFSM5OHD7XGA. You are receiving this because you authored the thread.Message ID: @.***>

ntropy83 commented 2 years ago

Since the mainline kernel is out of release candidates state, I'ld like to wish for a look at the actual implementability of the new amd_pstate driver, aswell. So far it seems to be working for me, with tuxedo-control-center, except for a few quirks. On my normal office use, control-center holds my Pulse 14, 4800H at 1,4 Ghz constant at around 40°. Same is happening on the amd_pstate driver as well. Except when I send the laptop to idle. After that the pstate obvously kicks in, cause frequency hovers all over the place and the temperature goes down to 35°, with occasional spikes up to 42° induced by programs running. If I uninstall control-center-bin and tuxedo-keyboard, the same behaviour is to be seen like after what happens after the standby.

All HUD elements in the control-center show the right values and can be tuned, as usual.

fyi